StoreDB
Object Hierarchy:
Description:
[
CCode ( type_id =
"camel_store_db_get_type ()" ) ]
[
Version ( since =
"3.58" ) ]
public class StoreDB :
DB
Content:
Static methods:
Creation methods:
Methods:
- public bool clear_folder (string folder_name) throws Error
Clears content of the folder_name.
- public bool count_messages (string folder_name, StoreDBCountKind kind, out uint32 out_count) throws Error
Counts kind messages in folder folder_name.
- public bool delete_folder (string folder_name) throws Error
Deletes all information about the folder_name.
- public bool delete_message (string folder_name, string uid) throws Error
Deletes single message with UID uid from folder
folder_name.
- public bool delete_messages (string folder_name, GenericArray<string> uids) throws Error
Deletes multiple messages with UID uids from folder
folder_name.
- public GenericArray<unowned string> dup_deleted_uids (string folder_name) throws Error
Gets deleted message UID-s in folder folder_name.
- public GenericArray<unowned string> dup_junk_uids (string folder_name) throws Error
Gets junk message UID-s in folder folder_name.
- public string? dup_string_key (string key)
Reads a string value for the key.
- public HashTable<unowned string,uint32> dup_uids_with_flags (string folder_name) throws Error
Reads message UID-s with their flags in folder folder_name
and returns it as a hash table with UID-s as a key and the flags as a value.
- public uint32 get_folder_id (string folder_name)
Gets ID of a folder named folder_name.
- public int get_int_key (string key, int def_value)
Reads an integer value for the key.
- public bool read_folder (string folder_name, out StoreDBFolderRecord out_record) throws Error
Reads information about a folder named folder_name,
previously stored by the write_folder.
- public bool read_message (string folder_name, string uid, out StoreDBMessageRecord out_record) throws Error
Reads information about a single message stored in the
this.
- public bool read_messages (string folder_name, StoreDBReadMessagesFunc func) throws Error
Reads information about all messages for the folder folder_name
and calls the func with its user_data for each such message information.
- public bool rename_folder (string old_folder_name, string new_folder_name) throws Error
Renames folder old_folder_name to new_folder_name
.
- public bool set_int_key (string key, int value) throws Error
Sets an integer value for the key to value.
- public bool set_string_key (string key, string value) throws Error
Sets a string value for the key to value.
- public bool write_folder (string folder_name, StoreDBFolderRecord record) throws Error
Writes information about a folder as set in the record.
- public bool write_message (string folder_name, StoreDBMessageRecord record) throws Error
Writes information about a single message into the
this.
Inherited Members:
All known members inherited from class Camel.DB
All known members inherited from class GLib.Object