diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-07 11:38:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-13 01:58:59 +0800 |
commit | a06e4484b8df804124b5bcf88d94dec5acfba270 (patch) | |
tree | 4fa42793d7dc461f2b3767296d76592182c48222 /mail/mail-send-recv.h | |
parent | 5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff) | |
download | gsoc2013-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-send-recv.h')
-rw-r--r-- | mail/mail-send-recv.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mail-send-recv.h b/mail/mail-send-recv.h index db144e2385..67b0647fc7 100644 --- a/mail/mail-send-recv.h +++ b/mail/mail-send-recv.h @@ -25,22 +25,23 @@ #include <gtk/gtk.h> #include <camel/camel.h> -#include <shell/e-shell-backend.h> +#include <mail/e-mail-backend.h> G_BEGIN_DECLS /* send/receive all uri's */ -GtkWidget * mail_send_receive (GtkWindow *parent); +GtkWidget * mail_send_receive (GtkWindow *parent, + EMailSession *session); /* receive a single uri */ -void mail_receive_uri (const gchar *uri, +void mail_receive_uri (EMailSession *session, + const gchar *uri, gboolean keep_on_server); -void mail_send (void); +void mail_send (EMailSession *session); /* setup auto receive stuff */ -void mail_autoreceive_init (EShellBackend *shell_backend, - CamelSession *session); +void mail_autoreceive_init (EMailBackend *backend); G_END_DECLS |