Constructor
PurpleFileTransfernew_send
unstable since: 3.0
Declaration [src]
PurpleFileTransfer*
purple_file_transfer_new_send (
PurpleAccount* account,
PurpleContactInfo* remote,
GFile* local_file
)
Description [src]
Creates a new PurpleFileTransfer
which will be used to send local_file
to
remote
.
This will also set PurpleFileTransfer:filename
and
PurpleFileTransfer:file-size
to the proper values
for local_file
.
Available since: 3.0
Parameters
account
-
Type:
PurpleAccount
The account this file transfer is from.
The data is owned by the caller of the function. remote
-
Type:
PurpleContactInfo
The
PurpleContactInfo
of the remote user.The data is owned by the caller of the function. local_file
-
Type:
GFile
The
GFile
of the file to send.The data is owned by the caller of the function.
Return value
Type: PurpleFileTransfer
The new file transfer.
The caller of the function takes ownership of the data, and is responsible for freeing it. |