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_SOURCE_SMIME_H
20 #define E_SOURCE_SMIME_H
22 #include <libedataserver/e-source-extension.h>
24 /* Standard GObject macros */
25 #define E_TYPE_SOURCE_SMIME \
26 (e_source_smime_get_type ())
27 #define E_SOURCE_SMIME(obj) \
28 (G_TYPE_CHECK_INSTANCE_CAST \
29 ((obj), E_TYPE_SOURCE_SMIME, ESourceSMIME))
30 #define E_SOURCE_SMIME_CLASS(cls) \
31 (G_TYPE_CHECK_CLASS_CAST \
32 ((cls), E_TYPE_SOURCE_SMIME, ESourceSMIMEClass))
33 #define E_IS_SOURCE_SMIME(obj) \
34 (G_TYPE_CHECK_INSTANCE_TYPE \
35 ((obj), E_TYPE_SOURCE_SMIME))
36 #define E_IS_SOURCE_SMIME_CLASS(cls) \
37 (G_TYPE_CHECK_CLASS_TYPE \
38 ((cls), E_TYPE_SOURCE_SMIME))
39 #define E_SOURCE_SMIME_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS \
41 ((obj), E_TYPE_SOURCE_SMIME, ESourceSMIMEClass))
44 * E_SOURCE_EXTENSION_SMIME:
46 * Pass this extension name to e_source_get_extension() to access
47 * #ESourceSMIME. This is also used as a group name in key files.
51 #define E_SOURCE_EXTENSION_SMIME "Secure MIME (S/MIME)"
55 typedef struct _ESourceSMIME ESourceSMIME;
56 typedef struct _ESourceSMIMEClass ESourceSMIMEClass;
57 typedef struct _ESourceSMIMEPrivate ESourceSMIMEPrivate;
62 * Contains only private data that should be read and manipulated using the
67 struct _ESourceSMIME {
68 ESourceExtension parent;
69 ESourceSMIMEPrivate *priv;
72 struct _ESourceSMIMEClass {
73 ESourceExtensionClass parent_class;
76 GType e_source_smime_get_type (void) G_GNUC_CONST;
77 const gchar * e_source_smime_get_encryption_certificate
78 (ESourceSMIME *extension);
79 gchar * e_source_smime_dup_encryption_certificate
80 (ESourceSMIME *extension);
81 void e_source_smime_set_encryption_certificate
82 (ESourceSMIME *extension,
83 const gchar *encryption_certificate);
84 gboolean e_source_smime_get_encrypt_by_default
85 (ESourceSMIME *extension);
86 void e_source_smime_set_encrypt_by_default
87 (ESourceSMIME *extension,
88 gboolean encrypt_by_default);
89 gboolean e_source_smime_get_encrypt_to_self
90 (ESourceSMIME *extension);
91 void e_source_smime_set_encrypt_to_self
92 (ESourceSMIME *extension,
93 gboolean encrypt_to_self);
94 const gchar * e_source_smime_get_signing_algorithm
95 (ESourceSMIME *extension);
96 gchar * e_source_smime_dup_signing_algorithm
97 (ESourceSMIME *extension);
98 void e_source_smime_set_signing_algorithm
99 (ESourceSMIME *extension,
100 const gchar *signing_algorithm);
101 const gchar * e_source_smime_get_signing_certificate
102 (ESourceSMIME *extension);
103 gchar * e_source_smime_dup_signing_certificate
104 (ESourceSMIME *extension);
105 void e_source_smime_set_signing_certificate
106 (ESourceSMIME *extension,
107 const gchar *signing_certificate);
108 gboolean e_source_smime_get_sign_by_default
109 (ESourceSMIME *extension);
110 void e_source_smime_set_sign_by_default
111 (ESourceSMIME *extension,
112 gboolean sign_by_default);
116 #endif /* E_SOURCE_SMIME_H */