Camel.OfflineStore¶
- Subclasses:
None
Methods¶
- Inherited:
Camel.Store (46), Camel.Service (32), Camel.Object (4), GObject.Object (37), Gio.Initable (2)
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Camel.Store (17), Camel.Service (5), Camel.Object (2), GObject.Object (7), Gio.Initable (1)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Whether the store is online |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Camel.OfflineStore(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- dup_downsync_folders()¶
- Returns:
an array with folders to be checked for offline synchronization.
- Return type:
Returns a
GLib.PtrArray
ofCamel.Folder
objects which should be checked for offline synchronization. Free the returned pointer with the below calls, when no longer needed:g_ptr_array_foreach (array, (GFunc) g_object_unref, NULL); g_ptr_array_free (array, TRUE);
New in version 3.28.
- prepare_for_offline_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
whether succeeded
- Return type:
Downloads messages for offline, when setup to do so and when the host is reachable.
New in version 2.22.
- requires_downsync()¶
- Return type:
Check whether the self requires synchronization for offline usage. This is not blocking, it only checks settings on the store and its currently opened folders.
Returns
True
if the self requires synchronization for offline usageNew in version 3.12.
- set_online(online, io_priority, cancellable, callback, *user_data)¶
- Parameters:
io_priority (
int
) – the I/O priority for the requestcancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the request is satisfieduser_data (
object
orNone
) – data to pass to the callback function
An asynchronous variant of
Camel.OfflineStore.set_online_sync
(). CallCamel.OfflineStore.set_online_finish
() from within the callback.New in version 3.26.
- set_online_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – aGio.AsyncResult
- Raises:
- Returns:
Whether succeeded.
- Return type:
Finishes the operation started with
Camel.OfflineStore.set_online
().New in version 3.26.
- set_online_sync(online, cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, orNone
- Raises:
- Returns:
Whether succeeded.
- Return type:
Sets the online/offline state of self according to online.
- do_dup_downsync_folders() virtual¶
- Returns:
an array with folders to be checked for offline synchronization.
- Return type:
Returns a
GLib.PtrArray
ofCamel.Folder
objects which should be checked for offline synchronization. Free the returned pointer with the below calls, when no longer needed:g_ptr_array_foreach (array, (GFunc) g_object_unref, NULL); g_ptr_array_free (array, TRUE);
New in version 3.28.