CallChannel
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_call_channel_get_type ()" ) ]
[ Version ( since = "0.17.5" ) ]
public class CallChannel : Channel
[ Version ( since = "0.17.5" ) ]
public class CallChannel : Channel
Data structure representing a CallChannel.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public GenericArray<void*> contents { get; }
GenericArray of CallContent objects.
- public uint flags { get; }
A CallFlags specifying the flags of the call state.
- public bool hardware_streaming { get; }
Whether or not the streaming is done by dedicated hardware.
- public uint hold_state { get; }
A LocalHoldState specifying if the Call is currently held
- public uint hold_state_reason { get; }
A LocalHoldStateReason specifying why the Call is currently held.
- public bool initial_audio { get; }
Whether or not the Call was started with audio.
- public string initial_audio_name { owned get; }
If initial_audio is set to
true
, then this property will is the name of the intial audio content,null
otherwise. - public bool initial_video { get; }
Whether or not the Call was started with video.
- public string initial_video_name { owned get; }
If initial_video is set to
true
, then this property will is the name of the intial video content,null
otherwise. - public bool mutable_contents { get; }
Whether or not call contents can be added or removed.
- public uint state { get; }
A CallState specifying the state of the call.
- public HashTable<void*,void*> state_details { owned get; }
Detailed infoermation about state.
- public CallStateReason state_reason { owned get; }
Reason why state last changed.
Static methods:
- public static Quark get_feature_quark_core ()
Creation methods:
- protected CallChannel ()
Methods:
- public async bool accept_async () throws Error
For incoming calls with state set to INITIALISED, accept the incoming call.
- public async CallContent add_content_async (string name, MediaStreamType type, MediaStreamDirection initial_direction) throws Error
Request that a new Content of type
type
is added to this. - public unowned GenericArray<CallContent> get_contents ()
- public unowned HashTable<Contact,uint> get_members ()
Get the members of this call.
- public CallState get_state (out CallFlags flags, out unowned HashTable<void*,void*> details, out unowned CallStateReason reason)
- public async bool hangup_async (CallStateChangeReason reason, string detailed_reason, string message) throws Error
Request that the call is ended.
- public bool has_dtmf ()
Whether or not this can send DTMF tones using send_tones_async.
- public bool has_hardware_streaming ()
- public bool has_hold ()
Whether or not this has the IFACE_CHANNEL_INTERFACE_HOLD interfaces
- public bool has_initial_audio (out unowned string initial_audio_name)
- public bool has_initial_video (out unowned string initial_video_name)
- public bool has_mutable_contents ()
- public async bool request_hold_async (bool hold) throws Error
Requests that the connection manager holds or unholds the call.
- public async bool send_tones_async (string tones, Cancellable? cancellable) throws Error
Send
tones
on every of this's contents which have the IFACE_CALL_CONTENT_INTERFACE_DTMF interface. - public async bool set_queued_async () throws Error
Notifies the CM that the local user is already in a call, so this call has been put in a call-waiting style queue.
- public async bool set_ringing_async () throws Error
Indicate that the local user has been alerted about the incoming call.
Signals:
- public signal void content_added (Object content)
The content_added signal is emitted whenever a CallContent is added to
self
. - public signal void content_removed (Object content, CallStateReason reason)
The content_removed signal is emitted whenever a CallContent is removed from
self
. - public signal void members_changed (HashTable<Contact,uint> updates, GenericArray<Contact> removed, CallStateReason reason)
The members_changed signal is emitted whenever the call's members changes.
- public signal void state_changed (uint state, uint flags, CallStateReason reason, HashTable<string,Value?> details)
The state_changed signal is emitted whenever the call state changes.
Inherited Members:
All known members inherited from class TelepathyGLib.Channel
- borrow_connection
- borrow_immutable_properties
- channel_ready
- chat_state_changed
- close_async
- connection
- destroy_async
- dup_immutable_properties
- get_channel_type
- get_channel_type_id
- get_chat_state
- get_connection
- get_feature_quark_chat_states
- get_feature_quark_contacts
- get_feature_quark_core
- get_feature_quark_group
- get_feature_quark_password
- get_handle
- get_identifier
- get_initiator_contact
- get_requested
- get_target_contact
- group_contacts_changed
- group_dup_local_pending_contacts
- group_dup_members_contacts
- group_dup_remote_pending_contacts
- group_flags
- group_flags_changed
- group_get_contact_owner
- group_get_flags
- group_get_handle_owner
- group_get_local_pending
- group_get_local_pending_contact_info
- group_get_local_pending_info
- group_get_members
- group_get_remote_pending
- group_get_self_contact
- group_get_self_handle
- group_members_changed_detailed
- group_self_contact
- group_self_handle
- identifier
- init_known_interfaces
- initiator_contact
- initiator_handle
- initiator_identifier
- join_async
- leave_async
- password_needed
- provide_password_async
- requested
- target_contact
All known members inherited from class TelepathyGLib.Proxy
All known members inherited from class GLib.Object