Camel.OfflineSettings¶
- Subclasses:
None
Methods¶
- Inherited:
Camel.StoreSettings (4), Camel.Settings (2), GObject.Object (37)
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/c/en |
Whether to limit what will be synchronized by message date |
||
r/w/c/en |
A unit for the limit-value |
||
r/w/c/en |
How many days/weeks/months/years to download into the local cache, if limit-by-age is set to |
||
r/w/c/en |
Stay synchronized with the remote server |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Camel.OfflineSettings(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
Added in version 3.2.
- get_limit_by_age()¶
- Returns:
whether limit messages stored for offline use by their age
- Return type:
Added in version 3.24.
- get_limit_unit()¶
- Returns:
the limit unit to use when interpreting ‘limit-value’
- Return type:
Added in version 3.24.
- get_limit_value()¶
-
Added in version 3.24.
- get_stay_synchronized()¶
- Returns:
whether to stay synchronized with the remote server
- Return type:
Returns whether to synchronize the local cache with the remote server before switching to offline mode, so the store’s content can still be read while offline.
Added in version 3.2.
- get_store_changes_interval()¶
- Returns:
the interval for automatic store of folder changes
- Return type:
Returns the interval, in seconds, for the changes in the folder being saved automatically. 0 means immediately, while -1 means turning off automatic folder change saving.
Added in version 3.18.
Deprecated since version 3.40: Use
Camel.StoreSettings.get_store_changes_interval() instead
- set_limit_by_age(limit_by_age)¶
- Parameters:
limit_by_age (
bool) – a value to set
Set whether the messages to download for offline should be limited by age. If set to
True, then messages older than ‘limit-value’ will not be downloaded automatically.Added in version 3.24.
- set_limit_unit(limit_unit)¶
- Parameters:
limit_unit (
Camel.TimeUnit) – aCamel.TimeUnitwith a unit to use
Set the limit unit to use when interpreting ‘limit-value’.
Added in version 3.24.
- set_limit_value(limit_value)¶
- Parameters:
limit_value (
bool) – a value to set
Set the limit, in ‘limit-unit’, to use when ‘limit-by-age’ is set to
True.Added in version 3.24.
- set_stay_synchronized(stay_synchronized)¶
- Parameters:
stay_synchronized (
bool) – whether to stay synchronized with the remote server
Sets whether to synchronize the local cache with the remote server before switching to offline mode, so the store’s content can still be read while offline.
Added in version 3.2.
- set_store_changes_interval(interval)¶
- Parameters:
interval (
int) – the interval, in seconds
Sets the interval, in seconds, for the changes in the folder being saved automatically. 0 means immediately, while -1 means turning off automatic folder change saving.
Added in version 3.18.
Deprecated since version 3.40: Use
Camel.StoreSettings.set_store_changes_interval() instead
Property Details¶
- Camel.OfflineSettings.props.limit_by_age¶
- Name:
limit-by-age- Type:
- Default Value:
- Flags:
Whether to limit what will be synchronized by message date
- Camel.OfflineSettings.props.limit_unit¶
- Name:
limit-unit- Type:
- Default Value:
- Flags:
A unit for the limit-value