aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-07 11:38:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-13 01:58:59 +0800
commita06e4484b8df804124b5bcf88d94dec5acfba270 (patch)
tree4fa42793d7dc461f2b3767296d76592182c48222 /mail/mail-vfolder.h
parent5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff)
downloadgsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst
gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip
Give MailSession a permanent home.
Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession.
Diffstat (limited to 'mail/mail-vfolder.h')
-rw-r--r--mail/mail-vfolder.h33
1 files changed, 19 insertions, 14 deletions
diff --git a/mail/mail-vfolder.h b/mail/mail-vfolder.h
index 89610f4444..187a68d294 100644
--- a/mail/mail-vfolder.h
+++ b/mail/mail-vfolder.h
@@ -29,21 +29,26 @@
#include <mail/em-vfolder-rule.h>
#include <shell/e-shell-view.h>
-void vfolder_load_storage (void);
-void vfolder_revert (void);
-
-void vfolder_edit (EShellView *shell_view);
-void vfolder_edit_rule (const gchar *name);
-EFilterPart *vfolder_create_part (const gchar *name);
-EFilterRule *vfolder_clone_rule (EFilterRule *in);
-void vfolder_gui_add_rule (EMVFolderRule *rule);
-void vfolder_gui_add_from_message (CamelMimeMessage *msg, gint flags, const gchar *source);
-void vfolder_gui_add_from_address (CamelInternetAddress *addr, gint flags, const gchar *source);
-
-GList * mail_vfolder_get_sources_local (void);
-GList * mail_vfolder_get_sources_remote (void);
+void vfolder_load_storage (EMailSession *session);
+void vfolder_revert (void);
+void vfolder_edit (EShellView *shell_view);
+void vfolder_edit_rule (const gchar *name);
+EFilterPart * vfolder_create_part (const gchar *name);
+EFilterRule * vfolder_clone_rule (EFilterRule *in);
+void vfolder_gui_add_rule (EMVFolderRule *rule);
+void vfolder_gui_add_from_message (EMailSession *session,
+ CamelMimeMessage *msg,
+ gint flags,
+ const gchar *source);
+void vfolder_gui_add_from_address (EMailSession *session,
+ CamelInternetAddress *addr,
+ gint flags,
+ const gchar *source);
+
+GList * mail_vfolder_get_sources_local (void);
+GList * mail_vfolder_get_sources_remote (void);
/* close up, clean up */
-void mail_vfolder_shutdown (void);
+void mail_vfolder_shutdown (void);
#endif