2007-06-14 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-init.h
index f5c9d43..493202e 100644 (file)
@@ -33,6 +33,7 @@
 #include <glib.h>
 #include <glib-object.h>
 #include <modest-runtime.h>
+#include <widgets/modest-header-view.h>
 
 G_BEGIN_DECLS
 
@@ -72,6 +73,17 @@ 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,
@@ -80,6 +92,16 @@ gboolean modest_init_uninit (void);
  */
 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__*/