Home · All Classes · All Namespaces · Modules · Functions · Files |
#include <TelepathyQt/_gen/svc-channel.h>
Inherits Tp::AbstractAdaptor.
Public Slots | |
QString | Offer (const QVariantMap ¶meters, uint accesscontrol, const QDBusMessage &dbusMessage) |
QString | Accept (uint accesscontrol, const QDBusMessage &dbusMessage) |
Signals | |
void | DBusNamesChanged (const Tp::DBusTubeParticipants &added, const Tp::UIntList &removed) |
Public Member Functions | |
QString | ServiceName () const |
Tp::DBusTubeParticipants | DBusNames () const |
Tp::UIntList | SupportedAccessControls () const |
Public Member Functions inherited from Tp::AbstractAdaptor | |
AbstractAdaptor (const QDBusConnection &connection, QObject *adaptee, QObject *parent) | |
~AbstractAdaptor () | |
QDBusConnection | dbusConnection () const |
QObject * | adaptee () const |
Adaptor class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Type.DBusTube".
QString Tp::Service::ChannelTypeDBusTubeAdaptor::ServiceName | ( | ) | const |
Return the value of the exported D-Bus object property ServiceName
of type QString
.
Adaptees should export this property as a Qt property named 'serviceName' with type QString.
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.
When the tube is offered, the service name is transmitted to the other end.
When requesting a channel with ConnectionInterfaceRequestsInterface::CreateChannel() , this property MUST be included in the request.
ServiceName
. Tp::DBusTubeParticipants Tp::Service::ChannelTypeDBusTubeAdaptor::DBusNames | ( | ) | const |
Return the value of the exported D-Bus object property DBusNames
of type Tp::DBusTubeParticipants
.
Adaptees should export this property as a Qt property named 'dbusNames' with type Tp::DBusTubeParticipants.
For a multi-user (i.e. Handle_Type_Room) D-Bus tube, a mapping between contact handles and their unique bus names on this tube. For a peer-to-peer (i.e. Handle_Type_Contact) D-Bus tube, the empty dictionary. Change notification is via DBusNamesChanged.
DBusNames
. Tp::UIntList Tp::Service::ChannelTypeDBusTubeAdaptor::SupportedAccessControls | ( | ) | const |
Return the value of the exported D-Bus object property SupportedAccessControls
of type Tp::UIntList
.
Adaptees should export this property as a Qt property named 'supportedAccessControls' with type Tp::UIntList.
A list of the access control types that are supported with this channel. Note that only Socket_Access_Control_Localhost and Socket_Access_Control_Credentials can be used with D-Bus tubes. Using Socket_Access_Control_Credentials is recommended.
Socket_Access_Control_Credentials is easy to implement for a D-Bus tube, because typical D-Bus library implementations like libdbus and GDBus already have to support it to be able to connect to the system or session bus, and usually enable it by default; so there's typically no good reason to relax access control to Localhost.
When requesting a channel with ConnectionInterfaceRequestsInterface::CreateChannel() , this property MUST NOT be included in the request.
SupportedAccessControls
.
|
slot |
Begins a call to the exported D-Bus method Offer
on this object.
Adaptees should export this method as a Qt slot with the following signature: void offer(const QVariantMap& parameters, uint accesscontrol, const Tp::Service::ChannelTypeDBusTubeAdaptor::OfferContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
Offers a D-Bus tube providing the service specified.
parameters | The dictionary of arbitrary Parameters to send with the tube offer. |
accesscontrol | The access control the connection manager applies to the D-Bus socket. |
The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.
|
slot |
Begins a call to the exported D-Bus method Accept
on this object.
Adaptees should export this method as a Qt slot with the following signature: void accept(uint accesscontrol, const Tp::Service::ChannelTypeDBusTubeAdaptor::AcceptContextPtr &context);
Implementations should call MethodInvocationContext::setFinished (or setFinishedWithError accordingly) on the received context object once the method has finished processing.
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 TubeChannelStateChanged signal is emitted.
accesscontrol | The access control the connection manager applies to the D-Bus socket. |
The string describing the address of the private bus. The client SHOULD NOT attempt to connect to the address until the tube is open.
|
signal |
Represents the exported D-Bus signal DBusNamesChanged
on this object.
Adaptees should export this signal as a Qt signal with the following signature: void dbusNamesChanged(const Tp::DBusTubeParticipants& added, const Tp::UIntList& removed);
The adaptee signal will be automatically relayed as a D-Bus signal once emitted.
added | Array of handles and D-Bus names of new participants. |
removed | Array of handles of former participants. |
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.7 |