TelepathyGLib.CallChannel¶
- 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 content objects of this call |
||
r |
The flags of the call |
||
r |
Hardware streaming |
||
r |
The Hold state of the call |
||
r |
The reason for the current hold state |
||
r |
Initial audio |
||
r |
Initial audio name |
||
r |
Initial video |
||
r |
Initial video name |
||
r |
Mutable contents |
||
r |
The state of the call |
||
r |
The details of the call |
||
r |
The reason of the call’s state |
Signals¶
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.CallChannel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.CallChannel
.New in version 0.17.5.
- accept_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
For incoming calls with
TelepathyGLib.CallChannel
:state
set toTelepathyGLib.CallState.INITIALISED
, accept the incoming call. This changesTelepathyGLib.CallChannel
:state
toTelepathyGLib.CallState.ACCEPTED
.For outgoing calls with
TelepathyGLib.CallChannel
:state
set toTelepathyGLib.CallState.PENDING_INITIATOR
, actually call the remote contact; this changesTelepathyGLib.CallChannel
:state
toTelepathyGLib.CallState.INITIALISING
.New in version 0.17.5.
- accept_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallChannel.accept_async
().New in version 0.17.5.
- add_content_async(name, type, initial_direction, callback, *user_data)¶
- Parameters:
name (
str
) – the suggested name of the content to addtype (
TelepathyGLib.MediaStreamType
) – the media stream type of the content to be added to the call, fromTelepathyGLib.MediaStreamType
initial_direction (
TelepathyGLib.MediaStreamDirection
) – The initial direction of the contentcallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Request that a new Content of type type is added to self. Callers should check the value of the
TelepathyGLib.CallChannel
:mutable-contents
property before trying to add another content as it might not be allowed.New in version 0.17.5.
- add_content_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
reference to the new
TelepathyGLib.CallContent
.- Return type:
Finishes
TelepathyGLib.CallChannel.add_content_async
().The returned
TelepathyGLib.CallContent
is NOT guaranteed to have %TP_CALL_CONTENT_FEATURE_CORE prepared.New in version 0.17.5.
- get_contents()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:contents
- Return type:
New in version 0.17.5.
- get_members()¶
- Returns:
GLib.HashTable
mappingTelepathyGLib.Contact
to its newTelepathyGLib.CallMemberFlags
- Return type:
Get the members of this call.
The
TelepathyGLib.Contact
objects are guaranteed to have all of the features previously passed toTelepathyGLib.SimpleClientFactory.add_contact_features
() prepared.New in version 0.17.5.
- get_state()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:state
- flags:
a place to set the value of
TelepathyGLib.CallChannel
:flags
- details:
a place to set the value of
TelepathyGLib.CallChannel
:state-details
- reason:
a place to set the value of
TelepathyGLib.CallChannel
:state-reason
- Return type:
(
TelepathyGLib.CallState
, flags:TelepathyGLib.CallFlags
, details: {object
:object
}, reason:TelepathyGLib.CallStateReason
)
New in version 0.17.5.
- hangup_async(reason, detailed_reason, message, callback, *user_data)¶
- Parameters:
reason (
TelepathyGLib.CallStateChangeReason
) – aTelepathyGLib.CallStateChangeReason
detailed_reason (
str
) – a more specific reason for the call hangup, if one is available, or an empty orNone
string otherwisemessage (
str
) – a human-readable message to be sent to the remote contact(s)callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Request that the call is ended. All contents will be removed from self so that the
TelepathyGLib.CallChannel
:contents
property will be the empty list.New in version 0.17.5.
- hangup_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallChannel.hangup_async
().New in version 0.17.5.
- has_dtmf()¶
- Returns:
whether or not self can send DTMF tones.
- Return type:
Whether or not self can send DTMF tones using
TelepathyGLib.CallChannel.send_tones_async
(). To be able to send DTMF tones, at least one of self'sTelepathyGLib.CallChannel
:contents
must implementTelepathyGLib.IFACE_CALL_CONTENT_INTERFACE_DTMF
interface.New in version 0.17.5.
- has_hardware_streaming()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:hardware-streaming
- Return type:
New in version 0.17.5.
- has_hold()¶
- Returns:
whether or not self supports Hold
- Return type:
Whether or not self has the
TelepathyGLib.IFACE_CHANNEL_INTERFACE_HOLD
interfacesNew in version 0.17.6.
- has_initial_audio()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:initial-audio
- initial_audio_name:
a place to set the value of
TelepathyGLib.CallChannel
:initial-audio-name
- Return type:
New in version 0.17.5.
- has_initial_video()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:initial-video
- initial_video_name:
a place to set the value of
TelepathyGLib.CallChannel
:initial-video-name
- Return type:
New in version 0.17.5.
- has_mutable_contents()¶
- Returns:
the value of
TelepathyGLib.CallChannel
:mutable-contents
- Return type:
New in version 0.17.5.
- request_hold_async(hold, callback, *user_data)¶
- Parameters:
hold (
bool
) – Whether to request a hold or a unholdcallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Requests that the connection manager holds or unholds the call. Watch
TelepathyGLib.CallChannel
:hold-state
property to know when the channel goes on hold or is unheld. Unholding may fail if the streaming implementation can not obtain all the resources needed to restart the call.New in version 0.17.6.
- request_hold_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallChannel.request_hold_async
New in version 0.17.6.
- send_tones_async(tones, cancellable, callback, *user_data)¶
- Parameters:
tones (
str
) – a string representation of one or more DTMF events.cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object,None
to ignorecallback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Send tones on every of self's contents which have the
TelepathyGLib.IFACE_CALL_CONTENT_INTERFACE_DTMF
interface.For more details, see
TelepathyGLib.CallContent.send_tones_async
().New in version 0.17.5.
- send_tones_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
- Return type:
Finishes
TelepathyGLib.CallChannel.send_tones_async
().New in version 0.17.5.
- set_queued_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Notifies the CM that the local user is already in a call, so this call has been put in a call-waiting style queue.
New in version 0.17.5.
- set_queued_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallChannel.set_queued_async
().New in version 0.17.5.
- set_ringing_async(callback, *user_data)¶
- Parameters:
callback (
Gio.AsyncReadyCallback
orNone
) – a callback to call when the operation finishes
Indicate that the local user has been alerted about the incoming call.
New in version 0.17.5.
- set_ringing_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Return type:
Finishes
TelepathyGLib.CallChannel.set_ringing_async
().New in version 0.17.5.
Signal Details¶
- TelepathyGLib.CallChannel.signals.content_added(call_channel, content)¶
- Signal Name:
content-added
- Flags:
- Parameters:
call_channel (
TelepathyGLib.CallChannel
) – The object which received the signalcontent (
GObject.Object
) – the newly addedTelepathyGLib.CallContent
The
::content-added
signal is emitted whenever aTelepathyGLib.CallContent
is added to self.It is NOT guaranteed that %TP_CALL_CONTENT_FEATURE_CORE is prepared on content.
New in version 0.17.5.
- TelepathyGLib.CallChannel.signals.content_removed(call_channel, content, reason)¶
- Signal Name:
content-removed
- Flags:
- Parameters:
call_channel (
TelepathyGLib.CallChannel
) – The object which received the signalcontent (
GObject.Object
) – the newly removedTelepathyGLib.CallContent
reason (
TelepathyGLib.CallStateReason
) – aTelepathyGLib.CallStateReason
The
::content-removed
signal is emitted whenever aTelepathyGLib.CallContent
is removed from self.It is NOT guaranteed that %TP_CALL_CONTENT_FEATURE_CORE is prepared on content.
New in version 0.17.5.
- TelepathyGLib.CallChannel.signals.members_changed(call_channel, updates, removed, reason)¶
- Signal Name:
members-changed
- Flags:
- Parameters:
call_channel (
TelepathyGLib.CallChannel
) – The object which received the signalupdates ({
TelepathyGLib.Contact
:int
}) –GLib.HashTable
mappingTelepathyGLib.Contact
to its newTelepathyGLib.CallMemberFlags
removed ([
TelepathyGLib.Contact
]) –GLib.PtrArray
ofTelepathyGLib.Contact
removed from the call membersreason (
TelepathyGLib.CallStateReason
) – theTelepathyGLib.CallStateReason
for the change
The
::members-changed
signal is emitted whenever the call’s members changes.The
TelepathyGLib.Contact
objects are guaranteed to have all of the features previously passed toTelepathyGLib.SimpleClientFactory.add_contact_features
() prepared.New in version 0.17.5.
- TelepathyGLib.CallChannel.signals.state_changed(call_channel, state, flags, reason, details)¶
- Signal Name:
state-changed
- Flags:
- Parameters:
call_channel (
TelepathyGLib.CallChannel
) – The object which received the signalstate (
int
) – the newTelepathyGLib.CallState
flags (
int
) – the newTelepathyGLib.CallFlags
reason (
TelepathyGLib.CallStateReason
) – theTelepathyGLib.CallStateReason
for the changedetails ({
str
:GObject.Value
}) – additional details as aGLib.HashTable
readable using the tp_asv_* functions.
The
::state-changed
signal is emitted whenever the call state changes.New in version 0.17.5.
Property Details¶
- TelepathyGLib.CallChannel.props.contents¶
- Name:
contents
- Type:
- Default Value:
- Flags:
GLib.PtrArray
ofTelepathyGLib.CallContent
objects. The list of content objects that are part of this call.It is NOT guaranteed that %TP_CALL_CONTENT_FEATURE_CORE is prepared on those objects.
New in version 0.17.5.
- TelepathyGLib.CallChannel.props.flags¶
-
A
TelepathyGLib.CallFlags
specifying the flags of the call state.New in version 0.17.5.
- TelepathyGLib.CallChannel.props.hardware_streaming¶
-
Whether or not the streaming is done by dedicated hardware.
New in version 0.17.5.
- TelepathyGLib.CallChannel.props.hold_state¶
-
A
TelepathyGLib.LocalHoldState
specifying if the Call is currently heldNew in version 0.17.6.
- TelepathyGLib.CallChannel.props.hold_state_reason¶
-
A
TelepathyGLib.LocalHoldStateReason
specifying why the Call is currently held.New in version 0.17.6.
- TelepathyGLib.CallChannel.props.initial_audio¶
-
Whether or not the Call was started with audio.
New in version 0.17.5.
- TelepathyGLib.CallChannel.props.initial_audio_name¶
-
If
TelepathyGLib.CallChannel
:initial-audio
is set toTrue
, then this property will is the name of the intial audio content,None
otherwise.New in version 0.17.5.
- TelepathyGLib.CallChannel.props.initial_video¶
-
Whether or not the Call was started with video.
New in version 0.17.5.
- TelepathyGLib.CallChannel.props.initial_video_name¶
-
If
TelepathyGLib.CallChannel
:initial-video
is set toTrue
, then this property will is the name of the intial video content,None
otherwise.New in version 0.17.5.
- TelepathyGLib.CallChannel.props.mutable_contents¶
-
Whether or not call contents can be added or removed.
New in version 0.17.5.
- TelepathyGLib.CallChannel.props.state¶
-
A
TelepathyGLib.CallState
specifying the state of the call.New in version 0.17.5.
- TelepathyGLib.CallChannel.props.state_details¶
- Name:
state-details
- Type:
- Default Value:
- Flags:
Detailed infoermation about
TelepathyGLib.CallChannel
:state
. It is aGLib.HashTable
mappingstr
->:obj:GObject.Value, it can be accessed using the tp_asv_* functions.New in version 0.17.5.
- TelepathyGLib.CallChannel.props.state_reason¶
- Name:
state-reason
- Type:
- Default Value:
- Flags:
Reason why
TelepathyGLib.CallChannel
:state
last changed.New in version 0.17.5.