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 abstraction of transfer of SharingEntry object.

Details

sharing_transfer_get_entry ()

SharingEntry*       sharing_transfer_get_entry          (SharingTransfer *self);

Get SharingEntry. SharingTransfer owns returned instance, so do not destroy it.

self : SharingTransfer instance
Returns : SharingEntry pointer or NULL if failure

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.