X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-local-folder-info.h;h=de83755d88e80bd54d8feab9dd6259d05369ef56;hp=4b5ea10ce5fa2ec9b095afe14f6ec2a1f58053f6;hb=96d9a8c787c693406a0f26e3d3a00065c7236fe5;hpb=1f6bcb80a516f8212bc404ba39165ef8dcde423e diff --git a/src/modest-local-folder-info.h b/src/modest-local-folder-info.h index 4b5ea10..de83755 100644 --- a/src/modest-local-folder-info.h +++ b/src/modest-local-folder-info.h @@ -33,18 +33,8 @@ G_BEGIN_DECLS #include - -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 +#include /** * modest_local_folder_info_get_type @@ -57,7 +47,7 @@ typedef enum { * 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 @@ -69,10 +59,10 @@ ModestLocalFolderType modest_local_folder_info_get_type (const gchar *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 @@ -81,8 +71,41 @@ const gchar* modest_local_folder_info_get_type_name (ModestLocalFolderType type) * 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 + * + * 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); + +/** + * modest_per_account_local_outbox_folder_info_get_maildir_path + * + * Get the path to the Maildir where the per-account local outbox folder is stored. + * + * Returns: the local outbox account Maildir path as a newly allocated + * string, which must be freed by the caller. + * + */ +gchar *modest_per_account_local_outbox_folder_info_get_maildir_path (TnyAccount *account); +/** + * modest_per_account_local_outbox_folder_info_get_maildir_path_to_outbox_folder + * + * Get the path to the "outbox" folder directory under the local outbox account MailDir directory. + * + * Returns: the local outbox folder Maildir path as a newly allocated + * string, which must be freed by the caller. + * + */ +gchar *modest_per_account_local_outbox_folder_info_get_maildir_path_to_outbox_folder (TnyAccount *account); G_END_DECLS #endif /* __MODEST_LOCAL_FOLDER_INFO_H__ */