G_BEGIN_DECLS
#include <glib.h>
-
-typedef enum {
- MODEST_LOCAL_FOLDER_TYPE_UNKNOWN,
- MODEST_LOCAL_FOLDER_TYPE_DRAFTS,
- MODEST_LOCAL_FOLDER_TYPE_SENT,
- MODEST_LOCAL_FOLDER_TYPE_OUTBOX,
- MODEST_LOCAL_FOLDER_TYPE_ARCHIVE,
- MODEST_LOCAL_FOLDER_TYPE_JUNK,
- MODEST_LOCAL_FOLDER_TYPE_TRASH,
- MODEST_LOCAL_FOLDER_TYPE_NUM
-} ModestLocalFolderType;
-
+#include <modest-defs.h>
+#include <tny-folder.h>
/**
* modest_local_folder_info_get_type
* in case of error
*
*/
-ModestLocalFolderType modest_local_folder_info_get_type (const gchar *name);
+TnyFolderType modest_local_folder_info_get_type (const gchar *name);
/**
* modest_local_folder_get_type_name
* the returned name should NOT be freed or modified
*
*/
-const gchar* modest_local_folder_info_get_type_name (ModestLocalFolderType type);
+const gchar* modest_local_folder_info_get_type_name (TnyFolderType type);
/**
- * modest_local_folder_get_type_display_name
+ * modest_local_folder_info_get_type_display_name
* @type: the type of the local folder
*
* get the localized display name for some local folder
* the returned name should NOT be freed or modified
*
*/
-const gchar* modest_local_folder_info_get_type_display_name (ModestLocalFolderType type);
+const gchar* modest_local_folder_info_get_type_display_name (TnyFolderType type);
+
+
+/**
+ * modest_local_folder_info_get_maildir_path
+ * @type: the type of the local folder
+ *
+ * get the path to the Maildir where the local folders are stored
+ *
+ * Returns: the local_folders Maildir path as a newly allocated
+ * string, which must be freed by the caller.
+ *
+ */
+gchar *modest_local_folder_info_get_maildir_path (void);
G_END_DECLS