94c02acee752e031203344c5074fb1362498895e
[modest] / src / gtk2 / modest-main-window.h
1 /* modest-main-window.h */
2 /* insert (c)/licensing information) */
3
4 #ifndef __MODEST_MAIN_WINDOW_H__
5 #define __MODEST_MAIN_WINDOW_H__
6
7 #include <gtk/gtkwindow.h>
8 #include <glib/gi18n.h>
9 #include <modest-widget-factory.h>
10 #include <modest-conf.h>
11 #include <modest-account-mgr.h>
12
13 #ifdef HAVE_CONFIG_H
14 #include <config.h>
15 #endif /*HAVE_CONFIG_H*/
16
17 G_BEGIN_DECLS
18
19 /* convenience macros */
20 #define MODEST_TYPE_MAIN_WINDOW             (modest_main_window_get_type())
21 #define MODEST_MAIN_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_MAIN_WINDOW,ModestMainWindow))
22 #define MODEST_MAIN_WINDOW_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_MAIN_WINDOW,GtkWindow))
23 #define MODEST_IS_MAIN_WINDOW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_MAIN_WINDOW))
24 #define MODEST_IS_MAIN_WINDOW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_MAIN_WINDOW))
25 #define MODEST_MAIN_WINDOW_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_MAIN_WINDOW,ModestMainWindowClass))
26
27 typedef struct _ModestMainWindow      ModestMainWindow;
28 typedef struct _ModestMainWindowClass ModestMainWindowClass;
29
30 struct _ModestMainWindow {
31          GtkWindow parent;
32         /* insert public members, if any */
33 };
34
35 struct _ModestMainWindowClass {
36         GtkWindowClass parent_class;
37         /* insert signal callback declarations, eg. */
38         /* void (* my_event) (ModestMainWindow* obj); */
39 };
40
41 /* member functions */
42 GType        modest_main_window_get_type    (void) G_GNUC_CONST;
43
44
45 GtkWidget*   modest_main_window_new         (ModestConf *conf, ModestAccountMgr *account_mgr,
46                                              ModestWidgetFactory *factory);
47
48 G_END_DECLS
49
50 #endif /* __MODEST_MAIN_WINDOW_H__ */
51