From a9cfed5938aef37d95c009411f965ebc185547c1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 16 Dec 2011 10:40:37 -0500 Subject: 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. --- mail/e-mail-backend.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mail/e-mail-backend.h') diff --git a/mail/e-mail-backend.h b/mail/e-mail-backend.h index 6d425197f3..6279d3fb5e 100644 --- a/mail/e-mail-backend.h +++ b/mail/e-mail-backend.h @@ -71,13 +71,11 @@ struct _EMailBackendClass { GType e_mail_backend_get_type (void); EMailSession * e_mail_backend_get_session (EMailBackend *backend); +EAlertSink * e_mail_backend_get_alert_sink (EMailBackend *backend); gboolean e_mail_backend_delete_junk_policy_decision (EMailBackend *backend); gboolean e_mail_backend_empty_trash_policy_decision (EMailBackend *backend); -void e_mail_backend_submit_alert (EMailBackend *backend, - const gchar *tag, - ...) G_GNUC_NULL_TERMINATED; G_END_DECLS -- cgit v1.2.3