From 48e680cdf39ab5754b000229f8ded1a8eeebf437 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 17 Feb 2012 10:47:06 -0500 Subject: Add 'mail-config' module. This breaks a good chunk of logic out of EMAccountEditor and hopefully makes it less brittle. Because honestly, every time I fix one thing in EMAccountEditor it breaks three other things. It's unmaintainable. --- .../mail-config/e-mail-config-sendmail-backend.h | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 modules/mail-config/e-mail-config-sendmail-backend.h (limited to 'modules/mail-config/e-mail-config-sendmail-backend.h') diff --git a/modules/mail-config/e-mail-config-sendmail-backend.h b/modules/mail-config/e-mail-config-sendmail-backend.h new file mode 100644 index 0000000000..585b407fea --- /dev/null +++ b/modules/mail-config/e-mail-config-sendmail-backend.h @@ -0,0 +1,66 @@ +/* + * e-mail-config-sendmail-backend.h + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with the program; if not, see + * + */ + +#ifndef E_MAIL_CONFIG_SENDMAIL_BACKEND_H +#define E_MAIL_CONFIG_SENDMAIL_BACKEND_H + +#include + +/* Standard GObject macros */ +#define E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND \ + (e_mail_config_sendmail_backend_get_type ()) +#define E_MAIL_CONFIG_SENDMAIL_BACKEND(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST \ + ((obj), E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND, EMailConfigSendmailBackend)) +#define E_MAIL_CONFIG_SENDMAIL_BACKEND_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_CAST \ + ((cls), E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND, EMailConfigSendmailBackendClass)) +#define E_IS_MAIL_CONFIG_SENDMAIL_BACKEND(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE \ + ((obj), E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND)) +#define E_IS_MAIL_CONFIG_SENDMAIL_BACKEND_CLASS(cls) \ + (G_TYPE_CHECK_CLASS_TYPE \ + ((cls), E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND)) +#define E_MAIL_CONFIG_SENDMAIL_BACKEND_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS \ + ((obj), E_TYPE_MAIL_CONFIG_SENDMAIL_BACKEND, EMailConfigSendmailBackendClass)) + +G_BEGIN_DECLS + +typedef struct _EMailConfigSendmailBackend EMailConfigSendmailBackend; +typedef struct _EMailConfigSendmailBackendClass EMailConfigSendmailBackendClass; +typedef struct _EMailConfigSendmailBackendPrivate EMailConfigSendmailBackendPrivate; + +struct _EMailConfigSendmailBackend { + EMailConfigServiceBackend parent; + EMailConfigSendmailBackendPrivate *priv; +}; + +struct _EMailConfigSendmailBackendClass { + EMailConfigServiceBackendClass parent_class; +}; + +GType e_mail_config_sendmail_backend_get_type + (void) G_GNUC_CONST; +void e_mail_config_sendmail_backend_type_register + (GTypeModule *type_module); + +G_END_DECLS + +#endif /* E_MAIL_CONFIG_SENDMAIL_BACKEND_H */ + -- cgit v1.2.3