Store
Object Hierarchy:
Camel.Store
Camel.Store
Camel.Store
Camel.Service
Camel.Service
Camel.Service->Camel.Store
Camel.Object
Camel.Object
Camel.Object->Camel.Service
GLib.Object
GLib.Object
GLib.Object->Camel.Object
GLib.Initable
GLib.Initable
GLib.Initable->Camel.Store
GLib.Initable->Camel.Service
Description:
[
CCode ( type_id =
"camel_store_get_type ()" ) ]
public abstract class Store :
Service ,
Initable
Content:
Creation methods:
Methods:
public virtual bool can_refresh_folder (FolderInfo info) throws Error
Returns if this folder (param info) should be checked for new mail or
not.
public async FolderInfo ? create_folder (string ? parent_name, string folder_name, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously creates a new folder as a child of an existing folder.
public virtual FolderInfo ? create_folder_sync (string ? parent_name, string folder_name, Cancellable ? cancellable = null ) throws Error
Creates a new folder as a child of an existing folder.
public void delete_cached_folder (string folder_name)
Deletes local data for the given folder_name
.
public async bool delete_folder (string folder_name, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously deletes the folder described by folder_name
.
public virtual bool delete_folder_sync (string folder_name, Cancellable ? cancellable = null ) throws Error
Deletes the folder described by folder_name
.
public GenericArray <Folder > dup_opened_folders ()
Returns a GenericArray of all the opened
folders for the this .
public virtual bool get_can_auto_save_changes ()
Returns whether there can be done automatic save of folder changes.
public unowned DB get_db ()
public uint32 get_flags ()
public async Folder ? get_folder (string folder_name, StoreGetFolderFlags flags, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously gets a specific folder object from
this by name.
public async FolderInfo ? get_folder_info (string ? top, StoreGetFolderInfoFlags flags, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously fetches information about the folder structure of
this , starting with top
.
public virtual FolderInfo ? get_folder_info_sync (string ? top, StoreGetFolderInfoFlags flags, Cancellable ? cancellable = null ) throws Error
This fetches information about the folder structure of
this , starting with top
, and returns a tree of
FolderInfo structures.
public virtual Folder ? get_folder_sync (string folder_name, StoreGetFolderFlags flags, Cancellable ? cancellable = null ) throws Error
Gets a specific folder object from this
by name.
public unowned ObjectBag get_folders_bag ()
public async Folder ? get_inbox_folder (int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously gets the folder in this
into which new mail is delivered.
public virtual Folder ? get_inbox_folder_sync (Cancellable ? cancellable = null ) throws Error
Gets the folder in this into which
new mail is delivered.
public async Folder ? get_junk_folder (int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously gets the folder in this
into which junk is delivered.
public virtual Folder ? get_junk_folder_sync (Cancellable ? cancellable = null ) throws Error
Gets the folder in this into which
junk is delivered.
public uint32 get_permissions ()
public async Folder ? get_trash_folder (int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously gets the folder in this
into which trash is delivered.
public virtual Folder ? get_trash_folder_sync (Cancellable ? cancellable = null ) throws Error
Gets the folder in this into which
trash is delivered.
public async bool initial_setup (int io_priority, Cancellable ? cancellable = null , out HashTable <unowned string ,unowned string > out_save_setup) throws Error
Runs initial setup for the this
asynchronously.
public virtual bool initial_setup_sync (out HashTable <unowned string ,unowned string > out_save_setup, Cancellable ? cancellable = null ) throws Error
Runs initial setup for the this .
public bool maybe_run_db_maintenance () throws Error
Checks the state of the current CamelDB used for the
this and eventually runs maintenance routines on it.
public async bool rename_folder (string old_name, string new_name, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously renames the folder described by old_name
to new_name
.
public virtual bool rename_folder_sync (string old_name, string new_name, Cancellable ? cancellable = null ) throws Error
Renames the folder described by old_name
to
new_name
.
public void set_flags (uint32 flags)
public void set_permissions (uint32 permissions)
public async bool synchronize (bool expunge, int io_priority, Cancellable ? cancellable = null ) throws Error
Synchronizes any changes that have been made to
this and its folders with the real store asynchronously.
public virtual bool synchronize_sync (bool expunge, Cancellable ? cancellable = null ) throws Error
Synchronizes any changes that have been made to
this and its folders with the real store.
Signals:
public virtual signal void folder_created (FolderInfo folder_info)
Emits the folder_created signal from an
idle source on the main loop.
public virtual signal void folder_deleted (FolderInfo folder_info)
Emits the folder_deleted signal from an
idle source on the main loop.
public virtual signal void folder_info_stale ()
This signal indicates significant changes have occurred to the folder
hierarchy of store
, and that previously fetched FolderInfo data should
be considered stale.
public virtual signal void folder_opened (Folder folder)
Emits the folder_opened signal from an
idle source on the main loop.
public virtual signal void folder_renamed (string old_name, FolderInfo folder_info)
Emits the folder_renamed signal from an
idle source on the main loop.
Inherited Members:
All known members inherited from class Camel.Service
All known members inherited from class Camel.Object
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.Initable