* Removed an invalid g_object_unref in a mail operation
[modest] / src / modest-init.h
index 9fbd18c..911bb81 100644 (file)
 
 #include <glib.h>
 #include <glib-object.h>
+#include <modest-runtime.h>
 
 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:
  *
@@ -80,6 +71,29 @@ gboolean modest_init_init_ui (gint argc, gchar** argv);
  */
 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.
+ * 
+ * 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);
+
+
 G_END_DECLS
 
 #endif /*__MODEST_INIT_H__*/