Home · Modules · All Classes · All Namespaces
pending-dbus-tube-connection.h
1 
22 #ifndef _TelepathyQt_pending_dbus_tube_connection_h_HEADER_GUARD_
23 #define _TelepathyQt_pending_dbus_tube_connection_h_HEADER_GUARD_
24 
25 #ifndef IN_TP_QT_HEADER
26 #error IN_TP_QT_HEADER
27 #endif
28 
29 #include <TelepathyQt/PendingOperation>
30 #include <TelepathyQt/OutgoingDBusTubeChannel>
31 
32 namespace Tp {
33 
34 class PendingString;
35 
36 class TP_QT_EXPORT PendingDBusTubeConnection : public PendingOperation
37 {
38  Q_OBJECT
39  Q_DISABLE_COPY(PendingDBusTubeConnection)
40 
41 public:
42  virtual ~PendingDBusTubeConnection();
43 
44  QString address() const;
45 
46  bool allowsOtherUsers() const;
47 
48 private Q_SLOTS:
49  TP_QT_NO_EXPORT void onConnectionFinished(Tp::PendingOperation *op);
50  TP_QT_NO_EXPORT void onStateChanged(Tp::TubeChannelState state);
51  TP_QT_NO_EXPORT void onChannelInvalidated(Tp::DBusProxy *proxy,
52  const QString &errorName,
53  const QString &errorMessage);
54 
55 private:
56  TP_QT_NO_EXPORT PendingDBusTubeConnection(PendingString *string,
57  bool allowOtherUsers, const QVariantMap &parameters,
58  const DBusTubeChannelPtr &object);
59  TP_QT_NO_EXPORT PendingDBusTubeConnection(const QString &errorName, const QString &errorMessage,
60  const DBusTubeChannelPtr &object);
61 
62  struct Private;
63  friend class OutgoingDBusTubeChannel;
65  friend struct Private;
66  Private *mPriv;
67 };
68 
69 }
70 
71 #endif
The OutgoingDBusTubeChannel class represents an outgoing Telepathy channel of type DBusTube.
Definition: outgoing-dbus-tube-channel.h:35
The PendingString class is a generic subclass of PendingOperation representing a pending D-Bus method...
Definition: pending-string.h:37
Definition: pending-dbus-tube-connection.h:36
TubeChannelState
Definition: build/TelepathyQt/_gen/constants.h:3729
The IncomingStreamTubeChannel class represents an incoming Telepathy channel of type StreamTube.
Definition: incoming-dbus-tube-channel.h:35
Definition: abstract-adaptor.cpp:31
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45