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

pending-connection.h

    00001
    00023 #ifndef _TelepathyQt_pending_connection_h_HEADER_GUARD_
    00024 #define _TelepathyQt_pending_connection_h_HEADER_GUARD_
    00025
    00026 #ifndef IN_TP_QT_HEADER
    00027 #error IN_TP_QT_HEADER
    00028 #endif
    00029
    00030 #include <TelepathyQt/Connection>
    00031 #include <TelepathyQt/PendingOperation>
    00032
    00033 #include <QString>
    00034 #include <QVariantMap>
    00035
    00036 class QDBusPendingCallWatcher;
    00037
    00038 namespace Tp
    00039 {
    00040
    00041 class ConnectionManager;
    00042
    00043 class TP_QT_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     TP_QT_NO_EXPORT void onCallFinished(QDBusPendingCallWatcher *watcher);
    00057     TP_QT_NO_EXPORT void onConnectionBuilt(Tp::PendingOperation *op);
    00058
    00059 private:
    00060     friend class ConnectionManagerLowlevel;
    00061
    00062     TP_QT_NO_EXPORT PendingConnection(const ConnectionManagerPtr &manager,
    00063             const QString &protocol, const QVariantMap &parameters);
    00064     TP_QT_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