2 * e-source-mail-identity.h
4 * This library is free software you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, see <http://www.gnu.org/licenses/>.
18 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
19 #error "Only <libedataserver/libedataserver.h> should be included directly."
22 #ifndef E_SOURCE_MAIL_IDENTITY_H
23 #define E_SOURCE_MAIL_IDENTITY_H
25 #include <libedataserver/e-source-extension.h>
27 /* Standard GObject macros */
28 #define E_TYPE_SOURCE_MAIL_IDENTITY \
29 (e_source_mail_identity_get_type ())
30 #define E_SOURCE_MAIL_IDENTITY(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST \
32 ((obj), E_TYPE_SOURCE_MAIL_IDENTITY, ESourceMailIdentity))
33 #define E_SOURCE_MAIL_IDENTITY_CLASS(cls) \
34 (G_TYPE_CHECK_CLASS_CAST \
35 ((cls), E_TYPE_SOURCE_MAIL_IDENTITY, ESourceMailIdentityClass))
36 #define E_IS_SOURCE_MAIL_IDENTITY(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE \
38 ((obj), E_TYPE_SOURCE_MAIL_IDENTITY))
39 #define E_IS_SOURCE_MAIL_IDENTITY_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_TYPE \
41 ((cls), E_TYPE_SOURCE_MAIL_IDENTITY))
42 #define E_SOURCE_MAIL_IDENTITY_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS \
44 ((obj), E_TYPE_SOURCE_MAIL_IDENTITY, ESourceMailIdentityClass))
47 * E_SOURCE_EXTENSION_MAIL_IDENTITY:
49 * Pass this extension name to e_source_get_extension() to access
50 * #ESourceMailIdentity. This is also used as a group name in key files.
54 #define E_SOURCE_EXTENSION_MAIL_IDENTITY "Mail Identity"
58 typedef struct _ESourceMailIdentity ESourceMailIdentity;
59 typedef struct _ESourceMailIdentityClass ESourceMailIdentityClass;
60 typedef struct _ESourceMailIdentityPrivate ESourceMailIdentityPrivate;
63 * ESourceMailIdentity:
65 * Contains only private data that should be read and manipulated using the
70 struct _ESourceMailIdentity {
71 ESourceExtension parent;
72 ESourceMailIdentityPrivate *priv;
75 struct _ESourceMailIdentityClass {
76 ESourceExtensionClass parent_class;
79 GType e_source_mail_identity_get_type
81 const gchar * e_source_mail_identity_get_address
82 (ESourceMailIdentity *extension);
83 gchar * e_source_mail_identity_dup_address
84 (ESourceMailIdentity *extension);
85 void e_source_mail_identity_set_address
86 (ESourceMailIdentity *extension,
87 const gchar *address);
88 const gchar * e_source_mail_identity_get_name
89 (ESourceMailIdentity *extension);
90 gchar * e_source_mail_identity_dup_name
91 (ESourceMailIdentity *extension);
92 void e_source_mail_identity_set_name
93 (ESourceMailIdentity *extension,
95 const gchar * e_source_mail_identity_get_organization
96 (ESourceMailIdentity *extension);
97 gchar * e_source_mail_identity_dup_organization
98 (ESourceMailIdentity *extension);
99 void e_source_mail_identity_set_organization
100 (ESourceMailIdentity *extension,
101 const gchar *organization);
102 const gchar * e_source_mail_identity_get_reply_to
103 (ESourceMailIdentity *extension);
104 gchar * e_source_mail_identity_dup_reply_to
105 (ESourceMailIdentity *extension);
106 void e_source_mail_identity_set_reply_to
107 (ESourceMailIdentity *extension,
108 const gchar *reply_to);
109 const gchar * e_source_mail_identity_get_signature_uid
110 (ESourceMailIdentity *extension);
111 gchar * e_source_mail_identity_dup_signature_uid
112 (ESourceMailIdentity *extension);
113 void e_source_mail_identity_set_signature_uid
114 (ESourceMailIdentity *extension,
115 const gchar *signature_uid);
119 #endif /* E_SOURCE_MAIL_IDENTITY_H */