TelepathyGLib.CallStream¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
If true, the user can request that a remote contact starts sending onthis stream. |
||
r/w/co |
The connection of this stream |
||
r/w/co |
The content that this Stream belongs to |
||
r |
Local sending state |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.CallStream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.CallStream
.New in version 0.17.5.
- classmethod init_known_interfaces()¶
Ensure that the known interfaces for
TelepathyGLib.CallStream
have been set up. This is done automatically when necessary, but for correct overriding of library interfaces by local extensions, you should call this function before calling tp_proxy_or_subclass_hook_on_interface_add() with first argument %TP_TYPE_CALL_STREAM.New in version 0.17.5.
- can_request_receiving()¶
- Returns:
the value of
TelepathyGLib.CallStream
:can-request-receiving
- Return type:
New in version 0.17.5.
- get_local_sending_state()¶
- Returns:
the value of
TelepathyGLib.CallStream
:local-sending-state
- Return type:
New in version 0.17.5.
- get_remote_members()¶
- Returns:
GLib.HashTable
mappingTelepathyGLib.Contact
to its newTelepathyGLib.SendingState
- Return type:
Get the remote contacts to who this stream is connected, mapped to their sending state.
It is NOT guaranteed that
TelepathyGLib.Contact
objects have any feature prepared.New in version 0.17.5.
- request_receiving_async(contact, receive, callback, *user_data)¶
- Parameters:
contact (
TelepathyGLib.Contact
) – contact from which sending is requestedreceive (
bool
) – the requested receiving statecallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Request that a remote contact stops or starts sending on this stream.
The
TelepathyGLib.CallStream
:can-request-receiving
property defines whether the protocol allows the local user to request the other side start sending on this stream.If receive is
True
, request that the given contact starts to send media. If receive isFalse
, request that the given contact stops sending media.New in version 0.17.5.
- request_receiving_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallStream.request_receiving_async
().New in version 0.17.5.
- set_sending_async(send, callback, *user_data)¶
- Parameters:
send (
bool
) – the requested sending statecallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Set the stream to start or stop sending media from the local user to other contacts.
If send is
True
,TelepathyGLib.CallStream
:local-sending-state
should change toTelepathyGLib.SendingState.SENDING
, if it isn’t already. If send isFalse
,TelepathyGLib.CallStream
:local-sending-state
should change toTelepathyGLib.SendingState.NONE
, if it isn’t already.New in version 0.17.5.
- set_sending_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallStream.set_sending_async
().New in version 0.17.5.
Signal Details¶
- TelepathyGLib.CallStream.signals.local_sending_state_changed(call_stream, state, reason)¶
- Signal Name:
local-sending-state-changed
- Flags:
- Parameters:
call_stream (
TelepathyGLib.CallStream
) – The object which received the signalstate (
int
) – the newTelepathyGLib.SendingState
reason (
TelepathyGLib.CallStateReason
) – theTelepathyGLib.CallStateReason
for the change
The
::local-sending-state-changed
signal is emitted whenever the stream sending state changes.New in version 0.17.5.
- TelepathyGLib.CallStream.signals.remote_members_changed(call_stream, updates, removed, reason)¶
- Signal Name:
remote-members-changed
- Flags:
- Parameters:
call_stream (
TelepathyGLib.CallStream
) – The object which received the signalupdates ({
TelepathyGLib.Contact
:int
}) –GLib.HashTable
mappingTelepathyGLib.Contact
to its newTelepathyGLib.SendingState
removed ([
TelepathyGLib.Contact
]) –GLib.PtrArray
ofTelepathyGLib.Contact
removed from remote contactsreason (
TelepathyGLib.CallStateReason
) – theTelepathyGLib.CallStateReason
for the change
The
::remote-members-changed
signal is emitted whenever the stream’s remote members changes.It is NOT guaranteed that
TelepathyGLib.Contact
objects have any feature prepared.New in version 0.17.5.
Property Details¶
- TelepathyGLib.CallStream.props.can_request_receiving¶
-
If
True
, the user can request that a remote contact starts sending on this stream.New in version 0.17.5.
- TelepathyGLib.CallStream.props.connection¶
- Name:
connection
- Type:
- Default Value:
- Flags:
The
TelepathyGLib.Connection
of the call.New in version 0.17.5.
- TelepathyGLib.CallStream.props.content¶
- Name:
content
- Type:
- Default Value:
- Flags:
The Content that this streams belongs to
New in version 0.17.6.
- TelepathyGLib.CallStream.props.local_sending_state¶
-
The local user’s sending state, from
TelepathyGLib.SendingState
.New in version 0.17.5.