2
* e-mail-signature-editor.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_SIGNATURE_EDITOR_H
20
#define E_MAIL_SIGNATURE_EDITOR_H
22
#include <gtkhtml-editor.h>
23
#include <misc/e-focus-tracker.h>
24
#include <libedataserver/libedataserver.h>
26
/* Standard GObject macros */
27
#define E_TYPE_MAIL_SIGNATURE_EDITOR \
28
(e_mail_signature_editor_get_type ())
29
#define E_MAIL_SIGNATURE_EDITOR(obj) \
30
(G_TYPE_CHECK_INSTANCE_CAST \
31
((obj), E_TYPE_MAIL_SIGNATURE_EDITOR, EMailSignatureEditor))
32
#define E_MAIL_SIGNATURE_EDITOR_CLASS(cls) \
33
(G_TYPE_CHECK_CLASS_CAST \
34
((cls), E_TYPE_MAIL_SIGNATURE_EDITOR, EMailSignatureEditorClass))
35
#define E_IS_MAIL_SIGNATURE_EDITOR(obj) \
36
(G_TYPE_CHECK_INSTANCE_TYPE \
37
((obj), E_TYPE_MAIL_SIGNATURE_EDITOR))
38
#define E_IS_MAIL_SIGNATURE_EDITOR_CLASS(cls) \
39
(G_TYPE_CHECK_CLASS_TYPE \
40
((cls), E_TYPE_MAIL_SIGNATURE_EDITOR))
41
#define E_MAIL_SIGNATURE_EDITOR_GET_CLASS(obj) \
42
(G_TYPE_INSTANCE_GET_CLASS \
43
((obj), E_TYPE_MAIL_SIGNATURE_EDITOR, EMailSignatureEditorClass))
47
typedef struct _EMailSignatureEditor EMailSignatureEditor;
48
typedef struct _EMailSignatureEditorClass EMailSignatureEditorClass;
49
typedef struct _EMailSignatureEditorPrivate EMailSignatureEditorPrivate;
51
struct _EMailSignatureEditor {
53
EMailSignatureEditorPrivate *priv;
56
struct _EMailSignatureEditorClass {
57
GtkhtmlEditorClass parent_class;
60
GType e_mail_signature_editor_get_type
62
GtkWidget * e_mail_signature_editor_new (ESourceRegistry *registry,
64
EFocusTracker * e_mail_signature_editor_get_focus_tracker
65
(EMailSignatureEditor *editor);
67
e_mail_signature_editor_get_registry
68
(EMailSignatureEditor *editor);
69
ESource * e_mail_signature_editor_get_source
70
(EMailSignatureEditor *editor);
71
void e_mail_signature_editor_commit (EMailSignatureEditor *editor,
72
GCancellable *cancellable,
73
GAsyncReadyCallback callback,
75
gboolean e_mail_signature_editor_commit_finish
76
(EMailSignatureEditor *editor,
82
#endif /* E_MAIL_SIGNATURE_EDITOR_H */