Home · All Classes · All Namespaces · Modules · Functions · Files
incoming-stream-tube-channel.h
1 
22 #ifndef _TelepathyQt_incoming_stream_tube_channel_h_HEADER_GUARD_
23 #define _TelepathyQt_incoming_stream_tube_channel_h_HEADER_GUARD_
24 
25 #ifndef IN_TP_QT_HEADER
26 #error IN_TP_QT_HEADER
27 #endif
28 
29 #include <TelepathyQt/StreamTubeChannel>
30 
31 #include <QtNetwork/QHostAddress>
32 
33 class QIODevice;
34 
35 namespace Tp
36 {
37 
38 class PendingStreamTubeConnection;
39 
40 class TP_QT_EXPORT IncomingStreamTubeChannel : public StreamTubeChannel
41 {
42  Q_OBJECT
43  Q_DISABLE_COPY(IncomingStreamTubeChannel)
44 
45 public:
46  static const Feature FeatureCore;
47 
48  static IncomingStreamTubeChannelPtr create(const ConnectionPtr &connection,
49  const QString &objectPath, const QVariantMap &immutableProperties);
50 
51  virtual ~IncomingStreamTubeChannel();
52 
53  PendingStreamTubeConnection *acceptTubeAsTcpSocket();
54  PendingStreamTubeConnection *acceptTubeAsTcpSocket(const QHostAddress &allowedAddress,
55  quint16 allowedPort);
56  PendingStreamTubeConnection *acceptTubeAsUnixSocket(bool requireCredentials = false);
57 
58 protected:
59  IncomingStreamTubeChannel(const ConnectionPtr &connection,
60  const QString &objectPath,
61  const QVariantMap &immutableProperties,
62  const Feature &coreFeature = IncomingStreamTubeChannel::FeatureCore);
63 
64 private Q_SLOTS:
65  TP_QT_NO_EXPORT void onNewLocalConnection(uint connectionId);
66 
67 private:
68  struct Private;
69  friend class PendingStreamTubeConnection;
70  friend struct Private;
71  Private *mPriv;
72 };
73 
74 }
75 
76 #endif
The StreamTubeChannel class represents a Telepathy channel of type StreamTube.
Definition: stream-tube-channel.h:36
static const Feature FeatureCore
Definition: incoming-stream-tube-channel.h:46
The PendingStreamTubeConnection class represents an asynchronous operation for accepting an incoming ...
Definition: pending-stream-tube-connection.h:43
The IncomingStreamTubeChannel class represents an incoming Telepathy channel of type StreamTube...
Definition: incoming-stream-tube-channel.h:40
Definition: abstract-adaptor.cpp:31
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7