StoreSearchIndex
Object Hierarchy:
Description:
[ CCode ( ref_function = "camel_store_search_index_ref" , type_id = "camel_store_search_index_get_type ()" , unref_function = "camel_store_search_index_unref" ) ]
[ Compact ]
[ Version ( since = "3.58" ) ]
public class StoreSearchIndex
A structure with search result indexes, holding references to matching records using the
Store, folder ID and message UID triple.
Items can be added to the index with add and checked its existence with
contains.
Content:
Creation methods:
Methods:
- public StoreSearchIndex @ref ()
Adds a reference on the this.
- public void add (Store store, uint32 folder_id, string uid)
Adds a message identified by the store, folder_id
and uid into the index this.
- public void apply_match_threads (GenericArray<StoreSearchThreadItem> items, MatchThreadsKind kind, FolderThreadFlags flags, Cancellable? cancellable = null)
Constructs the inout_threads from the items
according to the flags and then changes the content of the this to contain only
references to messages which satisfy the kind.
- public bool contains (Store store, uint32 folder_id, string uid)
Checks whether a message identified by the store,
folder_id and uid is included in the index this.
- public void move_from_existing (StoreSearchIndex src)
Moves all items from the src index into the
this.
- public bool remove (Store store, uint32 folder_id, string uid)
Removes a message identified by the store,
folder_id and uid from the index this.
- public void unref ()
Removes one reference on the this.