X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-init.h;h=911bb81437e8f86a21611459244c96f8d5799003;hp=690d64bd1707b2554b15b6770fa9b480552d806a;hb=52665b57b1c2770d5542fb0e70f96d6853225eb8;hpb=cff6e187da1ccf008a4672b0892c06be55f4f3a2 diff --git a/src/modest-init.h b/src/modest-init.h index 690d64b..911bb81 100644 --- a/src/modest-init.h +++ b/src/modest-init.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2006, Nokia Corporation +/* Copyright (c) 2006, 2007 Nokia Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -32,26 +32,49 @@ #include #include +#include -/* - * functions to initialize various parts of the modest system +G_BEGIN_DECLS + +/** + * modest_init_init_core: + * + * initialize the modest runtime system (which sets up the + * environment, instantiates singletons and so on) + * modest_runtime_init should only be called once, and + * when done with it, modest_runtime_uninit should be called + * + * TRUE if this succeeded, FALSE otherwise. */ +gboolean modest_init_init_core (void); -G_BEGIN_DECLS /** - * modest_init_header_columns: - * @overwrite: write the setting, even if it already exists - * - * will set defaults for the columns to show for folder, - * if there are no such settings yet (in ModestWidgetMemory) + * modest_init_init_ui: + * @argc: the #argc argument to the main function + * @argv: the #argv argument to the main function * - * Returns: TRUE if succeeded, FALSE in case of error + * 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 + * resources and so on. + * + * TRUE if this succeeded, FALSE otherwise */ -gboolean modest_init_header_columns (gboolean overwrite); +gboolean modest_init_uninit (void); /** * modest_init_local_folders: + * @location_filepath: The location at which the local-folders directory should be created, + * or NULL to specify $HOME. * * create the Local Folders folder under cache, if they * do not exist yet. @@ -59,7 +82,17 @@ gboolean modest_init_header_columns (gboolean overwrite); * Returns: TRUE if the folder were already there, or * they were created, FALSE otherwise */ -gboolean modest_init_local_folders (void); +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); + G_END_DECLS