#ifndef _TelepathyQt4_examples_roster_roster_item_h_HEADER_GUARD_
#define _TelepathyQt4_examples_roster_roster_item_h_HEADER_GUARD_
#include <TelepathyQt4/Types>
#include <TelepathyQt4/Contact>
#include <QListWidgetItem>
#include <QString>
class RosterItem : public QObject, public QListWidgetItem
{
Q_OBJECT
public:
RosterItem(const Tp::ContactPtr &contact,
QListWidget *parent = 0);
~RosterItem();
Tp::ContactPtr contact() const { return mContact; }
Q_SIGNALS:
void changed();
private Q_SLOTS:
void onContactChanged();
private:
Tp::ContactPtr mContact;
};
#endif