1 /*
2  * e-mail-signature-script-dialog.h
3  *
4  * This program 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.
7  *
8  * This program 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
11  * for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17 
18 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
19 #error "Only <e-util/e-util.h> should be included directly."
20 #endif
21 
22 #ifndef E_MAIL_SIGNATURE_SCRIPT_DIALOG_H
23 #define E_MAIL_SIGNATURE_SCRIPT_DIALOG_H
24 
25 #include <gtk/gtk.h>
26 #include <libedataserver/libedataserver.h>
27 
28 /* Standard GObject macros */
29 #define E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG \
30 	(e_mail_signature_script_dialog_get_type ())
31 #define E_MAIL_SIGNATURE_SCRIPT_DIALOG(obj) \
32 	(G_TYPE_CHECK_INSTANCE_CAST \
33 	((obj), E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG, \
34 	EMailSignatureScriptDialog))
35 #define E_MAIL_SIGNATURE_SCRIPT_DIALOG_CLASS(cls) \
36 	(G_TYPE_CHECK_CLASS_CAST \
37 	((cls), E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG, \
38 	EMailSignatureScriptDialogClass))
39 #define E_IS_MAIL_SIGNATURE_SCRIPT_DIALOG(obj) \
40 	(G_TYPE_CHECK_INSTANCE_TYPE \
41 	((obj), E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG))
42 #define E_IS_MAIL_SIGNATURE_SCRIPT_DIALOG_CLASS(cls) \
43 	(G_TYPE_CHECK_CLASS_TYPE \
44 	((cls), E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG))
45 #define E_MAIL_SIGNATURE_SCRIPT_DIALOG_GET_CLASS(obj) \
46 	(G_TYPE_INSTANCE_GET_CLASS \
47 	((obj), E_TYPE_MAIL_SIGNATURE_SCRIPT_DIALOG, \
48 	EMailSignatureScriptDialogClass))
49 
50 G_BEGIN_DECLS
51 
52 typedef struct _EMailSignatureScriptDialog EMailSignatureScriptDialog;
53 typedef struct _EMailSignatureScriptDialogClass EMailSignatureScriptDialogClass;
54 typedef struct _EMailSignatureScriptDialogPrivate EMailSignatureScriptDialogPrivate;
55 
56 struct _EMailSignatureScriptDialog {
57 	GtkDialog parent;
58 	EMailSignatureScriptDialogPrivate *priv;
59 };
60 
61 struct _EMailSignatureScriptDialogClass {
62 	GtkDialogClass parent_class;
63 };
64 
65 GType		e_mail_signature_script_dialog_get_type
66 					(void) G_GNUC_CONST;
67 GtkWidget *	e_mail_signature_script_dialog_new
68 					(ESourceRegistry *registry,
69 					 GtkWindow *parent,
70 					 ESource *source);
71 ESourceRegistry *
72 		e_mail_signature_script_dialog_get_registry
73 					(EMailSignatureScriptDialog *dialog);
74 ESource *	e_mail_signature_script_dialog_get_source
75 					(EMailSignatureScriptDialog *dialog);
76 const gchar *	e_mail_signature_script_dialog_get_symlink_target
77 					(EMailSignatureScriptDialog *dialog);
78 void		e_mail_signature_script_dialog_set_symlink_target
79 					(EMailSignatureScriptDialog *dialog,
80 					 const gchar *symlink_target);
81 void		e_mail_signature_script_dialog_commit
82 					(EMailSignatureScriptDialog *dialog,
83 					 GCancellable *cancellable,
84 					 GAsyncReadyCallback callback,
85 					 gpointer user_data);
86 gboolean	e_mail_signature_script_dialog_commit_finish
87 					(EMailSignatureScriptDialog *dialog,
88 					 GAsyncResult *result,
89 					 GError **error);
90 
91 G_END_DECLS
92 
93 #endif /* E_MAIL_SIGNATURE_SCRIPT_DIALOG_H */
94