Home · All Classes · All Namespaces · Modules · Functions · Files
pending-connection.h
00001 
00023 #ifndef _TelepathyQt4_pending_connection_h_HEADER_GUARD_
00024 #define _TelepathyQt4_pending_connection_h_HEADER_GUARD_
00025 
00026 #ifndef IN_TELEPATHY_QT4_HEADER
00027 #error IN_TELEPATHY_QT4_HEADER
00028 #endif
00029 
00030 #include <TelepathyQt4/Connection>
00031 #include <TelepathyQt4/PendingOperation>
00032 
00033 #include <QString>
00034 #include <QVariantMap>
00035 
00036 class QDBusPendingCallWatcher;
00037 
00038 namespace Tp
00039 {
00040 
00041 class ConnectionManager;
00042 
00043 class TELEPATHY_QT4_EXPORT PendingConnection : public PendingOperation
00044 {
00045     Q_OBJECT
00046     Q_DISABLE_COPY(PendingConnection);
00047 
00048 public:
00049     ~PendingConnection();
00050 
00051     ConnectionManagerPtr manager() const;
00052 
00053     ConnectionPtr connection() const;
00054 
00055 private Q_SLOTS:
00056     TELEPATHY_QT4_NO_EXPORT void onCallFinished(QDBusPendingCallWatcher *watcher);
00057     TELEPATHY_QT4_NO_EXPORT void onConnectionBuilt(Tp::PendingOperation *op);
00058 
00059 private:
00060     friend class ConnectionManagerLowlevel;
00061 
00062     TELEPATHY_QT4_NO_EXPORT PendingConnection(const ConnectionManagerPtr &manager,
00063             const QString &protocol, const QVariantMap &parameters);
00064     TELEPATHY_QT4_NO_EXPORT PendingConnection(const QString &error, const QString &errorMessage);
00065 
00066     struct Private;
00067     friend struct Private;
00068     Private *mPriv;
00069 };
00070 
00071 } // Tp
00072 
00073 #endif


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.8.0