#include <TelepathyQt4/Client/Channel>
Public Slots | |
QDBusPendingReply < Telepathy::SupportedSocketMap > | GetAvailableStreamTubeTypes () |
QDBusPendingReply < Telepathy::UIntList > | GetAvailableTubeTypes () |
QDBusPendingReply < Telepathy::TubeInfoList > | ListTubes () |
QDBusPendingReply< uint > | OfferDBusTube (const QString &service, const QVariantMap ¶meters) |
QDBusPendingReply< uint > | OfferStreamTube (const QString &service, const QVariantMap ¶meters, uint addressType, const QDBusVariant &address, uint accessControl, const QDBusVariant &accessControlParam) |
QDBusPendingReply< QString > | AcceptDBusTube (uint ID) |
QDBusPendingReply< QDBusVariant > | AcceptStreamTube (uint ID, uint addressType, uint accessControl, const QDBusVariant &accessControlParam) |
QDBusPendingReply | CloseTube (uint ID) |
QDBusPendingReply< QString > | GetDBusTubeAddress (uint ID) |
QDBusPendingReply < Telepathy::DBusTubeMemberList > | GetDBusNames (uint ID) |
QDBusPendingReply< uint, QDBusVariant > | GetStreamTubeSocketAddress (uint ID) |
Signals | |
void | NewTube (uint ID, uint initiator, uint type, const QString &service, const QVariantMap ¶meters, uint state) |
void | TubeStateChanged (uint ID, uint state) |
void | TubeClosed (uint ID) |
void | DBusNamesChanged (uint ID, const Telepathy::DBusTubeMemberList &added, const Telepathy::UIntList &removed) |
void | StreamTubeNewConnection (uint ID, uint handle) |
Public Member Functions | |
ChannelTypeTubesInterface (const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
ChannelTypeTubesInterface (const QDBusConnection &connection, const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
ChannelTypeTubesInterface (Telepathy::Client::DBusProxy *proxy) | |
ChannelTypeTubesInterface (const Telepathy::Client::ChannelInterface &mainInterface) | |
ChannelTypeTubesInterface (const Telepathy::Client::ChannelInterface &mainInterface, QObject *parent) | |
Static Public Member Functions | |
static const char * | staticInterfaceName () |
Protected Member Functions | |
virtual void | invalidate (Telepathy::Client::DBusProxy *, const QString &, const QString &) |
Telepathy::Client::ChannelTypeTubesInterface::ChannelTypeTubesInterface | ( | const QString & | serviceName, | |
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a ChannelTypeTubesInterface associated with the given object on the session bus.
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::ChannelTypeTubesInterface::ChannelTypeTubesInterface | ( | const QDBusConnection & | connection, | |
const QString & | serviceName, | |||
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a ChannelTypeTubesInterface associated with the given object on the given bus.
connection | The bus via which the object can be reached. | |
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::ChannelTypeTubesInterface::ChannelTypeTubesInterface | ( | Telepathy::Client::DBusProxy * | proxy | ) |
Creates a ChannelTypeTubesInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
Telepathy::Client::ChannelTypeTubesInterface::ChannelTypeTubesInterface | ( | const Telepathy::Client::ChannelInterface & | mainInterface | ) | [explicit] |
Creates a ChannelTypeTubesInterface associated with the same object as the given proxy. Additionally, the created proxy will have the same parent as the given proxy.
mainInterface | The proxy to use. |
Telepathy::Client::ChannelTypeTubesInterface::ChannelTypeTubesInterface | ( | const Telepathy::Client::ChannelInterface & | mainInterface, | |
QObject * | parent | |||
) |
Creates a ChannelTypeTubesInterface associated with the same object as the given proxy. However, a different parent object can be specified.
mainInterface | The proxy to use. | |
parent | Passed to the parent class constructor. |
QDBusPendingReply<QString> Telepathy::Client::ChannelTypeTubesInterface::AcceptDBusTube | ( | uint | ID | ) | [inline, slot] |
Begins a call to the D-Bus method "AcceptDBusTube" on the remote object.
Accept a D-Bus tube that's in the "local pending" state. The connection manager will attempt to open the tube. The tube remains in the "local pending" state until the TubeStateChanged signal is emitted.
ID | The ID of the tube to accept. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<QDBusVariant> Telepathy::Client::ChannelTypeTubesInterface::AcceptStreamTube | ( | uint | ID, | |
uint | addressType, | |||
uint | accessControl, | |||
const QDBusVariant & | accessControlParam | |||
) | [inline, slot] |
Begins a call to the D-Bus method "AcceptStreamTube" on the remote object.
Accept a stream tube that's in the "local pending" state. The connection manager will attempt to open the tube. The tube remains in the "local pending" state until the TubeStateChanged signal is emitted.
ID | The ID of the tube to accept. | |
addressType | The type of address the connection manager should listen on. | |
accessControl | The type of access control the connection manager should apply to the socket. | |
accessControlParam | A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply Telepathy::Client::ChannelTypeTubesInterface::CloseTube | ( | uint | ID | ) | [inline, slot] |
Begins a call to the D-Bus method "CloseTube" on the remote object.
Close a tube.
ID | The ID of the tube to close. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
void Telepathy::Client::ChannelTypeTubesInterface::DBusNamesChanged | ( | uint | ID, | |
const Telepathy::DBusTubeMemberList & | added, | |||
const Telepathy::UIntList & | removed | |||
) | [signal] |
Represents the signal "DBusNamesChanged" on the remote object.
Emitted on a multi-user (i.e. Handle_Type_Room) D-Bus tube when a participant opens or closes the tube.
ID | The ID of the tube whose names have changed. | |
added | Array of handles and D-Bus names of new participants. | |
removed | Array of handles of former participants. |
QDBusPendingReply<Telepathy::SupportedSocketMap> Telepathy::Client::ChannelTypeTubesInterface::GetAvailableStreamTubeTypes | ( | ) | [inline, slot] |
Begins a call to the D-Bus method "GetAvailableStreamTubeTypes" on the remote object.
List the available address types and access-control types for stream tubes.
A mapping from address types (members of Socket_Address_Type) to arrays of access-control type (members of Socket_Access_Control) that the connection manager supports for stream tubes with that address type. For simplicity, if a CM supports offering a particular type of tube, it is assumed to support accepting it.
A typical value for a host without IPv6 support:
{ Socket_Address_Type_IPv4: [Socket_Access_Control_Localhost, Socket_Access_Control_Port, Socket_Access_Control_Netmask], Socket_Address_Type_Unix: [Socket_Access_Control_Localhost, Socket_Access_Control_Credentials] }
If stream tubes are not supported, this will be an empty dictionary.
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<Telepathy::UIntList> Telepathy::Client::ChannelTypeTubesInterface::GetAvailableTubeTypes | ( | ) | [inline, slot] |
Begins a call to the D-Bus method "GetAvailableTubeTypes" on the remote object.
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<Telepathy::DBusTubeMemberList> Telepathy::Client::ChannelTypeTubesInterface::GetDBusNames | ( | uint | ID | ) | [inline, slot] |
Begins a call to the D-Bus method "GetDBusNames" on the remote object.
For a multi-user (i.e. Handle_Type_Room) D-Bus tube, obtain a mapping between contact handles and their unique bus names on this tube.
ID | The ID of the tube to get names for. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<QString> Telepathy::Client::ChannelTypeTubesInterface::GetDBusTubeAddress | ( | uint | ID | ) | [inline, slot] |
Begins a call to the D-Bus method "GetDBusTubeAddress" on the remote object.
For a D-Bus tube, return a string describing the address of the private bus.
ID | The ID of the tube to get an address for. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<uint, QDBusVariant> Telepathy::Client::ChannelTypeTubesInterface::GetStreamTubeSocketAddress | ( | uint | ID | ) | [inline, slot] |
Begins a call to the D-Bus method "GetStreamTubeSocketAddress" on the remote object.
For a stream tube, obtain the address of the socket used to communicate over this tube.
ID | The ID of the stream tube to get the socket for. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
virtual void Telepathy::Client::ChannelTypeTubesInterface::invalidate | ( | Telepathy::Client::DBusProxy * | , | |
const QString & | , | |||
const QString & | ||||
) | [protected, virtual] |
Reimplemented from Telepathy::Client::AbstractInterface.
QDBusPendingReply<Telepathy::TubeInfoList> Telepathy::Client::ChannelTypeTubesInterface::ListTubes | ( | ) | [inline, slot] |
Begins a call to the D-Bus method "ListTubes" on the remote object.
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
void Telepathy::Client::ChannelTypeTubesInterface::NewTube | ( | uint | ID, | |
uint | initiator, | |||
uint | type, | |||
const QString & | service, | |||
const QVariantMap & | parameters, | |||
uint | state | |||
) | [signal] |
Represents the signal "NewTube" on the remote object.
Emitted when a tube is created.
ID | The ID of the new tube. | |
initiator | The handle of the contact who initiated the tube. | |
type | The tube type, as defined by the Tube_Type enum. | |
service | A string representing the service that will be used over the tube. | |
parameters | The new tube's properties. | |
state | The new tube's state. |
QDBusPendingReply<uint> Telepathy::Client::ChannelTypeTubesInterface::OfferDBusTube | ( | const QString & | service, | |
const QVariantMap & | parameters | |||
) | [inline, slot] |
Begins a call to the D-Bus method "OfferDBusTube" on the remote object.
Offers a D-Bus tube providing the service specified.
service | A string representing the service name that will be used over the tube. It should be a well-known D-Bus service name, of the form com.example.ServiceName. | |
parameters | A dictionary of properties for the new tube; the allowable keys, types and values are defined by the service. Connection managers must support the value being any primitive (non-container) D-Bus type, or a byte array 'ay'. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
QDBusPendingReply<uint> Telepathy::Client::ChannelTypeTubesInterface::OfferStreamTube | ( | const QString & | service, | |
const QVariantMap & | parameters, | |||
uint | addressType, | |||
const QDBusVariant & | address, | |||
uint | accessControl, | |||
const QDBusVariant & | accessControlParam | |||
) | [inline, slot] |
Begins a call to the D-Bus method "OfferStreamTube" on the remote object.
Offer a stream tube exporting the local socket specified.
service | A string representing the service name that will be used over the tube. It should be a well-known TCP service name as defined by http://www.iana.org/assignments/port-numbers or http://www.dns-sd.org/ServiceTypes.html, for instance "rsync" or "daap". | |
parameters |
These should usually be the same key-value pairs specified for use in the DNS-SD TXT record for that service.
addressType | The type of the listening address of the local service, as a member of Socket_Address_Type. | |
address | The listening address of the local service, as indicated by the address_type. | |
accessControl | The access control the local service applies to the local socket, specified so the connection manager can behave appropriately when it connects. | |
accessControlParam | A parameter for the access control type, to be interpreted as specified in the documentation for the Socket_Access_Control enum. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
static const char* Telepathy::Client::ChannelTypeTubesInterface::staticInterfaceName | ( | ) | [inline, static] |
Returns the name of the interface "org.freedesktop.Telepathy.Channel.Type.Tubes", which this class represents.
void Telepathy::Client::ChannelTypeTubesInterface::StreamTubeNewConnection | ( | uint | ID, | |
uint | handle | |||
) | [signal] |
Represents the signal "StreamTubeNewConnection" on the remote object.
Emitted on a stream tube when a participant opens a new connection to its socket.
ID | The ID of the tube | |
handle | The handle of the participant who opened the new connection |
void Telepathy::Client::ChannelTypeTubesInterface::TubeClosed | ( | uint | ID | ) | [signal] |
Represents the signal "TubeClosed" on the remote object.
Emitted when a tube has been closed. The ID of a closed tube is no longer valid. The ID may later be reused for a new tube.
ID | The ID of the tube that was closed. |
void Telepathy::Client::ChannelTypeTubesInterface::TubeStateChanged | ( | uint | ID, | |
uint | state | |||
) | [signal] |
Represents the signal "TubeStateChanged" on the remote object.
Emitted when the state of a tube changes.
ID | The ID of the tube that changed state. | |
state | The new state of the tube; see the Tube_State enumeration. |