1 /*
2  * e-mail-browser.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  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
18  *
19  */
20 
21 #ifndef E_MAIL_BROWSER_H
22 #define E_MAIL_BROWSER_H
23 
24 #include <e-util/e-util.h>
25 #include <mail/e-mail-backend.h>
26 #include <mail/e-mail-display.h>
27 
28 /* Standard GObject macros */
29 #define E_TYPE_MAIL_BROWSER \
30 	(e_mail_browser_get_type ())
31 #define E_MAIL_BROWSER(obj) \
32 	(G_TYPE_CHECK_INSTANCE_CAST \
33 	((obj), E_TYPE_MAIL_BROWSER, EMailBrowser))
34 #define E_MAIL_BROWSER_CLASS(cls) \
35 	(G_TYPE_CHECK_CLASS_CAST \
36 	((cls), E_TYPE_MAIL_BROWSER, EMailBrowserClass))
37 #define E_IS_MAIL_BROWSER(obj) \
38 	(G_TYPE_CHECK_INSTANCE_TYPE \
39 	((obj), E_TYPE_MAIL_BROWSER))
40 #define E_IS_MAIL_BROWSER_CLASS(cls) \
41 	(G_TYPE_CHECK_CLASS_CAST \
42 	((cls), E_TYPE_MAIL_BROWSER))
43 #define E_MAIL_BROWSER_GET_CLASS(obj) \
44 	(G_TYPE_INSTANCE_GET_CLASS \
45 	((obj), E_TYPE_MAIL_BROWSER, EMailBrowserClass))
46 
47 G_BEGIN_DECLS
48 
49 typedef struct _EMailBrowser EMailBrowser;
50 typedef struct _EMailBrowserClass EMailBrowserClass;
51 typedef struct _EMailBrowserPrivate EMailBrowserPrivate;
52 
53 struct _EMailBrowser {
54 	GtkWindow parent;
55 	EMailBrowserPrivate *priv;
56 };
57 
58 struct _EMailBrowserClass {
59 	GtkWindowClass parent_class;
60 };
61 
62 GType		e_mail_browser_get_type		(void);
63 GtkWidget *	e_mail_browser_new		(EMailBackend *backend,
64 						 EMailFormatterMode display_mode);
65 void		e_mail_browser_close		(EMailBrowser *browser);
66 void		e_mail_browser_ask_close_on_reply
67 						(EMailBrowser *browser);
68 EAutomaticActionPolicy
69 		e_mail_browser_get_close_on_reply_policy
70 						(EMailBrowser *browser);
71 void		e_mail_browser_set_close_on_reply_policy
72 						(EMailBrowser *browser,
73 						 EAutomaticActionPolicy policy);
74 EMailFormatterMode
75 		e_mail_browser_get_display_mode	(EMailBrowser *browser);
76 EFocusTracker *	e_mail_browser_get_focus_tracker
77 						(EMailBrowser *browser);
78 gboolean	e_mail_browser_get_show_deleted	(EMailBrowser *browser);
79 void		e_mail_browser_set_show_deleted (EMailBrowser *browser,
80 						 gboolean show_deleted);
81 gboolean	e_mail_browser_get_show_junk	(EMailBrowser *browser);
82 void		e_mail_browser_set_show_junk	(EMailBrowser *browser,
83 						 gboolean show_junk);
84 GtkUIManager *	e_mail_browser_get_ui_manager	(EMailBrowser *browser);
85 gboolean	e_mail_browser_get_close_on_delete_or_junk
86 						(EMailBrowser *browser);
87 void		e_mail_browser_set_close_on_delete_or_junk
88 						(EMailBrowser *browser,
89 						 gboolean close_on_delete_or_junk);
90 
91 G_END_DECLS
92 
93 #endif /* E_MAIL_BROWSER_H */
94