FileTransferChannel
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_file_transfer_channel_get_type ()" ) ]
[ Version ( since = "0.15.5" ) ]
public class FileTransferChannel : Channel
[ Version ( since = "0.15.5" ) ]
public class FileTransferChannel : Channel
Data structure representing a FileTransferChannel.
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public DateTime date { get; }
A DateTime representing the last modification time of the file to be transferred.
- public string description { get; }
The description of the file transfer, defined by the sender when sending the file transfer offer.
- public File file { owned get; }
For incoming file transfers, this property will be set to a File for the location where the file will be saved (given by accept_file_async) when the transfer starts.
- public string filename { get; }
The name of the file on the sender's side.
- public uint64 initial_offset { get; }
The offset in bytes from where the file should be sent.
- public string mime_type { get; }
The MIME type of the file to be transferred.
- public string service_name { get; }
A string representing the name of the service suggested to handle this file transfer channel, or
null
if the initiator did not provide one. - public uint64 size { get; }
The size of the file to be transferred, or MAX if not known.
- public uint state { get; }
A TpFileTransferState holding the state of the file transfer.
- public uint64 transferred_bytes { get; }
The number of bytes transferred so far in this file transfer.
Static methods:
- public static Quark get_feature_quark_core ()
Creation methods:
- public FileTransferChannel (Connection conn, string object_path, HashTable<string,Value?> immutable_properties) throws Error
Convenient function to create a new FileTransferChannel
Methods:
- public async bool accept_file_async (File file, uint64 offset) throws Error
Accept an incoming file transfer in the PENDING state.
- public unowned DateTime get_date ()
Return the date property
- public unowned string get_description ()
Return the description property
- public unowned string get_filename ()
Return the filename property
- public unowned HashTable<string,string[]> get_metadata ()
Return the
TpFileTransferChannel:metadata
property - public unowned string get_mime_type ()
Return the mime_type property
- public unowned string get_service_name ()
Return the service_name property
- public uint64 get_size ()
Return the size property
- public FileTransferState get_state (out FileTransferStateChangeReason reason)
Returns the state property.
- public uint64 get_transferred_bytes ()
Return the transferred_bytes property
- public async bool provide_file_async (File file) throws Error
Provide a file transfer.
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