Home · All Classes · All Namespaces · Modules · Functions · Files
account-set.h
00001 
00023 #ifndef _TelepathyQt4_account_set_h_HEADER_GUARD_
00024 #define _TelepathyQt4_account_set_h_HEADER_GUARD_
00025 
00026 #ifndef IN_TELEPATHY_QT4_HEADER
00027 #error IN_TELEPATHY_QT4_HEADER
00028 #endif
00029 
00030 #include <TelepathyQt4/Filter>
00031 #include <TelepathyQt4/Object>
00032 #include <TelepathyQt4/Types>
00033 
00034 #include <QList>
00035 #include <QString>
00036 #include <QVariantMap>
00037 
00038 namespace Tp
00039 {
00040 
00041 class TELEPATHY_QT4_EXPORT AccountSet : public Object
00042 {
00043     Q_OBJECT
00044     Q_DISABLE_COPY(AccountSet)
00045     Q_PROPERTY(AccountManagerPtr accountManager READ accountManager)
00046     Q_PROPERTY(AccountFilterConstPtr filter READ filter)
00047     Q_PROPERTY(QList<AccountPtr> accounts READ accounts)
00048 
00049 public:
00050     AccountSet(const AccountManagerPtr &accountManager,
00051             const AccountFilterConstPtr &filter);
00052     AccountSet(const AccountManagerPtr &accountManager,
00053             const QVariantMap &filter);
00054     virtual ~AccountSet();
00055 
00056     AccountManagerPtr accountManager() const;
00057 
00058     AccountFilterConstPtr filter() const;
00059 
00060     QList<AccountPtr> accounts() const;
00061 
00062 Q_SIGNALS:
00063     void accountAdded(const Tp::AccountPtr &account);
00064     void accountRemoved(const Tp::AccountPtr &account);
00065 
00066 private Q_SLOTS:
00067     TELEPATHY_QT4_NO_EXPORT void onNewAccount(const Tp::AccountPtr &account);
00068     TELEPATHY_QT4_NO_EXPORT void onAccountRemoved(const Tp::AccountPtr &account);
00069     TELEPATHY_QT4_NO_EXPORT void onAccountChanged(const Tp::AccountPtr &account);
00070 
00071 private:
00072     struct Private;
00073     friend struct Private;
00074     Private *mPriv;
00075 };
00076 
00077 } // Tp
00078 
00079 #endif


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