pending-connection.h Source File

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

pending-connection.h
1
23 #ifndef _TelepathyQt_pending_connection_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_connection_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Connection>
31 #include <TelepathyQt/PendingOperation>
32
33 #include <QString>
34 #include <QVariantMap>
35
36 class QDBusPendingCallWatcher;
37
38 namespace Tp
39 {
40
41 class ConnectionManager;
42
43 class TP_QT_EXPORT PendingConnection : public PendingOperation
44 {
45 Q_OBJECT
46 Q_DISABLE_COPY(PendingConnection);
47
48 public:
49 ~PendingConnection();
50
51 ConnectionManagerPtr manager() const;
52
53 ConnectionPtr connection() const;
54
55 private Q_SLOTS:
56 TP_QT_NO_EXPORT void onCallFinished(QDBusPendingCallWatcher *watcher);
57 TP_QT_NO_EXPORT void onConnectionBuilt(Tp::PendingOperation *op);
58
59 private:
60 friend class ConnectionManagerLowlevel;
61
62 TP_QT_NO_EXPORT PendingConnection(const ConnectionManagerPtr &manager,
63 const QString &protocol, const QVariantMap &parameters);
64 TP_QT_NO_EXPORT PendingConnection(const QString &error, const QString &errorMessage);
65
66 struct Private;
67 friend struct Private;
68 Private *mPriv;
69 };
70
71 } // Tp
72
73 #endif
Tp::PendingConnection
The PendingConnection class represents the parameters of and the reply to an asynchronous connection ...
Definition: pending-connection.h:43
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::ConnectionManagerLowlevel
The ConnectionManagerLowlevel class extends ConnectionManager with support to low-level features...
Definition: connection-manager-lowlevel.h:38