X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-init.h;h=bd99e353603f9465b50aaede4d914fad4952c622;hp=9fbd18ca870c20df4a63527e4b091f6f9a51960d;hb=40a8f5cbe03bd040fe3403dbfa6806df4fb6bc8a;hpb=98bc76b00da273d0253f82b32ba4384e6b9dd957 diff --git a/src/modest-init.h b/src/modest-init.h index 9fbd18c..bd99e35 100644 --- a/src/modest-init.h +++ b/src/modest-init.h @@ -32,21 +32,15 @@ #include #include +#include +#include G_BEGIN_DECLS -#define MODEST_DEBUG "MODEST_DEBUG" - -typedef enum { - MODEST_INIT_DEBUG_ABORT_ON_WARNING = 1 << 0, - MODEST_INIT_DEBUG_LOG_ACTIONS = 1 << 1, /* not in use atm */ - MODEST_INIT_DEBUG_DEBUG_OBJECTS = 1 << 2, /* for g_type_init */ - MODEST_INIT_DEBUG_DEBUG_SIGNALS = 1 << 3, /* for g_type_init */ - MODEST_INIT_DEBUG_FACTORY_SETTINGS = 1 << 4 /* reset to factory defaults */ -} ModestInitDebugFlags; - /** * modest_init_init_core: + * @argc: + * @argv: * * initialize the modest runtime system (which sets up the * environment, instantiates singletons and so on) @@ -55,22 +49,10 @@ typedef enum { * * TRUE if this succeeded, FALSE otherwise. */ -gboolean modest_init_init_core (void); +gboolean modest_init (int argc, char *argv[]); /** - * modest_init_init_ui: - * @argc: the #argc argument to the main function - * @argv: the #argv argument to the main function - * - * initialize the modest UI; this replaces the call to - * gtk_init - * - * TRUE if this succeeded, FALSE otherwise. - */ -gboolean modest_init_init_ui (gint argc, gchar** argv); - -/** * modest_init_uninit: * * uninitialize the modest runtime system; free all the @@ -80,6 +62,36 @@ gboolean modest_init_init_ui (gint argc, gchar** argv); */ gboolean modest_init_uninit (void); +/** + * modest_init_local_folders: + * + * create the Local Folders folder under cache, if they + * do not exist yet. + * + * Returns: TRUE if the folder were already there, or + * they were created, FALSE otherwise + */ +gboolean modest_init_local_folders (const gchar* location_filepath); + +/** + * modest_init_one_local_folder: + * + * Create the directory structure for a maildir folder, + * so that camel can use it as a maildir folder in a + * local maildir store account. + */ +gboolean modest_init_one_local_folder (gchar *maildir_path); + +/** + * modest_init_get_default_header_view_column_widths: + * + * Get a GList* containing the default column ids, + * for when suitable values cannot be retrieved from gconf. + * The result should be freed with g_slist_free(). + * Use (ModestHeaderViewColumn(GPOINTER_TO_INT(item->data)) to get the IDs. + */ +GList * modest_init_get_default_header_view_column_ids (TnyFolderType folder_type, ModestHeaderViewStyle style); + G_END_DECLS #endif /*__MODEST_INIT_H__*/