Camel.OfflineFolder¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Copy folder content locally for _offline operation |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Camel.OfflineFolder(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- can_downsync()¶
-
Checks whether the self can run downsync according to its settings (
Camel.OfflineFolder.get_offline_sync()) and to the parent’sCamel.OfflineStoresettings (Camel.OfflineSettings.get_stay_synchronized()).New in version 3.22.
- downsync(expression, io_priority, cancellable, callback, *user_data)¶
- Parameters:
expression (
strorNone) – search expression describing which set of messages to downsync (Nonefor all)io_priority (
int) – the I/O priority of the requestcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfieduser_data (
objectorNone) – data to pass to the callback function
Synchronizes messages in self described by the search expression to the local machine asynchronously for offline availability.
When the operation is finished, callback will be called. You can then call
Camel.OfflineFolder.downsync_finish() to get the result of the operation.New in version 3.0.
- downsync_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult- Raises:
- Returns:
- Return type:
Finishes the operation started with
Camel.OfflineFolder.downsync().New in version 3.0.
- downsync_sync(expression, cancellable)¶
- Parameters:
expression (
strorNone) – search expression describing which set of messages to downsync (Nonefor all)cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Raises:
- Returns:
- Return type:
Synchronizes messages in self described by the search expression to the local machine for offline availability.
New in version 3.0.
- get_offline_sync()¶
- Return type:
New in version 2.32.
- set_offline_sync(offline_sync)¶
- Parameters:
offline_sync (
Camel.ThreeState) – whether to synchronize for offline use, as aCamel.ThreeStateenum
The
Camel.ThreeState.INCONSISTENTmeans what the parent store has set.New in version 2.32.
- do_downsync_sync(expression, cancellable) virtual¶
- Parameters:
expression (
strorNone) – search expression describing which set of messages to downsync (Nonefor all)cancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
- Returns:
- Return type:
Synchronizes messages in folder described by the search expression to the local machine for offline availability.
New in version 3.0.
Property Details¶
- Camel.OfflineFolder.props.offline_sync¶
- Name:
offline-sync- Type:
- Default Value:
- Flags:
Copy folder content locally for _offline operation