* remove the dead gtk-dir
[modest] / src / gtk / 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
8 #include <gtk/gtk.h>
9 #include "../modest-conf.h"
10 #include "../modest-account-mgr.h"
11
12 /* other include files */
13
14 G_BEGIN_DECLS
15
16 /* convenience macros */
17 #define MODEST_TYPE_MAIN_WINDOW             (modest_main_window_get_type())
18 #define MODEST_MAIN_WINDOW(obj)             (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_MAIN_WINDOW,ModestMainWindow))
19 #define MODEST_MAIN_WINDOW_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_MAIN_WINDOW,GtkWidget))
20 #define MODEST_IS_MAIN_WINDOW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_MAIN_WINDOW))
21 #define MODEST_IS_MAIN_WINDOW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_MAIN_WINDOW))
22 #define MODEST_MAIN_WINDOW_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_MAIN_WINDOW,ModestMainWindowClass))
23
24 typedef struct _ModestMainWindow      ModestMainWindow;
25 typedef struct _ModestMainWindowClass ModestMainWindowClass;
26
27
28 struct _ModestMainWindow {
29          GtkWindow parent;
30         /* insert public members, if any */
31 };
32
33 struct _ModestMainWindowClass {
34         GtkWindowClass parent_class;
35         /* insert signal callback declarations, eg. */
36         /* void (* my_event) (ModestMainWindow* obj); */
37 };
38
39
40
41 /* member functions */
42 GType        modest_main_window_get_type    (void) G_GNUC_CONST;
43
44 /* typical parameter-less _new function */
45 /* if this is a kind of GtkWidget, it should probably return at GtkWidget*, */
46 /*    otherwise probably a GObject*. */
47 GtkWidget*    modest_main_window_new         (ModestConf *modest_conf,
48                                               ModestAccountMgr *modest_acc_mgr);
49
50 /* fill in other public functions, eg.: */
51 /*      void       modest_main_window_do_something (ModestMainWindow *self, const gchar* param); */
52 /*      gboolean   modest_main_window_has_foo      (ModestMainWindow *self, gint value); */
53
54
55 G_END_DECLS
56
57 #endif /* __MODEST_MAIN_WINDOW_H__ */
58