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_connection_h_HEADER_GUARD_
00023 #define _TelepathyQt4_cli_pending_connection_h_HEADER_GUARD_
00024
00025 #ifndef IN_TELEPATHY_QT4_HEADER
00026 #error IN_TELEPATHY_QT4_HEADER
00027 #endif
00028
00029 #include <TelepathyQt4/Client/Connection>
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 ConnectionManager;
00043
00044 class PendingConnection : public PendingOperation
00045 {
00046 Q_OBJECT
00047
00048 public:
00049 ~PendingConnection();
00050
00051 ConnectionManager *manager() const;
00052
00053 ConnectionPtr connection() const;
00054
00055 QString busName() const;
00056
00057 QString objectPath() const;
00058
00059 private Q_SLOTS:
00060 void onCallFinished(QDBusPendingCallWatcher *watcher);
00061
00062 private:
00063 Q_DISABLE_COPY(PendingConnection);
00064 PendingConnection(ConnectionManager *manager,
00065 const QString &protocol, const QVariantMap ¶meters);
00066
00067 struct Private;
00068 friend struct Private;
00069 friend class ConnectionManager;
00070 Private *mPriv;
00071 };
00072
00073 }
00074 }
00075
00076 #endif