22 #ifndef _TelepathyQt_stream_tube_channel_h_HEADER_GUARD_ 23 #define _TelepathyQt_stream_tube_channel_h_HEADER_GUARD_ 25 #ifndef IN_TP_QT_HEADER 26 #error IN_TP_QT_HEADER 29 #include <TelepathyQt/TubeChannel> 45 static StreamTubeChannelPtr create(
const ConnectionPtr &connection,
46 const QString &objectPath,
const QVariantMap &immutableProperties);
50 QString service()
const;
52 bool supportsIPv4SocketsOnLocalhost()
const;
53 bool supportsIPv4SocketsWithSpecifiedAddress()
const;
55 bool supportsIPv6SocketsOnLocalhost()
const;
56 bool supportsIPv6SocketsWithSpecifiedAddress()
const;
58 bool supportsUnixSocketsOnLocalhost()
const;
59 bool supportsUnixSocketsWithCredentials()
const;
61 bool supportsAbstractUnixSocketsOnLocalhost()
const;
62 bool supportsAbstractUnixSocketsWithCredentials()
const;
64 QSet<uint> connections()
const;
68 QPair< QHostAddress, quint16 > ipAddress()
const;
69 QString localAddress()
const;
72 void newConnection(uint connectionId);
73 void connectionClosed(uint connectionId,
const QString &errorName,
74 const QString &errorMessage);
78 const QVariantMap &immutableProperties,
81 void addConnection(uint connection);
82 void removeConnection(uint connection,
const QString &error,
const QString &message);
86 void setIpAddress(
const QPair<QHostAddress, quint16> &address);
87 void setLocalAddress(
const QString &address);
88 bool isDroppingConnections()
const;
92 TP_QT_NO_EXPORT
void onConnectionClosed(uint,
const QString &,
const QString &);
93 TP_QT_NO_EXPORT
void dropConnections();
97 friend struct Private;
The StreamTubeChannel class represents a Telepathy channel of type StreamTube.
Definition: stream-tube-channel.h:36
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
SocketAddressType
Definition: build/TelepathyQt/_gen/constants.h:3775
The TubeChannel class is a base class for all tube types.
Definition: tube-channel.h:34
static const Feature FeatureConnectionMonitoring
Definition: stream-tube-channel.h:43
static const Feature FeatureCore
Definition: stream-tube-channel.h:42
Definition: abstract-adaptor.cpp:31
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
SocketAccessControl
Definition: build/TelepathyQt/_gen/constants.h:3822