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

pending-stream-tube-connection.h
1
22 #ifndef _TelepathyQt_pending_stream_tube_connection_h_HEADER_GUARD_
23 #define _TelepathyQt_pending_stream_tube_connection_h_HEADER_GUARD_
24
25 #ifndef IN_TP_QT_HEADER
26 #error IN_TP_QT_HEADER
27 #endif
28
29 #include <TelepathyQt/Constants>
30 #include <TelepathyQt/PendingOperation>
31 #include <TelepathyQt/Types>
32
33 #include <QPair>
34
35 class QHostAddress;
36
37 namespace Tp
38 {
39
40 class PendingVariant;
41 class IncomingStreamTubeChannel;
42
43 class TP_QT_EXPORT PendingStreamTubeConnection : public PendingOperation
44 {
45 Q_OBJECT
46 Q_DISABLE_COPY(PendingStreamTubeConnection)
47
48 public:
49 virtual ~PendingStreamTubeConnection();
50
51 SocketAddressType addressType() const;
52
53 QPair<QHostAddress, quint16> ipAddress() const;
54 QString localAddress() const;
55
56 bool requiresCredentials() const;
57 uchar credentialByte() const;
58
59 private Q_SLOTS:
60 TP_QT_NO_EXPORT void onChannelInvalidated(Tp::DBusProxy *proxy,
61 const QString &errorName, const QString &errorMessage);
62 TP_QT_NO_EXPORT void onAcceptFinished(Tp::PendingOperation *op);
63 TP_QT_NO_EXPORT void onTubeStateChanged(Tp::TubeChannelState state);
64
65 private:
66 TP_QT_NO_EXPORT PendingStreamTubeConnection(PendingVariant *acceptOperation,
67 SocketAddressType type, bool requiresCredentials, uchar credentialByte,
68 const IncomingStreamTubeChannelPtr &channel);
69 TP_QT_NO_EXPORT PendingStreamTubeConnection(
70 const QString &errorName, const QString &errorMessage,
71 const IncomingStreamTubeChannelPtr &channel);
72
73 struct Private;
74 friend class IncomingStreamTubeChannel;
75 friend struct Private;
76 Private *mPriv;
77 };
78
79 }
80
81 #endif // TP_PENDING_STREAM_TUBE_CONNECTION_H
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::TubeChannelState
TubeChannelState
Definition: build/TelepathyQt/_gen/constants.h:3729
Tp::IncomingStreamTubeChannel
The IncomingStreamTubeChannel class represents an incoming Telepathy channel of type StreamTube...
Definition: incoming-stream-tube-channel.h:40
Tp::PendingStreamTubeConnection
The PendingStreamTubeConnection class represents an asynchronous operation for accepting an incoming ...
Definition: pending-stream-tube-connection.h:43
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::SocketAddressType
SocketAddressType
Definition: build/TelepathyQt/_gen/constants.h:3775