1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU Lesser General Public License as published by
4  * the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9  * for more details.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, see <http://www.gnu.org/licenses/>.
13  *
14  *
15  * Authors:
16  *   Michael Zucchi <notzed@ximian.com>
17  *   Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
18  *
19  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
20  * Copyright (C) 2009 Intel Corporation
21  */
22 
23 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
24 #error "Only <e-util/e-util.h> should be included directly."
25 #endif
26 
27 #ifndef E_ALERT_DIALOG_H
28 #define E_ALERT_DIALOG_H
29 
30 #include <gtk/gtk.h>
31 
32 #include <e-util/e-alert.h>
33 
34 /* Standard GObject macros */
35 #define E_TYPE_ALERT_DIALOG \
36 	(e_alert_dialog_get_type ())
37 #define E_ALERT_DIALOG(obj) \
38 	(G_TYPE_CHECK_INSTANCE_CAST \
39 	((obj), E_TYPE_ALERT_DIALOG, EAlertDialog))
40 #define E_ALERT_DIALOG_CLASS(cls) \
41 	(G_TYPE_CHECK_CLASS_CAST \
42 	((cls), E_TYPE_ALERT_DIALOG, EAlertDialogClass))
43 #define E_IS_ALERT_DIALOG(obj) \
44 	(G_TYPE_CHECK_INSTANCE_TYPE \
45 	((obj), E_TYPE_ALERT_DIALOG))
46 #define E_IS_ALERT_DIALOG_CLASS(cls) \
47 	(G_TYPE_CHECK_CLASS_TYPE \
48 	((cls), E_TYPE_ALERT_DIALOG))
49 #define E_ALERT_DIALOG_GET_CLASS(obj) \
50 	(G_TYPE_INSTANCE_GET_CLASS \
51 	((obj), E_TYPE_ALERT_DIALOG, EAlertDialogClass))
52 
53 G_BEGIN_DECLS
54 
55 typedef struct _EAlertDialog EAlertDialog;
56 typedef struct _EAlertDialogClass EAlertDialogClass;
57 typedef struct _EAlertDialogPrivate EAlertDialogPrivate;
58 
59 struct _EAlertDialog {
60 	GtkDialog parent;
61 	EAlertDialogPrivate *priv;
62 };
63 
64 struct _EAlertDialogClass {
65 	GtkDialogClass parent_class;
66 };
67 
68 GType		e_alert_dialog_get_type		(void) G_GNUC_CONST;
69 GtkWidget *	e_alert_dialog_new		(GtkWindow *parent,
70 						 EAlert *alert);
71 GtkWidget *	e_alert_dialog_new_for_args	(GtkWindow *parent,
72 						 const gchar *tag,
73 						 ...) G_GNUC_NULL_TERMINATED;
74 gint		e_alert_run_dialog		(GtkWindow *parent,
75 						 EAlert *alert);
76 gint		e_alert_run_dialog_for_args	(GtkWindow *parent,
77 						 const gchar *tag,
78 						 ...) G_GNUC_NULL_TERMINATED;
79 EAlert *	e_alert_dialog_get_alert	(EAlertDialog *dialog);
80 GtkWidget *	e_alert_dialog_get_content_area	(EAlertDialog *dialog);
81 
82 G_END_DECLS
83 
84 #endif /* E_ALERT_DIALOG_H */
85