X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window-mgr.h;h=60ef0ae10adca127daafcd1b36b7413b39246fbe;hp=642648c1919ebff2b19b693b58d8cb3714e9be86;hb=5680999d6a70bb204064fd8f00bd309b974ff036;hpb=175e5926e0194a8211b846a4eec403a5bdb4afd4 diff --git a/src/widgets/modest-window-mgr.h b/src/widgets/modest-window-mgr.h index 642648c..60ef0ae 100644 --- a/src/widgets/modest-window-mgr.h +++ b/src/widgets/modest-window-mgr.h @@ -52,6 +52,9 @@ struct _ModestWindowMgr { struct _ModestWindowMgrClass { GObjectClass parent_class; + + /* Signals */ + void (*window_list_empty) (ModestWindowMgr *self); }; @@ -189,6 +192,34 @@ void modest_window_mgr_prevent_hibernation_while_window_is_shown (ModestWindowMg GtkWindow *window); + +/** + * modest_window_mgr_register_help_id + * @self: a #ModestWindowMgr + * @win: some window + * @help_id: the help_id for this window + * + * register a help id for a window + **/ +void +modest_window_mgr_register_help_id (ModestWindowMgr *self, GtkWindow *win, const gchar* help_id); + + +/** + * modest_window_mgr_get_help_id: + * @self: a #ModestWindowMgr + * @win: some window + * + * get the help id for a window; if the window is the main-window and some folder is + * selected, it will return the proper help_id for that + * + * Returns: a help _id + **/ +const gchar* +modest_window_mgr_get_help_id (ModestWindowMgr *self, GtkWindow *win); + + + /** * modest_window_mgr_find_registered_header * @self: a #ModestWindowMgr @@ -258,6 +289,38 @@ gboolean modest_window_mgr_get_hibernation_is_prevented (ModestWindowMgr *self); * application hibernation. **/ void modest_window_mgr_save_state_for_all_windows (ModestWindowMgr *self); + +/** + * modest_window_mgr_num_windows: + * @self: a #ModestWindowMgr + * + * Gets the number of already registered windows + * + * Returns: the number of already registered windows + **/ +gint modest_window_mgr_num_windows (ModestWindowMgr *self); + +/** + * modest_window_mgr_get_msg_view_window: + * @self: a #ModestWindowMgr + * + * obtain a cached #ModestMsgViewWindow if available, or construct a new + * one. + * + * Returns: a #ModestMsgViewWindow + */ +GtkWidget * modest_window_mgr_get_msg_view_window (ModestWindowMgr *self); + +/** + * modest_window_mgr_get_msg_edit_window: + * @self: a #ModestWindowMgr + * + * obtain a cached #ModestMsgEditWindow if available, or construct a new + * one. + * + * Returns: a #ModestMsgEditWindow + */ +GtkWidget * modest_window_mgr_get_msg_edit_window (ModestWindowMgr *self); G_END_DECLS