TelepathyGLib.DBusTubeChannel¶
- Subclasses:
None
Methods¶
- Inherited:
TelepathyGLib.Channel (44), TelepathyGLib.Proxy (11), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The parameters of the D-Bus tube |
||
r |
The service name of the dbus tube |
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.DBusTubeChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.DBusTubeChannel
.New in version 0.18.0.
- accept_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the tube has been offered
Accept an incoming D-Bus tube. When the tube has been accepted callback will be called. You can then call
TelepathyGLib.DBusTubeChannel.accept_finish
() to get theGio.DBusConnection
that will be used to communicate through the tube.New in version 0.18.0.
- accept_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a reference on a
Gio.DBusConnection
if the tube has been successfully accepted and opened;None
otherwise.- Return type:
Finishes to accept an incoming D-Bus tube. The returned
Gio.DBusConnection
is ready to be used to exchange data through the tube.New in version 0.18.0.
- dup_parameters_vardict()¶
- Returns:
a new reference to a
GLib.Variant
- Return type:
Return the parameters of the dbus-tube channel in a variant of type %G_VARIANT_TYPE_VARDICT whose keys are strings representing parameter names and values are variants representing corresponding parameter values set by the offerer when offering this channel.
The
GLib.Variant
returned isNone
if this is an outgoing tube that has not yet been offered or the parameters property has not been set.Use g_variant_lookup(),
GLib.Variant.lookup_value
(), or tp_vardict_get_uint32() and similar functions for convenient access to the values.New in version 0.19.10.
- get_service_name()¶
- Returns:
the value of
TelepathyGLib.DBusTubeChannel
:service-name
- Return type:
Return the
TelepathyGLib.DBusTubeChannel
:service-name
propertyNew in version 0.18.0.
- offer_async(params, callback, *user_data)¶
- Parameters:
Offer an outgoing D-Bus tube. When the tube has been offered and accepted callback will be called. You can then call
TelepathyGLib.DBusTubeChannel.offer_finish
() to get theGio.DBusConnection
that will be used to communicate through the tube.New in version 0.18.0.
- offer_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
a reference on a
Gio.DBusConnection
if the tube has been successfully offered and opened;None
otherwise.- Return type:
Finishes offering an outgoing D-Bus tube. The returned
Gio.DBusConnection
is ready to be used to exchange data through the tube.New in version 0.18.0.