Updated Indonesian translation
[evolution.git] / mail / e-mail-config-service-backend.h
blob87e2d3663d1c851136419acfb42e1c0e57727a41
1 /*
2 * e-mail-config-service-backend.h
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
19 #ifndef E_MAIL_CONFIG_SERVICE_BACKEND_H
20 #define E_MAIL_CONFIG_SERVICE_BACKEND_H
22 #include <gtk/gtk.h>
23 #include <camel/camel.h>
24 #include <libebackend/libebackend.h>
26 #include <mail/e-mail-autoconfig.h>
28 /* Standard GObject macros */
29 #define E_TYPE_MAIL_CONFIG_SERVICE_BACKEND \
30 (e_mail_config_service_backend_get_type ())
31 #define E_MAIL_CONFIG_SERVICE_BACKEND(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST \
33 ((obj), E_TYPE_MAIL_CONFIG_SERVICE_BACKEND, EMailConfigServiceBackend))
34 #define E_MAIL_CONFIG_SERVICE_BACKEND_CLASS(cls) \
35 (G_TYPE_CHECK_CLASS_CAST \
36 ((cls), E_TYPE_MAIL_CONFIG_SERVICE_BACKEND, EMailConfigServiceBackendClass))
37 #define E_IS_MAIL_CONFIG_SERVICE_BACKEND(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE \
39 ((obj), E_TYPE_MAIL_CONFIG_SERVICE_BACKEND))
40 #define E_IS_MAIL_CONFIG_SERVICE_BACKEND_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_TYPE \
42 ((cls), E_TYPE_MAIL_CONFIG_SERVICE_BACKEND))
43 #define E_MAIL_CONFIG_SERVICE_BACKEND_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS \
45 ((obj), E_TYPE_MAIL_CONFIG_SERVICE_BACKEND, EMailConfigServiceBackendClass))
47 G_BEGIN_DECLS
49 struct _EMailConfigServicePage;
51 typedef struct _EMailConfigServiceBackend EMailConfigServiceBackend;
52 typedef struct _EMailConfigServiceBackendClass EMailConfigServiceBackendClass;
53 typedef struct _EMailConfigServiceBackendPrivate EMailConfigServiceBackendPrivate;
55 struct _EMailConfigServiceBackend {
56 EExtension parent;
57 EMailConfigServiceBackendPrivate *priv;
60 struct _EMailConfigServiceBackendClass {
61 EExtensionClass parent_class;
63 const gchar *backend_name;
65 gboolean (*get_selectable)
66 (EMailConfigServiceBackend *backend);
67 ESource * (*new_collection)
68 (EMailConfigServiceBackend *backend);
69 void (*insert_widgets)
70 (EMailConfigServiceBackend *backend,
71 GtkBox *parent);
72 void (*setup_defaults)
73 (EMailConfigServiceBackend *backend);
74 gboolean (*auto_configure)
75 (EMailConfigServiceBackend *backend,
76 EMailAutoconfig *autoconfig);
77 gboolean (*check_complete)
78 (EMailConfigServiceBackend *backend);
79 void (*commit_changes)
80 (EMailConfigServiceBackend *backend);
83 GType e_mail_config_service_backend_get_type
84 (void) G_GNUC_CONST;
85 struct _EMailConfigServicePage *
86 e_mail_config_service_backend_get_page
87 (EMailConfigServiceBackend *backend);
88 ESource * e_mail_config_service_backend_get_source
89 (EMailConfigServiceBackend *backend);
90 void e_mail_config_service_backend_set_source
91 (EMailConfigServiceBackend *backend,
92 ESource *source);
93 ESource * e_mail_config_service_backend_get_collection
94 (EMailConfigServiceBackend *backend);
95 void e_mail_config_service_backend_set_collection
96 (EMailConfigServiceBackend *backend,
97 ESource *collection);
98 CamelProvider * e_mail_config_service_backend_get_provider
99 (EMailConfigServiceBackend *backend);
100 CamelSettings * e_mail_config_service_backend_get_settings
101 (EMailConfigServiceBackend *backend);
102 gboolean e_mail_config_service_backend_get_selectable
103 (EMailConfigServiceBackend *backend);
104 void e_mail_config_service_backend_insert_widgets
105 (EMailConfigServiceBackend *backend,
106 GtkBox *parent);
107 void e_mail_config_service_backend_setup_defaults
108 (EMailConfigServiceBackend *backend);
109 gboolean e_mail_config_service_backend_auto_configure
110 (EMailConfigServiceBackend *backend,
111 EMailAutoconfig *autoconfig);
112 gboolean e_mail_config_service_backend_check_complete
113 (EMailConfigServiceBackend *backend);
114 void e_mail_config_service_backend_commit_changes
115 (EMailConfigServiceBackend *backend);
117 G_END_DECLS
119 #endif /* E_MAIL_CONFIG_SERVICE_BACKEND_H */