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