3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with the program; if not, see <http://www.gnu.org/licenses/>
17 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
24 #include <glib-object.h>
26 /* Standard GObject macros */
27 #define E_TYPE_SIGNATURE \
28 (e_signature_get_type ())
29 #define E_SIGNATURE(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), E_TYPE_SIGNATURE, ESignature))
32 #define E_SIGNATURE_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), E_TYPE_SIGNATURE, ESignatureClass))
35 #define E_IS_SIGNATURE(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE \
37 ((obj), E_TYPE_SIGNATURE))
38 #define E_IS_SIGNATURE_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_TYPE \
40 ((cls), E_TYPE_SIGNATURE))
41 #define E_SIGNATURE_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS \
43 ((obj), E_TYPE_SIGNATURE, ESignatureClass))
47 typedef struct _ESignature ESignature
;
48 typedef struct _ESignatureClass ESignatureClass
;
49 typedef struct _ESignaturePrivate ESignaturePrivate
;
53 ESignaturePrivate
*priv
;
56 struct _ESignatureClass
{
57 GObjectClass parent_class
;
60 GType
e_signature_get_type (void);
61 ESignature
* e_signature_new (void);
62 ESignature
* e_signature_new_from_xml (const gchar
*xml
);
63 gchar
* e_signature_uid_from_xml (const gchar
*xml
);
64 gboolean
e_signature_set_from_xml (ESignature
*signature
,
66 gchar
* e_signature_to_xml (ESignature
*signature
);
67 gboolean
e_signature_is_equal (ESignature
*signature1
,
68 ESignature
*signature2
);
69 gboolean
e_signature_get_autogenerated (ESignature
*signature
);
70 void e_signature_set_autogenerated (ESignature
*signature
,
71 gboolean autogenerated
);
72 const gchar
* e_signature_get_filename (ESignature
*signature
);
73 void e_signature_set_filename (ESignature
*signature
,
74 const gchar
*filename
);
75 gboolean
e_signature_get_is_html (ESignature
*signature
);
76 void e_signature_set_is_html (ESignature
*signature
,
78 gboolean
e_signature_get_is_script (ESignature
*signature
);
79 void e_signature_set_is_script (ESignature
*signature
,
81 const gchar
* e_signature_get_name (ESignature
*signature
);
82 void e_signature_set_name (ESignature
*signature
,
84 const gchar
* e_signature_get_uid (ESignature
*signature
);
85 void e_signature_set_uid (ESignature
*signature
,
90 #endif /* E_SIGNATURE_H */