Camel.VeeDataCache¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Camel.VeeDataCache(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.6.
- classmethod new()¶
- Returns:
a new
Camel.VeeDataCache; unref it withGObject.Object.unref(), when no longer needed.- Return type:
New in version 3.6.
- add_subfolder(subfolder)¶
- Parameters:
subfolder (
Camel.Folder) – aCamel.Folder
Adds the subfolder to the self to be tracked by it. The subfolder is referenced for later use. The function does nothing when the subfolder is already in the self. The subfolders can be removed with
Camel.VeeDataCache.remove_subfolder().New in version 3.6.
- contains_message_info_data(folder, orig_message_uid)¶
- Parameters:
folder (
Camel.Folder) – aCamel.Folderto which the orig_message_uid belongsorig_message_uid (
str) – a message UID from the folder to check
- Return type:
Returns whether data_cache contains given orig_message_uid for the given folder. Unlike
Camel.VeeDataCache.get_message_info_data(), this only returnsFalseif not, whileCamel.VeeDataCache.get_message_info_data() auto-adds it to data_cache.New in version 3.6.
- foreach_message_info_data(fromfolder, func, *user_data)¶
- Parameters:
fromfolder (
Camel.Folder) – aCamel.Folderfunc (
Camel.ForeachInfoData) – aCamel.ForeachInfoDatafunction to call
Calls the func for each message info data from the given fromfolder
New in version 3.6.
- get_message_info_data(folder, orig_message_uid)¶
- Parameters:
folder (
Camel.Folder) – aCamel.Folderto which the orig_message_uid belongsorig_message_uid (
str) – a message UID from the folder to return
- Returns:
a referenced
Camel.VeeMessageInfoData; unref it withGObject.Object.unref(), when no longer needed.- Return type:
Returns a referenced
Camel.VeeMessageInfoDatareferencing the given folder and orig_message_uid. If it’s notCamel.partof the self, then it is created and auto-added. UseCamel.VeeDataCache.contains_message_info_data() when you only want to check the existence, without adding it to the self.New in version 3.6.
- get_message_info_data_by_vuid(vee_message_uid)¶
- Parameters:
vee_message_uid (
str) – a message UID in the virtual folder- Returns:
a referenced
Camel.VeeMessageInfoData, which corresponds to the given vee_message_uid, orNone, when no such message info with that virtual UID exists. Unref it withGObject.Object.unref(), when no longer needed.- Return type:
New in version 3.6.
- get_subfolder_data(folder)¶
- Parameters:
folder (
Camel.Folder) – aCamel.Folderfor which to return subfolder data- Returns:
a referenced
Camel.VeeSubfolderData; unref it withGObject.Object.unref(), when no longer needed.- Return type:
Returns a
Camel.VeeSubfolderDatafor the given folder.New in version 3.6.
- remove_message_info_data(mi_data)¶
- Parameters:
mi_data (
Camel.VeeMessageInfoData) – aCamel.VeeMessageInfoDatato remove
Removes given mi_data from the self.
New in version 3.6.
- remove_subfolder(subfolder)¶
- Parameters:
subfolder (
Camel.Folder) – aCamel.Folderto remove
Removes given subfolder from the self, which had been previously added with
Camel.VeeDataCache.add_subfolder(). The function does nothing, when the subfolder is notCamel.partof the self.New in version 3.6.