provide_file_async
Description:
Provide a file transfer.
This should be called when the file transfer state changes (tp_file_transfer_channel_get_state() and the "notify::state" signal) to ACCEPTED or PENDING. Once the file has been provided, the channel state will change to OPEN.
Once the file has been provided, callback
will be called. You should then call provide_file_async.end
to get the result of the operation.
Parameters:
this | |
file |
a File to send to the remote contact |
callback |
a callback to call when the transfer has been accepted |
user_data |
data to pass to |