Camel.VeeFolder¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Automatically _update on change in source folders |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Camel.VeeFolder(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(parent_store, full, flags)¶
- Parameters:
parent_store (
Camel.Store) – the parentCamel.VeeStorefull (
str) – the full path to the vfolder.flags (
int) – flags of some kind
- Returns:
A new CamelVeeFolder object. Unref it with
GObject.Object.unref() when no longer needed.- Return type:
- add_folder(subfolder, cancellable)¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto add to selfcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Adds subfolder as a source folder to self.
- add_vuid(mi_data, changes)¶
- Parameters:
mi_data (
objectorNone) – aCamel.VeeMessageInfoDatato addchanges (
Camel.FolderChangeInfoorNone) – an optionalCamel.FolderChangeInfoto update with the made change, orNone
Adds the mi_data to the self. The changes can be updated with the made change and later used to notify others with
Camel.Folder.changed() on the self. This can be used only for the Unmatched folder.New in version 3.6.
- construct(flags)¶
- Parameters:
flags (
int) – flags for the self
Initializes internal structures of the self. This is meant to be called by the descendants of
Camel.VeeFolder.
- get_auto_update()¶
- Returns:
whether the self can automatically update when any of its subfolders changes.
- Return type:
New in version 3.6.
- get_expression()¶
- Returns:
a SExp expression used for this self
- Return type:
New in version 3.6.
- get_flags()¶
- Returns:
flags of self, as set by
Camel.VeeFolder.construct()- Return type:
New in version 3.24.
- get_location(vinfo)¶
- Parameters:
vinfo (
Camel.VeeMessageInfo) – aCamel.VeeMessageInfoto search for- Returns:
a real (not virtual)
Camel.Folder, which the vinfo is for.- realuid:
if not
None, set to the UID of the real message info
- Return type:
(
Camel.Folder, realuid:strorNone)
Find the real folder (and message info UID) for the given vinfo. When the realuid is not
Noneand it’s set, then useGLib.free() to free it, when no longer needed.
- get_vee_uid_folder(vee_message_uid)¶
- Parameters:
vee_message_uid (
str) – a virtual message info UID- Returns:
a
Camel.Folderto which the vee_message_uid belongs, orNone, when it could not be found.- Return type:
Camel.FolderorNone
New in version 3.6.
- ignore_next_changed_event(subfolder)¶
- Parameters:
subfolder (
Camel.Folder) – aCamel.Folderfolder
The next subfolder-‘s ‘changed’ event will be silently ignored. This is usually used in virtual folders when the change was done in them, but it is neither vTrash nor vJunk folder. Doing this avoids unnecessary removals of messages which don’t satisfy search criteria anymore, which could be done on asynchronous delivery of folder’s ‘changed’ signal. These ignored changes are accumulated and used on folder refresh.
New in version 3.2.
- propagate_skipped_changes()¶
Propagate any skipped changes into the self. The skipped changes are used to not hide the messages from the search folder unexpectedly. The function does nothing when there are no changes to be propagated.
New in version 3.38.
- rebuild_folder(subfolder, cancellable)¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto add to selfcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Rebuild the folder subfolder, if it should be.
- ref_folders()¶
- Returns:
a
GLib.Listof all folders of this self.- Return type:
Returns a
GLib.Listof all folders of this self, which are used to populate it. These are in no particular order.Free the returned
GLib.Listwith g_list_free_full (folders,GObject.Object.unref); when no longer needed.New in version 3.28.
- remove_folder(subfolder, cancellable)¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto remove from selfcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Removed the source folder, subfolder, from the virtual folder, self.
- remove_from_ignore_changed_event(subfolder)¶
- Parameters:
subfolder (
Camel.Folder) – aCamel.Folderfolder
Make sure the next subfolder-‘s ‘changed’ event will not be silently ignored. This is a counter-
Camel.partfunction ofCamel.VeeFolder.ignore_next_changed_event(), when there was expected a change, which did not happen, to take back the previous ignore event request.New in version 3.12.
- remove_vuid(mi_data, changes)¶
- Parameters:
mi_data (
objectorNone) – aCamel.VeeMessageInfoDatato removechanges (
Camel.FolderChangeInfoorNone) – an optionalCamel.FolderChangeInfoto update with the made change, orNone
Removes given mi_data from the self. The changes can be updated with the made change and later used to notify others with
Camel.Folder.changed() on the self. This can be used only for the Unmatched folder.New in version 3.6.
- set_auto_update(auto_update)¶
- Parameters:
auto_update (
bool) – a value to set
Sets whether the self can automatically update when of its subfolders changes.
New in version 3.6.
- set_expression(expression)¶
- Parameters:
expression (
str) – an SExp expression to set
Sets an SExp expression to be used for this self
New in version 3.6.
- set_folders(folders, cancellable)¶
- Parameters:
folders ([
Camel.Folder]) – aGLib.ListofCamel.Folderto addcancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Set the whole list of folder sources on a vee folder.
- do_add_folder(subfolder, cancellable) virtual¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto add to vfoldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Adds subfolder as a source folder to vfolder.
- do_folder_changed(subfolder, changes) virtual¶
- Parameters:
subfolder (
Camel.Folder) –changes (
Camel.FolderChangeInfo) –
- do_rebuild_folder(subfolder, cancellable) virtual¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto add to vfoldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Rebuild the folder subfolder, if it should be.
- do_remove_folder(subfolder, cancellable) virtual¶
- Parameters:
subfolder (
Camel.Folder) – sourceCamel.Folderto remove from vfoldercancellable (
Gio.CancellableorNone) – optionalGio.Cancellableobject, orNone
Removed the source folder, subfolder, from the virtual folder, vfolder.