Interface

PurpleProtocolFileTransfer

since: 3.0

Description [src]

interface Purple.ProtocolFileTransfer : Purple.Protocol

PurpleProtocolFileTransfer provides methods for sending and receiving files.

Available since: 3.0

Prerequisite

In order to implement ProtocolFileTransfer, your type must inherit fromPurpleProtocol.

Instance methods

purple_protocol_file_transfer_receive_async

Starts the process of receiving transfer.

since: 3.0

purple_protocol_file_transfer_receive_finish

Finishes a previous call to purple_protocol_file_transfer_receive_async() and gets the result.

since: 3.0

purple_protocol_file_transfer_send_async

Starts the process of sending transfer.

since: 3.0

purple_protocol_file_transfer_send_finish

Finishes a previous call to purple_protocol_file_transfer_send_async() and gets the result.

since: 3.0

Interface structure

struct PurpleProtocolFileTransferInterface {
  void (* send_async) (
    PurpleProtocolFileTransfer* protocol,
    PurpleFileTransfer* transfer,
    GAsyncReadyCallback callback,
    gpointer data
  );
  gboolean (* send_finish) (
    PurpleProtocolFileTransfer* protocol,
    GAsyncResult* result,
    GError** error
  );
  void (* receive_async) (
    PurpleProtocolFileTransfer* protocol,
    PurpleFileTransfer* transfer,
    GAsyncReadyCallback callback,
    gpointer data
  );
  gboolean (* receive_finish) (
    PurpleProtocolFileTransfer* protocol,
    GAsyncResult* result,
    GError** error
  );
  
}
No description available.
Interface members
send_async
void (* send_async) (
    PurpleProtocolFileTransfer* protocol,
    PurpleFileTransfer* transfer,
    GAsyncReadyCallback callback,
    gpointer data
  )
 No description available.
send_finish
gboolean (* send_finish) (
    PurpleProtocolFileTransfer* protocol,
    GAsyncResult* result,
    GError** error
  )
 No description available.
receive_async
void (* receive_async) (
    PurpleProtocolFileTransfer* protocol,
    PurpleFileTransfer* transfer,
    GAsyncReadyCallback callback,
    gpointer data
  )
 No description available.
receive_finish
gboolean (* receive_finish) (
    PurpleProtocolFileTransfer* protocol,
    GAsyncResult* result,
    GError** error
  )
 No description available.

Virtual methods

Purple.ProtocolFileTransfer.receive_async

Starts the process of receiving transfer.

since: 3.0

Purple.ProtocolFileTransfer.receive_finish

Finishes a previous call to purple_protocol_file_transfer_receive_async() and gets the result.

since: 3.0

Purple.ProtocolFileTransfer.send_async

Starts the process of sending transfer.

since: 3.0

Purple.ProtocolFileTransfer.send_finish

Finishes a previous call to purple_protocol_file_transfer_send_async() and gets the result.

since: 3.0