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 beNone
object_path (
str
) – the object path of the channel; may not beNone
immutable_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.Value
instances
- Raises:
- Returns:
a newly-created
TelepathyGLib.StreamTubeChannel
proxy- Return type:
Creates a new
TelepathyGLib.StreamTubeChannel
proxy object from the provided path and properties. Most developers will not need to use this function; useTelepathyGLib.AutomaticProxyFactory
to automatically createTelepathyGLib.StreamTubeChannel
proxy objects.New in version 0.13.2.
Deprecated since version ???: Use
TelepathyGLib.SimpleClientFactory.ensure_channel
() instead.
- accept_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – 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.StreamTubeConnection
connected 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.StreamTubeConnection
can 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.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()¶
- Returns:
the value of
TelepathyGLib.StreamTubeChannel
:service
- Return type:
Return the
TelepathyGLib.StreamTubeChannel
:service
propertyNew 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
::incoming
signal to get aTelepathyGLib.StreamTubeConnection
each 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:
True
when a Tube has been successfully offered;False
otherwise- 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.StreamTubeConnection
for the connection
The
::incoming
signal 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