Home · Modules · All Classes · All Namespaces
roster/roster-item.h
#ifndef _TelepathyQt_examples_roster_roster_item_h_HEADER_GUARD_
#define _TelepathyQt_examples_roster_roster_item_h_HEADER_GUARD_
#include <TelepathyQt/Types>
#include <TelepathyQt/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