2 * e-source-mail-composition.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 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
20 #error "Only <libedataserver/libedataserver.h> should be included directly."
23 #ifndef E_SOURCE_MAIL_COMPOSITION_H
24 #define E_SOURCE_MAIL_COMPOSITION_H
26 #include <libedataserver/e-source-extension.h>
28 /* Standard GObject macros */
29 #define E_TYPE_SOURCE_MAIL_COMPOSITION \
30 (e_source_mail_composition_get_type ())
31 #define E_SOURCE_MAIL_COMPOSITION(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST \
33 ((obj), E_TYPE_SOURCE_MAIL_COMPOSITION, ESourceMailComposition))
34 #define E_SOURCE_MAIL_COMPOSITION_CLASS(cls) \
35 (G_TYPE_CHECK_CLASS_CAST \
36 ((cls), E_TYPE_SOURCE_MAIL_COMPOSITION, ESourceMailCompositionClass))
37 #define E_IS_SOURCE_MAIL_COMPOSITION(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE \
39 ((obj), E_TYPE_SOURCE_MAIL_COMPOSITION))
40 #define E_IS_SOURCE_MAIL_COMPOSITION_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_TYPE \
42 ((cls), E_TYPE_SOURCE_MAIL_COMPOSITION))
43 #define E_SOURCE_MAIL_COMPOSITION_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS \
45 ((obj), E_TYPE_SOURCE_MAIL_COMPOSITION, ESourceMailCompositionClass))
48 * E_SOURCE_EXTENSION_MAIL_COMPOSITION:
50 * Pass this extension name to e_source_get_extension() to access
51 * #ESourceMailComposition. This is also used as a group name in key files.
55 #define E_SOURCE_EXTENSION_MAIL_COMPOSITION "Mail Composition"
59 typedef struct _ESourceMailComposition ESourceMailComposition;
60 typedef struct _ESourceMailCompositionClass ESourceMailCompositionClass;
61 typedef struct _ESourceMailCompositionPrivate ESourceMailCompositionPrivate;
64 * ESourceMailComposition:
66 * Contains only private data that should be read and manipulated using the
71 struct _ESourceMailComposition {
72 ESourceExtension parent;
73 ESourceMailCompositionPrivate *priv;
76 struct _ESourceMailCompositionClass {
77 ESourceExtensionClass parent_class;
80 GType e_source_mail_composition_get_type
83 e_source_mail_composition_get_bcc
84 (ESourceMailComposition *extension);
85 gchar ** e_source_mail_composition_dup_bcc
86 (ESourceMailComposition *extension);
87 void e_source_mail_composition_set_bcc
88 (ESourceMailComposition *extension,
89 const gchar * const *bcc);
91 e_source_mail_composition_get_cc
92 (ESourceMailComposition *extension);
93 gchar ** e_source_mail_composition_dup_cc
94 (ESourceMailComposition *extension);
95 void e_source_mail_composition_set_cc
96 (ESourceMailComposition *extension,
97 const gchar * const *cc);
98 const gchar * e_source_mail_composition_get_drafts_folder
99 (ESourceMailComposition *extension);
100 gchar * e_source_mail_composition_dup_drafts_folder
101 (ESourceMailComposition *extension);
102 void e_source_mail_composition_set_drafts_folder
103 (ESourceMailComposition *extension,
104 const gchar *drafts_folder);
105 gboolean e_source_mail_composition_get_sign_imip
106 (ESourceMailComposition *extension);
107 void e_source_mail_composition_set_sign_imip
108 (ESourceMailComposition *extension,
110 const gchar * e_source_mail_composition_get_templates_folder
111 (ESourceMailComposition *extension);
112 gchar * e_source_mail_composition_dup_templates_folder
113 (ESourceMailComposition *extension);
114 void e_source_mail_composition_set_templates_folder
115 (ESourceMailComposition *extension,
116 const gchar *templates_folder);
120 #endif /* E_SOURCE_MAIL_COMPOSITION_H */