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

pending-account.h
1
23 #ifndef _TelepathyQt_pending_account_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_account_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Account>
31 #include <TelepathyQt/PendingOperation>
32
33 #include <QString>
34 #include <QVariantMap>
35
36 class QDBusPendingCallWatcher;
37
38 namespace Tp
39 {
40
41 class AccountManager;
42
43 class TP_QT_EXPORT PendingAccount : public PendingOperation
44 {
45 Q_OBJECT
46 Q_DISABLE_COPY(PendingAccount);
47
48 public:
49 ~PendingAccount();
50
51 AccountManagerPtr manager() const;
52
53 AccountPtr account() const;
54
55 private Q_SLOTS:
56 TP_QT_NO_EXPORT void onCallFinished(QDBusPendingCallWatcher *watcher);
57 TP_QT_NO_EXPORT void onAccountBuilt(Tp::PendingOperation *readyOp);
58 TP_QT_NO_EXPORT void onNewAccount(const Tp::AccountPtr &account);
59
60 private:
61 friend class AccountManager;
62
63 TP_QT_NO_EXPORT PendingAccount(const AccountManagerPtr &manager,
64 const QString &connectionManager, const QString &protocol,
65 const QString &displayName, const QVariantMap &parameters,
66 const QVariantMap &properties = QVariantMap());
67
68 struct Private;
69 friend struct Private;
70 Private *mPriv;
71 };
72
73 } // Tp
74
75 #endif
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::PendingAccount
The PendingAccount class represents the parameters of and the reply to an asynchronous account reques...
Definition: pending-account.h:43
Tp::AccountManager
The AccountManager class represents a Telepathy account manager.
Definition: account-manager.h:53