SharingTransfer

SharingTransfer — Abstraction of SharingEntry transfer.

Synopsis

SharingEntry*       sharing_transfer_get_entry          (SharingTransfer *self);
void                sharing_transfer_set_progress       (SharingTransfer *self,
                                                         gdouble value);
gboolean            sharing_transfer_continue           (SharingTransfer *self);

Description

SharingTransfer is an abstraction of the transfer of a SharingEntry.

Details

sharing_transfer_get_entry ()

SharingEntry*       sharing_transfer_get_entry          (SharingTransfer *self);

Get a SharingEntry from a SharingTransfer.

self : a SharingTransfer
Returns : a SharingEntry on success, or NULL otherwise. The SharingTransfer owns the returned instance, so it must not be freed

sharing_transfer_set_progress ()

void                sharing_transfer_set_progress       (SharingTransfer *self,
                                                         gdouble value);

Set current progress value of transfer

self : SharingTransfer instance
value : Progress value between 0.0 and 1.0

sharing_transfer_continue ()

gboolean            sharing_transfer_continue           (SharingTransfer *self);

Get current SharingTransfer control flag.

self : SharingTransfer instance
Returns : TRUE if transfer is continued or FALSE is transfer cancel is wanted.