1 /* modest-main-window.h */
2 /* insert (c)/licensing information) */
4 #ifndef __MODEST_MAIN_WINDOW_H__
5 #define __MODEST_MAIN_WINDOW_H__
9 #include "../modest-conf.h"
10 #include "../modest-account-mgr.h"
12 /* other include files */
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))
24 typedef struct _ModestMainWindow ModestMainWindow;
25 typedef struct _ModestMainWindowClass ModestMainWindowClass;
28 struct _ModestMainWindow {
30 /* insert public members, if any */
33 struct _ModestMainWindowClass {
34 GtkWindowClass parent_class;
35 /* insert signal callback declarations, eg. */
36 /* void (* my_event) (ModestMainWindow* obj); */
41 /* member functions */
42 GType modest_main_window_get_type (void) G_GNUC_CONST;
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);
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); */
57 #endif /* __MODEST_MAIN_WINDOW_H__ */