| Home · All Classes · All Namespaces · Modules · Functions · Files

account-set.h
1
23 #ifndef _TelepathyQt_account_set_h_HEADER_GUARD_
24 #define _TelepathyQt_account_set_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Filter>
31 #include <TelepathyQt/Object>
32 #include <TelepathyQt/Types>
33
34 #include <QList>
35 #include <QString>
36 #include <QVariantMap>
37
38 namespace Tp
39 {
40
41 class TP_QT_EXPORT AccountSet : public Object
42 {
43 Q_OBJECT
44 Q_DISABLE_COPY(AccountSet)
45 Q_PROPERTY(AccountManagerPtr accountManager READ accountManager)
46 Q_PROPERTY(AccountFilterConstPtr filter READ filter)
47 Q_PROPERTY(QList<AccountPtr> accounts READ accounts)
48
49 public:
50 AccountSet(const AccountManagerPtr &accountManager,
51 const AccountFilterConstPtr &filter);
52 AccountSet(const AccountManagerPtr &accountManager,
53 const QVariantMap &filter);
54 virtual ~AccountSet();
55
56 AccountManagerPtr accountManager() const;
57
58 AccountFilterConstPtr filter() const;
59
60 QList<AccountPtr> accounts() const;
61
62 Q_SIGNALS:
63 void accountAdded(const Tp::AccountPtr &account);
64 void accountRemoved(const Tp::AccountPtr &account);
65
66 private Q_SLOTS:
67 TP_QT_NO_EXPORT void onNewAccount(const Tp::AccountPtr &account);
68 TP_QT_NO_EXPORT void onAccountRemoved(const Tp::AccountPtr &account);
69 TP_QT_NO_EXPORT void onAccountChanged(const Tp::AccountPtr &account);
70
71 private:
72 struct Private;
73 friend struct Private;
74 Private *mPriv;
75 };
76
77 } // Tp
78
79 #endif
Tp
Definition: abstract-adaptor.cpp:31
Tp::AccountSet
The AccountSet class represents a set of Telepathy accounts filtered by a given criteria.
Definition: account-set.h:41
QList
Tp::Object
The Object class provides an object with property notification.
Definition: object.h:39