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 <QSharedPointer>
00033 #include <QString>
00034 #include <QVariantMap>
00035
00036 class QDBusPendingCallWatcher;
00037
00038 namespace Telepathy
00039 {
00040 namespace Client
00041 {
00042
00043 class AccountManager;
00044
00045 class PendingAccount : public PendingOperation
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 ~PendingAccount();
00051
00052 AccountManager *manager() const;
00053 QSharedPointer<Account> account() const;
00054
00055 private Q_SLOTS:
00056 void onCallFinished(QDBusPendingCallWatcher *watcher);
00057
00058 private:
00059 Q_DISABLE_COPY(PendingAccount);
00060 PendingAccount(AccountManager *manager,
00061 const QString &connectionManager, const QString &protocol,
00062 const QString &displayName, const QVariantMap ¶meters);
00063
00064 struct Private;
00065 friend struct Private;
00066 friend class AccountManager;
00067 Private *mPriv;
00068 };
00069
00070 }
00071 }
00072
00073 #endif