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.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
For incoming calls with
TelepathyGLib.CallChannel:stateset toTelepathyGLib.CallState.INITIALISED, accept the incoming call. This changesTelepathyGLib.CallChannel:statetoTelepathyGLib.CallState.ACCEPTED.For outgoing calls with
TelepathyGLib.CallChannel:stateset toTelepathyGLib.CallState.PENDING_INITIATOR, actually call the remote contact; this changesTelepathyGLib.CallChannel:statetoTelepathyGLib.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.MediaStreamTypeinitial_direction (
TelepathyGLib.MediaStreamDirection) – The initial direction of the contentcallback (
Gio.AsyncReadyCallbackorNone) – 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-contentsproperty 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.CallContentis 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.HashTablemappingTelepathyGLib.Contactto its newTelepathyGLib.CallMemberFlags- Return type:
 
Get the members of this call.
The
TelepathyGLib.Contactobjects 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.CallStateChangeReasondetailed_reason (
str) – a more specific reason for the call hangup, if one is available, or an empty orNonestring otherwisemessage (
str) – a human-readable message to be sent to the remote contact(s)callback (
Gio.AsyncReadyCallbackorNone) – 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:contentsproperty 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:contentsmust implementTelepathyGLib.IFACE_CALL_CONTENT_INTERFACE_DTMFinterface.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_HOLDinterfacesNew 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.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Requests that the connection manager holds or unholds the call. Watch
TelepathyGLib.CallChannel:hold-stateproperty 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_asyncNew 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.CancellableorNone) – optionalGio.Cancellableobject,Noneto ignorecallback (
Gio.AsyncReadyCallbackorNone) – a callback to call when the operation finishes
Send tones on every of self's contents which have the
TelepathyGLib.IFACE_CALL_CONTENT_INTERFACE_DTMFinterface.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.AsyncReadyCallbackorNone) – 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.AsyncReadyCallbackorNone) – 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-addedsignal is emitted whenever aTelepathyGLib.CallContentis 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.CallContentreason (
TelepathyGLib.CallStateReason) – aTelepathyGLib.CallStateReason
The
::content-removedsignal is emitted whenever aTelepathyGLib.CallContentis 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.HashTablemappingTelepathyGLib.Contactto its newTelepathyGLib.CallMemberFlagsremoved ([
TelepathyGLib.Contact]) –GLib.PtrArrayofTelepathyGLib.Contactremoved from the call membersreason (
TelepathyGLib.CallStateReason) – theTelepathyGLib.CallStateReasonfor the change
The
::members-changedsignal is emitted whenever the call’s members changes.The
TelepathyGLib.Contactobjects 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.CallStateflags (
int) – the newTelepathyGLib.CallFlagsreason (
TelepathyGLib.CallStateReason) – theTelepathyGLib.CallStateReasonfor the changedetails ({
str:GObject.Value}) – additional details as aGLib.HashTablereadable using the tp_asv_* functions.
The
::state-changedsignal 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.PtrArrayofTelepathyGLib.CallContentobjects. 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.CallFlagsspecifying 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.LocalHoldStatespecifying if the Call is currently heldNew in version 0.17.6.
 
- TelepathyGLib.CallChannel.props.hold_state_reason¶
 - 
A
TelepathyGLib.LocalHoldStateReasonspecifying 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-audiois set toTrue, then this property will is the name of the intial audio content,Noneotherwise.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-videois set toTrue, then this property will is the name of the intial video content,Noneotherwise.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.CallStatespecifying 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.HashTablemappingstr->: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:statelast changed.New in version 0.17.5.