SharingEntry

SharingEntry — Sharing entry object used to abstract all entries that can be made and used with Sharing.

Synopsis

SharingAccount*     sharing_entry_get_account           (const SharingEntry *self);
const gchar*        sharing_entry_get_option            (SharingEntry *self,
                                                         const gchar *id);
GSList*             sharing_entry_get_media             (SharingEntry *self);
guint64             sharing_entry_get_size              (const SharingEntry *self);

Description

SharingEntry is abstraction of sharing entry. It holds methods to get and modify metadata of entry, methods to serialized entries to memory and ...

Details

sharing_entry_get_account ()

SharingAccount*     sharing_entry_get_account           (const SharingEntry *self);

Get SharingAccount marked as target of entry.

self : Pointer to SharingService object
see_also : sharing_entry_get_account_id()
Returns : Pointer SharingAccount, free with sharing_account_free(). NULL if account not found.

sharing_entry_get_option ()

const gchar*        sharing_entry_get_option            (SharingEntry *self,
                                                         const gchar *id);

Get option value with id

self : Pointer to SharingEntry object
id : ID of option
Returns : Value of option or NULL if option not defined

sharing_entry_get_media ()

GSList*             sharing_entry_get_media             (SharingEntry *self);

Get all media objects of entry

self : Pointer to SharingEntry object
Returns : GSList of pointer to SharingEntryMedia objects. Both list and objects are owned by SharingEntry object. Do not free either list or objects. And do not edit list at all. Both are valid as far as medias isn't added or removed in SharingEntry. NULL is returned as empty list or if data can't be resolved.

sharing_entry_get_size ()

guint64             sharing_entry_get_size              (const SharingEntry *self);

Get sum size of media elements of entry. NOTE: Returns the sum of elements not already sent, since the sent files are deleted after sending.

self : Pointer to SharingEntry object
Returns : Size in bytes

See Also

SharingEntryMedia