1 /*
2  *
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
9  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
10  * for more details.
11  *
12  * You should have received a copy of the GNU Lesser General Public License
13  * along with this program; if not, see <http://www.gnu.org/licenses/>.
14  *
15  *
16  * Authors:
17  *		Jeffrey Stedfast <fejj@ximian.com>
18  *
19  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
20  *
21  */
22 
23 #ifndef E_MAIL_TAG_EDITOR_H
24 #define E_MAIL_TAG_EDITOR_H
25 
26 #include <gtk/gtk.h>
27 #include <camel/camel.h>
28 
29 /* Standard GObject macros */
30 #define E_TYPE_MAIL_TAG_EDITOR \
31 	(e_mail_tag_editor_get_type ())
32 #define E_MAIL_TAG_EDITOR(obj) \
33 	(G_TYPE_CHECK_INSTANCE_CAST \
34 	((obj), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditor))
35 #define E_MAIL_TAG_EDITOR_CLASS(cls) \
36 	(G_TYPE_CHECK_CLASS_CAST \
37 	((cls), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditorClass))
38 #define E_IS_MAIL_TAG_EDITOR(obj) \
39 	(G_TYPE_CHECK_INSTANCE_TYPE \
40 	((obj), E_TYPE_MAIL_TAG_EDITOR))
41 #define E_IS_MAIL_TAG_EDITOR_CLASS(cls) \
42 	(G_TYPE_CHECK_CLASS_TYPE \
43 	((cls), E_TYPE_MAIL_TAG_EDITOR))
44 #define E_MAIL_TAG_EDITOR_GET_CLASS(obj) \
45 	(G_TYPE_INSTANCE_GET_CLASS \
46 	((obj), E_TYPE_MAIL_TAG_EDITOR, EMailTagEditorClass))
47 
48 G_BEGIN_DECLS
49 
50 typedef struct _EMailTagEditor EMailTagEditor;
51 typedef struct _EMailTagEditorClass EMailTagEditorClass;
52 typedef struct _EMailTagEditorPrivate EMailTagEditorPrivate;
53 
54 struct _EMailTagEditor {
55 	GtkDialog parent;
56 	EMailTagEditorPrivate *priv;
57 };
58 
59 struct _EMailTagEditorClass {
60 	GtkDialogClass parent_class;
61 };
62 
63 GType		e_mail_tag_editor_get_type	(void);
64 GtkWidget *	e_mail_tag_editor_new		(void);
65 gboolean	e_mail_tag_editor_get_completed	(EMailTagEditor *editor);
66 void		e_mail_tag_editor_set_completed (EMailTagEditor *editor,
67 						 gboolean completed);
68 CamelNameValueArray *
69 		e_mail_tag_editor_get_tag_list	(EMailTagEditor *editor);
70 void		e_mail_tag_editor_set_tag_list	(EMailTagEditor *editor,
71 						 const CamelNameValueArray *tag_list);
72 void		e_mail_tag_editor_add_message	(EMailTagEditor *editor,
73 						 const gchar *from,
74 						 const gchar *subject);
75 
76 G_END_DECLS
77 
78 #endif /* E_MAIL_TAG_EDITOR_H */
79