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.Added in version 0.17.5.
- classmethod init_known_interfaces()¶
Ensure that the known interfaces for
TelepathyGLib.CallStreamhave 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.Added in version 0.17.5.
- can_request_receiving()¶
- Returns:
the value of
TelepathyGLib.CallStream:can-request-receiving- Return type:
Added in version 0.17.5.
- get_local_sending_state()¶
- Returns:
the value of
TelepathyGLib.CallStream:local-sending-state- Return type:
Added in version 0.17.5.
- get_remote_members()¶
- Returns:
GLib.HashTablemappingTelepathyGLib.Contactto 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.Contactobjects have any feature prepared.Added 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.AsyncReadyCallbackorNone) – 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-receivingproperty 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.Added in version 0.17.5.
- request_receiving_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Return type:
Finishes
TelepathyGLib.CallStream.request_receiving_async().Added in version 0.17.5.
- set_sending_async(send, callback, *user_data)¶
- Parameters:
send (
bool) – the requested sending statecallback (
Gio.AsyncReadyCallbackorNone) – 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-stateshould change toTelepathyGLib.SendingState.SENDING, if it isn’t already. If send isFalse,TelepathyGLib.CallStream:local-sending-stateshould change toTelepathyGLib.SendingState.NONE, if it isn’t already.Added in version 0.17.5.
- set_sending_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Return type:
Finishes
TelepathyGLib.CallStream.set_sending_async().Added 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.SendingStatereason (
TelepathyGLib.CallStateReason) – theTelepathyGLib.CallStateReasonfor the change
The
::local-sending-state-changedsignal is emitted whenever the stream sending state changes.Added 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.HashTablemappingTelepathyGLib.Contactto its newTelepathyGLib.SendingStateremoved ([
TelepathyGLib.Contact]) –GLib.PtrArrayofTelepathyGLib.Contactremoved from remote contactsreason (
TelepathyGLib.CallStateReason) – theTelepathyGLib.CallStateReasonfor the change
The
::remote-members-changedsignal is emitted whenever the stream’s remote members changes.It is NOT guaranteed that
TelepathyGLib.Contactobjects have any feature prepared.Added 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.Added in version 0.17.5.
- TelepathyGLib.CallStream.props.connection¶
- Name:
connection- Type:
- Default Value:
- Flags:
The
TelepathyGLib.Connectionof the call.Added in version 0.17.5.
- TelepathyGLib.CallStream.props.content¶
- Name:
content- Type:
- Default Value:
- Flags:
The Content that this streams belongs to
Added in version 0.17.6.
- TelepathyGLib.CallStream.props.local_sending_state¶
-
The local user’s sending state, from
TelepathyGLib.SendingState.Added in version 0.17.5.