AccountChannelRequest
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_account_channel_request_get_type ()" ) ]
[ Version ( since = "0.11.12" ) ]
public sealed class AccountChannelRequest : Object
[ Version ( since = "0.11.12" ) ]
public sealed class AccountChannelRequest : Object
Data structure representing a AccountChannelRequest object.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public Account account { get; construct; }
The Account used to request the channel.
- public ChannelRequest channel_request { get; }
The ChannelRequest used to request the channel, or
null
if the channel has not be requested yet. - public Variant request_vardict { owned get; construct; }
The desired D-Bus properties for the channel.
- public int64 user_action_time { get; construct; }
The user action time that will be passed to the channel dispatcher when requesting the channel.
Creation methods:
- public AccountChannelRequest (Account account, HashTable<string,Value?> request, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object.
- public AccountChannelRequest.audio_call (Account account, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object which will yield a Call channel, initially carrying audio only.
- public AccountChannelRequest.audio_video_call (Account account, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object which will yield a Call channel, initially carrying both audio and video.
- public AccountChannelRequest.dbus_tube (Account account, string service_name, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object, which will yield a DBusTube channel.
- public AccountChannelRequest.file_transfer (Account account, string filename, string? mime_type, uint64 size, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object, which will yield a FileTransfer channel to send a file to a contact.
- public AccountChannelRequest.stream_tube (Account account, string service, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object, which will yield a StreamTube channel.
- public AccountChannelRequest.text (Account account, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object which will yield a Text channel.
- public AccountChannelRequest.vardict (Account account, Variant request, int64 user_action_time)
Convenience function to create a new AccountChannelRequest object.
Methods:
- public async Channel? create_and_handle_channel_async (Cancellable? cancellable, out HandleChannelsContext context) throws Error
Asynchronously calls CreateChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
that you are going to handle yourself. - public async Channel create_and_observe_channel_async (string preferred_handler, Cancellable? cancellable) throws Error
Asynchronously calls CreateChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
and let the ChannelDispatcher dispatch it to an handler. - public async bool create_channel_async (string preferred_handler, Cancellable? cancellable) throws Error
Asynchronously calls CreateChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
and let the ChannelDispatcher dispatch it to an handler. - public Variant dup_request ()
Return the request_vardict construct-only property.
- public async Channel? ensure_and_handle_channel_async (Cancellable? cancellable, out HandleChannelsContext context) throws Error
Asynchronously calls EnsureChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
that you are going to handle yourself. - public async Channel ensure_and_observe_channel_async (string preferred_handler, Cancellable? cancellable) throws Error
Asynchronously calls EnsureChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
and let the ChannelDispatcher dispatch it to an handler. - public async bool ensure_channel_async (string preferred_handler, Cancellable? cancellable) throws Error
Asynchronously calls EnsureChannel on the ChannelDispatcher to create a channel with the properties defined in
TpAccountChannelRequest:request
and let the ChannelDispatcher dispatch it to an handler. - public unowned Account get_account ()
Return the account construct-only property
- public unowned ChannelRequest get_channel_request ()
Return the channel_request property
- public unowned HashTable<void*,void*> get_request ()
Return the
TpAccountChannelRequest:request
construct-only property - public int64 get_user_action_time ()
Return the user_action_time construct-only property
- public void set_channel_factory (ClientChannelFactory factory)
Set
factory
as the ClientChannelFactory that will be used to create the channel requested by this. - public void set_conference_initial_channels (string channels)
Indicate that the channel which is going to be requested using this is an upgrade of the channels whose object paths is listed in
channels
. - public void set_delegate_to_preferred_handler (bool @delegate)
If
delegate
istrue
, asks to the client currently handling the channels to delegate them to the preferred handler (passed when calling ensure_channel_async for example). - public void set_delegated_channel_callback (owned AccountChannelRequestDelegatedChannelCb callback)
Turn on support for the org.
- public void set_file_transfer_description (string description)
Configure this channel request to provide the recipient of the file with the given description.
- public void set_file_transfer_hash (FileHashType hash_type, string hash)
Configure this channel request to accompany the file transfer with the hash of the file.
- public void set_file_transfer_initial_offset (uint64 offset)
Configure this channel request to inform the recipient of the file that this channel will not send the first
offset
bytes of the file. - public void set_file_transfer_timestamp (uint64 timestamp)
Configure this channel request to accompany the file transfer with the given modification timestamp for the file.
- public void set_file_transfer_uri (string uri)
Configure this channel request to provide other local Telepathy components with the URI of the file being sent.
- public void set_hint (string key, Variant value)
Set additional information about the channel request, which will be used in the resulting request's
TpChannelRequest:hints
s property. - public void set_hints (HashTable<void*,void*> hints)
Set additional information about the channel request, which will be used as the value for the resulting request's
TpChannelRequest:hints
s property. - public void set_initial_invitee_ids (string ids)
Indicate that the contacts listed in
ids
have to be invited to the conference represented by the channel which is going to be requested using this. - public void set_initial_invitees (GenericArray<Contact> contacts)
Indicate that the contacts listed in
contacts
have to be invited to the conference represented by the channel which is going to be requested using this. - public void set_request_property (string name, Variant value)
Configure this channel request to include the given property, as documented in the Telepathy D-Bus API Specification or an implementation-specific extension.
- public void set_sms_channel (bool is_sms_channel)
If
is_sms_channel
is set totrue
, messages sent and received on the requested channel will be transmitted via SMS. - public void set_target_contact (Contact contact)
Configure this request to create a peer-to-peer channel with
contact
as the other peer. - public void set_target_id (HandleType handle_type, string identifier)
Configure this request to create a channel with
identifier
, an identifier of typehandle_type
.
Signals:
- public signal void re_handled (Channel channel, int64 user_action_time, HandleChannelsContext context)
Emitted when the channel created using
self
has been "re-handled".
Inherited Members:
All known members inherited from class GLib.Object