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

pending-dbus-tube-connection.h

    00001
    00022 #ifndef _TelepathyQt_pending_dbus_tube_connection_h_HEADER_GUARD_
    00023 #define _TelepathyQt_pending_dbus_tube_connection_h_HEADER_GUARD_
    00024
    00025 #ifndef IN_TP_QT_HEADER
    00026 #error IN_TP_QT_HEADER
    00027 #endif
    00028
    00029 #include <TelepathyQt/PendingOperation>
    00030 #include <TelepathyQt/OutgoingDBusTubeChannel>
    00031
    00032 namespace Tp {
    00033
    00034 class PendingString;
    00035
    00036 class TP_QT_EXPORT PendingDBusTubeConnection : public PendingOperation
    00037 {
    00038     Q_OBJECT
    00039     Q_DISABLE_COPY(PendingDBusTubeConnection)
    00040
    00041 public:
    00042     virtual ~PendingDBusTubeConnection();
    00043
    00044     QString address() const;
    00045
    00046     bool allowsOtherUsers() const;
    00047
    00048 private Q_SLOTS:
    00049     TP_QT_NO_EXPORT void onConnectionFinished(Tp::PendingOperation *op);
    00050     TP_QT_NO_EXPORT void onStateChanged(Tp::TubeChannelState state);
    00051     TP_QT_NO_EXPORT void onChannelInvalidated(Tp::DBusProxy *proxy,
    00052                                         const QString &errorName,
    00053                                         const QString &errorMessage);
    00054
    00055 private:
    00056     TP_QT_NO_EXPORT PendingDBusTubeConnection(PendingString *string,
    00057             bool allowOtherUsers, const QVariantMap &parameters,
    00058             const DBusTubeChannelPtr &object);
    00059     TP_QT_NO_EXPORT PendingDBusTubeConnection(const QString &errorName, const QString &errorMessage,
    00060             const DBusTubeChannelPtr &object);
    00061
    00062     struct Private;
    00063     friend class OutgoingDBusTubeChannel;
    00064     friend class IncomingDBusTubeChannel;
    00065     friend struct Private;
    00066     Private *mPriv;
    00067 };
    00068
    00069 }
    00070
    00071 #endif