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.OfflineStore
settings (Camel.OfflineSettings.get_stay_synchronized
()).New in version 3.22.
- downsync(expression, io_priority, cancellable, callback, *user_data)¶
- Parameters:
expression (
str
orNone
) – search expression describing which set of messages to downsync (None
for all)io_priority (
int
) – the I/O priority of 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
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 (
str
orNone
) – search expression describing which set of messages to downsync (None
for all)cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, 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.ThreeState
enum
The
Camel.ThreeState.INCONSISTENT
means what the parent store has set.New in version 2.32.
- do_downsync_sync(expression, cancellable) virtual¶
- Parameters:
expression (
str
orNone
) – search expression describing which set of messages to downsync (None
for all)cancellable (
Gio.Cancellable
orNone
) – optionalGio.Cancellable
object, 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