TelepathyGLib.StreamTubeChannel¶
- 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 stream tube |
||
r |
The service of the stream tube |
Signals¶
Name |
Short Description |
|---|---|
The |
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.StreamTubeChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.StreamTubeChannel.New in version 0.13.2.
- classmethod new(conn, object_path, immutable_properties)¶
- Parameters:
conn (
TelepathyGLib.Connection) – aTelepathyGLib.Connection; may not beNoneobject_path (
str) – the object path of the channel; may not beNoneimmutable_properties ({
str:GObject.Value}) – the immutable properties of the channel, as signalled by the NewChannel D-Bus signal or returned by the CreateChannel and EnsureChannel D-Bus methods: a mapping from strings (D-Bus interface name + “.” + property name) toGObject.Valueinstances
- Raises:
- Returns:
a newly-created
TelepathyGLib.StreamTubeChannelproxy- Return type:
Creates a new
TelepathyGLib.StreamTubeChannelproxy object from the provided path and properties. Most developers will not need to use this function; useTelepathyGLib.AutomaticProxyFactoryto automatically createTelepathyGLib.StreamTubeChannelproxy objects.New in version 0.13.2.
Deprecated since version ???: Use
TelepathyGLib.SimpleClientFactory.ensure_channel() instead.
- accept_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the tube has been accepted
Accept an incoming stream tube. When the tube has been accepted, callback will be called. You can then call
TelepathyGLib.StreamTubeChannel.accept_finish() to get aTelepathyGLib.StreamTubeConnectionconnected to the tube.New in version 0.13.2.
- accept_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
a newly created
TelepathyGLib.StreamTubeConnection- Return type:
Finishes accepting an incoming stream tube. The returned
TelepathyGLib.StreamTubeConnectioncan then be used to exchange data through the tube.New in version 0.13.2.
- 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.Variantreturned isNoneif 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()¶
- Returns:
the value of
TelepathyGLib.StreamTubeChannel:service- Return type:
Return the
TelepathyGLib.StreamTubeChannel:servicepropertyNew in version 0.13.2.
- offer_async(params, callback, *user_data)¶
- Parameters:
Offer an outgoing stream tube. When the tube has been offered, callback will be called. You can then call
TelepathyGLib.StreamTubeChannel.offer_finish() to get the result of the operation.You have to connect to the
TelepathyGLib.StreamTubeChannel::incomingsignal to get aTelepathyGLib.StreamTubeConnectioneach time a contact establishes a connection to the tube.New in version 0.13.2.
- offer_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
Truewhen a Tube has been successfully offered;Falseotherwise- Return type:
Finishes offering an outgoing stream tube.
New in version 0.13.2.
Signal Details¶
- TelepathyGLib.StreamTubeChannel.signals.incoming(stream_tube_channel, tube_connection)¶
- Signal Name:
incoming- Flags:
- Parameters:
stream_tube_channel (
TelepathyGLib.StreamTubeChannel) – The object which received the signaltube_connection (
TelepathyGLib.StreamTubeConnection) – theTelepathyGLib.StreamTubeConnectionfor the connection
The
::incomingsignal is emitted on offered Tubes when a new incoming connection is made from a remote user (one accepting the Tube).Consumers of this signal must take their own references to tube_connection