aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-shell-module.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-10-17 11:48:03 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-10-17 11:48:03 +0800
commit54b80a7271e8ce1b2f3ccc68bb553940a24b80e2 (patch)
tree74dd75a7dca547164ff4be88c07d407517663105 /mail/e-mail-shell-module.h
parent79aa45cfed7e87150de85869795ef0dd3be06db0 (diff)
downloadgsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar.gz
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar.bz2
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar.lz
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar.xz
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.tar.zst
gsoc2013-evolution-54b80a7271e8ce1b2f3ccc68bb553940a24b80e2.zip
Get the mail folder tree compiling, though I'm not yet sure why it's not
showing anything. Probably something stupid. Also enabled the composer. svn path=/branches/kill-bonobo/; revision=36623
Diffstat (limited to 'mail/e-mail-shell-module.h')
-rw-r--r--mail/e-mail-shell-module.h41
1 files changed, 36 insertions, 5 deletions
diff --git a/mail/e-mail-shell-module.h b/mail/e-mail-shell-module.h
index 4d48adbcd7..fb1cd3885d 100644
--- a/mail/e-mail-shell-module.h
+++ b/mail/e-mail-shell-module.h
@@ -22,19 +22,50 @@
#ifndef E_MAIL_SHELL_MODULE_H
#define E_MAIL_SHELL_MODULE_H
+#include <shell/e-shell-module.h>
+
+#include <camel/camel-folder.h>
#include <camel/camel-store.h>
#include <e-util/e-signature-list.h>
#include <libedataserver/e-account-list.h>
G_BEGIN_DECLS
+/* Globally available shell module.
+ *
+ * XXX I don't like having this globally available but passing it around to
+ * all the various utilities that need to access to the module's data
+ * directory and local folders is too much of a pain for now. */
+extern EShellModule *mail_shell_module;
+
+typedef enum {
+ E_MAIL_FOLDER_INBOX,
+ E_MAIL_FOLDER_DRAFTS,
+ E_MAIL_FOLDER_OUTBOX,
+ E_MAIL_FOLDER_SENT,
+ E_MAIL_FOLDER_TEMPLATES,
+ E_MAIL_FOLDER_LOCAL_INBOX
+} EMailFolderType;
+
+struct _EMFolderTreeModel;
+
+CamelFolder * e_mail_shell_module_get_folder (EShellModule *shell_module,
+ EMailFolderType folder_type);
+const gchar * e_mail_shell_module_get_folder_uri
+ (EShellModule *shell_module,
+ EMailFolderType folder_type);
+struct _EMFolderTreeModel *
+ e_mail_shell_module_get_folder_tree_model
+ (EShellModule *shell_module);
+void e_mail_shell_module_add_store (EShellModule *shell_module,
+ CamelStore *store,
+ const gchar *name);
+CamelStore * e_mail_shell_module_get_local_store
+ (EShellModule *shell_module);
CamelStore * e_mail_shell_module_load_store_by_uri
- (const gchar *uri,
+ (EShellModule *shell_module,
+ const gchar *uri,
const gchar *name);
-EAccountList * mail_config_get_accounts (void);
-void mail_config_save_accounts (void);
-ESignatureList *mail_config_get_signatures (void);
-gchar * em_uri_from_camel (const gchar *curi);
G_END_DECLS