aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-12-16 23:40:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-12-16 23:58:54 +0800
commita9cfed5938aef37d95c009411f965ebc185547c1 (patch)
treed0c6eb1d5acea6752425169aae47e8f4ed4b55ea /mail/mail-send-recv.h
parentdf85cb1b7a47f713cb775f648f735e642a1bb71b (diff)
downloadgsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.gz
gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.zst
gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.zip
Avoid passing EMailBackend as much as possible.
More mail API churn... reversing some previous API decisions. I've made some key API changes to EMailSession on the account-mgmt branch which should allow for this, and will hopefully also benefit the "email-factory" branch. EMailBackend barely needs to exist anymore, except as the owner of EMailSession. For several low-level functions, we replace its EMailBackend parameter with EMailSession and EAlertSink parameters; the latter so it can still pass user alerts up the chain.
Diffstat (limited to 'mail/mail-send-recv.h')
-rw-r--r--mail/mail-send-recv.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/mail/mail-send-recv.h b/mail/mail-send-recv.h
index 82ea2c21b5..cd11a4a9bb 100644
--- a/mail/mail-send-recv.h
+++ b/mail/mail-send-recv.h
@@ -24,27 +24,24 @@
#define MAIL_SEND_RECV_H
#include <gtk/gtk.h>
-#include <camel/camel.h>
-#include <mail/e-mail-backend.h>
-#include <libedataserver/e-account.h>
+#include <mail/e-mail-session.h>
G_BEGIN_DECLS
/* send/receive all CamelServices */
GtkWidget * mail_send_receive (GtkWindow *parent,
- EMailBackend *backend);
+ EMailSession *session);
GtkWidget * mail_receive (GtkWindow *parent,
- EMailBackend *backend);
+ EMailSession *session);
/* receive a single CamelService */
-void mail_receive_service (EMailBackend *backend,
- CamelService *service);
+void mail_receive_service (CamelService *service);
-void mail_send (EMailBackend *backend);
+void mail_send (EMailSession *session);
/* setup auto receive stuff */
-void mail_autoreceive_init (EMailBackend *backend);
+void mail_autoreceive_init (EMailSession *session);
G_END_DECLS