00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _TelepathyQt4_cli_pending_account_h_HEADER_GUARD_
00023 #define _TelepathyQt4_cli_pending_account_h_HEADER_GUARD_
00024
00025 #ifndef IN_TELEPATHY_QT4_HEADER
00026 #error IN_TELEPATHY_QT4_HEADER
00027 #endif
00028
00029 #include <TelepathyQt4/Client/Account>
00030 #include <TelepathyQt4/Client/PendingOperation>
00031
00032 #include <QString>
00033 #include <QVariantMap>
00034
00035 class QDBusPendingCallWatcher;
00036
00037 namespace Telepathy
00038 {
00039 namespace Client
00040 {
00041
00042 class AccountManager;
00043
00044 class PendingAccount : public PendingOperation
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 ~PendingAccount();
00050
00051 AccountManager *manager() const;
00052
00053 AccountPtr account() const;
00054
00055 QString objectPath() const;
00056
00057 private Q_SLOTS:
00058 void onCallFinished(QDBusPendingCallWatcher *watcher);
00059
00060 private:
00061 Q_DISABLE_COPY(PendingAccount);
00062 PendingAccount(AccountManager *manager,
00063 const QString &connectionManager, const QString &protocol,
00064 const QString &displayName, const QVariantMap ¶meters);
00065
00066 struct Private;
00067 friend struct Private;
00068 friend class AccountManager;
00069 Private *mPriv;
00070 };
00071
00072 }
00073 }
00074
00075 #endif