MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9
   Home · All Classes · All Namespaces · Modules · Functions · Files

roster/roster-item.h

#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

Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.6.5