TextChannel
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_text_channel_get_type ()" ) ]
[ Version ( since = "0.13.10" ) ]
public class TextChannel : Channel
[ Version ( since = "0.13.10" ) ]
public class TextChannel : Channel
Data structure representing a TextChannel.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public uint delivery_reporting_support { get; }
A DeliveryReportingSupportFlags indicating features supported by this channel.
- public bool is_sms_channel { get; }
true
if messages sent and received on this channel are transmitted via SMS. - public uint message_part_support_flags { get; }
A MessagePartSupportFlags indicating the level of support for message parts on this channel.
- public bool sms_flash { get; }
true
if this channel is exclusively for receiving class 0 SMSes (and no SMSes can be sent using send_message_async on this channel). - public string[] supported_content_types { get; }
A
GStrv
containing the MIME types supported by this channel, with more preferred MIME types appearing earlier in the array.
Static methods:
- public static Quark get_feature_quark_chat_states ()
- public static Quark get_feature_quark_incoming_messages ()
- public static Quark get_feature_quark_sms ()
Creation methods:
- public TextChannel (Connection conn, string object_path, HashTable<string,Value?> immutable_properties) throws Error
Convenient function to create a new TextChannel
Methods:
- public async bool ack_all_pending_messages_async () throws Error
Acknowledge all the pending messages.
- public async bool ack_message_async (Message message) throws Error
Acknowledge
message
. - public async bool ack_messages_async (List<SignalledMessage> messages) throws Error
Acknowledge all the messages in
messages
. - public List<SignalledMessage> dup_pending_messages ()
Return a newly allocated list of unacknowledged SignalledMessage objects.
- public ChannelChatState get_chat_state (Contact contact)
Return the chat state for the given contact.
- public DeliveryReportingSupportFlags get_delivery_reporting_support ()
Return the delivery_reporting_support property
- public MessagePartSupportFlags get_message_part_support_flags ()
Return the message_part_support_flags property
- public unowned Array<ChannelTextMessageType> get_message_types ()
Return the
TpTextChannel:message-types
s property - public List<unowned SignalledMessage> get_pending_messages ()
Return a newly allocated list of unacknowledged SignalledMessage objects.
- public bool get_sms_flash ()
Return the sms_flash property
- public async bool get_sms_length_async (Message message, out uint chunks_required, out int remaining_characters, out int estimated_cost) throws Error
Starts an async call to get the number of 140 octet chunks required to send a
message
via SMS onself
, as well as the number of remaining characters available in the final chunk and, if possible, an estimate of the cost. - public unowned string[] get_supported_content_types ()
Return the supported_content_types property
- public async bool send_message_async (Message message, MessageSendingFlags flags, out string token) throws Error
Submit a message to the server for sending.
- public async bool set_chat_state_async (ChannelChatState state) throws Error
Set the local state on channel this to
state
. - public bool supports_message_type (ChannelTextMessageType message_type)
Check if message of type
message_type
can be sent on this channel.
Signals:
- public signal void contact_chat_state_changed (Contact contact, uint state)
Emitted when a contact's chat state changes after prepare_async has finished preparing features
TP_TEXT_CHANNEL_FEATURE_CHAT_STATES
,TP_CHANNEL_FEATURE_GROUP
andTP_CHANNEL_FEATURE_CONTACTS
. - public signal void message_received (SignalledMessage message)
The message_received signal is emitted when a new message has been received on
self
. - public signal void message_sent (SignalledMessage message, uint flags, string token)
The message_sent signal is emitted when
message
has been submitted for sending. - public signal void pending_message_removed (SignalledMessage message)
The pending_message_removed signal is emitted when
message
has been acked and so removed from the pending messages list.
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