Capabilities
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_capabilities_get_type ()" ) ]
[ Version ( since = "0.11.3" ) ]
public sealed class Capabilities : Object
[ Version ( since = "0.11.3" ) ]
public sealed class Capabilities : Object
An object representing capabilities a Connection or Contact supports.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public Variant channel_classes_variant { owned get; }
The underlying data structure used by Telepathy to represent the requests that can succeed.
- public bool contact_specific { get; construct; }
Whether this object accurately describes the capabilities of a particular contact, or if it's only a guess based on the capabilities of the underlying connection.
Creation methods:
- protected Capabilities ()
Methods:
- public Variant dup_channel_classes_variant ()
Return the channel_classes_variant property
- public unowned GenericArray<HashTable<void*,void*>> get_channel_classes ()
- public bool is_specific_to_contact ()
- public bool supports_audio_call (HandleType handle_type)
Return whether audio calls can be established, for instance by calling AccountChannelRequest.audio_call, followed by set_target_id with
handle_type
. - public bool supports_audio_video_call (HandleType handle_type)
Return whether audio/video calls can be established, for instance by calling AccountChannelRequest.audio_video_call, followed by set_target_id with
handle_type
. - public bool supports_contact_search (out bool with_limit, out bool with_server)
Return whether this protocol or connection can perform contact searches.
- public bool supports_dbus_tubes (HandleType handle_type, string service_name)
If the contact_specific property is
true
, this function checks if the contact associated with this Capabilities supports D-Bus tubes withhandle_type
as TargetHandleType. - public bool supports_file_transfer ()
Return whether private file transfer can be established by providing a contact identifier.
- public bool supports_file_transfer_description ()
- public bool supports_file_transfer_initial_offset ()
Return whether an initial offset other than 0 can be specified on outgoing file transfers.
- public bool supports_file_transfer_timestamp ()
- public bool supports_file_transfer_uri ()
- public bool supports_room_list (out bool with_server)
Discovers whether this protocol or connection supports listing rooms.
- public bool supports_sms ()
If the contact_specific property is
false
, this function checks if SMS text channels can be requested with the connection associated with this Capabilities. - public bool supports_stream_tubes (HandleType handle_type, string service)
If the contact_specific property is
true
, this function checks if the contact associated with this Capabilities supports stream tubes withhandle_type
as TargetHandleType. - public bool supports_text_chatrooms ()
If the contact_specific property is
false
, this function checks if named text chatrooms can be joined by providing a chatroom identifier, for instance by calling AccountChannelRequest.text followed by set_target_id with ROOM. - public bool supports_text_chats ()
Return whether private text channels can be established by providing a contact identifier, for instance by calling AccountChannelRequest.text followed by set_target_contact.
Inherited Members:
All known members inherited from class GLib.Object