X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=inline;f=src%2Fwidgets%2Fmodest-window-mgr.h;h=1ef0c5902610cf152a035713e6cb6fda6c6123b9;hb=HEAD;hp=f0a3a7c8b5551fcdbe159383eed9f795a1e1e7b5;hpb=b8143cd888f24df1dd8a77b2bb3206e8fd72314c;p=modest diff --git a/src/widgets/modest-window-mgr.h b/src/widgets/modest-window-mgr.h index f0a3a7c..1ef0c59 100644 --- a/src/widgets/modest-window-mgr.h +++ b/src/widgets/modest-window-mgr.h @@ -32,6 +32,7 @@ #include #include "modest-window.h" +#include G_BEGIN_DECLS @@ -66,8 +67,6 @@ struct _ModestWindowMgrClass { GType window_type, gboolean show_toolbars, gboolean fullscreen); - ModestWindow * (*get_main_window) (ModestWindowMgr *self, - gboolean show); gboolean (*close_all_windows) (ModestWindowMgr *self); GtkWindow * (*get_modal) (ModestWindowMgr *self); void (*set_modal) (ModestWindowMgr *self, @@ -82,7 +81,13 @@ struct _ModestWindowMgrClass { GList * (*get_window_list) (ModestWindowMgr *self); ModestWindow * (*show_initial_window) (ModestWindowMgr *self); ModestWindow * (*get_current_top) (ModestWindowMgr *self); + gboolean (*close_all_but_initial) (ModestWindowMgr *self); + gboolean (*screen_is_on) (ModestWindowMgr *self); + void (*create_caches) (ModestWindowMgr *self); + + ModestWindow * (*get_folder_window) (ModestWindowMgr *self); + /* Signals */ void (*window_list_empty) (ModestWindowMgr *self); void (*progress_list_changed) (ModestWindowMgr *self); @@ -174,38 +179,6 @@ void modest_window_mgr_show_toolbars (ModestWindowMgr *self, GType window_type, gboolean show_toolbars, gboolean fullscreen); -/** - * modest_window_mgr_get_main_window: - * @self: a #ModestWindowMgr - * @show: if TRUE, create the main window and show it if it was not existing. - * - * get the main window, and depending on @create, create one if it does not exist yet - * - * Returns: the main window or NULL in case of error, or the main-window - * did not yet exist - **/ -ModestWindow* modest_window_mgr_get_main_window (ModestWindowMgr *self, - gboolean show); - -/** - * modest_window_mgr_set_main_window: - * @self: a #ModestWindowMgr - * @main_win: a #ModestMainWindow - */ -void modest_window_mgr_set_main_window (ModestWindowMgr *self, ModestWindow *main_win); - - -/** - * modest_window_mgr_main_window_exists: - * @self: a #ModestWindowMgr - * - * do we have a main window? - * - * Returns: TRUE if there's a main window, FALSE otherwise - **/ -gboolean modest_window_mgr_main_window_exists (ModestWindowMgr *self); - - /** * modest_window_mgr_get_modal: @@ -464,6 +437,30 @@ gboolean modest_window_mgr_has_progress_operation (ModestWindowMgr *self); gboolean modest_window_mgr_has_progress_operation_on_account (ModestWindowMgr *self, const gchar *account_name); +/** + * modest_window_mgr_create_caches: + * @self: a #ModestWindowMgr + * + * creates cached windows. This is called in modest main, just before the show-ui + * code. So it should be valid for the two startup ways (with --show-ui and without). + */ +void modest_window_mgr_create_caches (ModestWindowMgr *self); + +/** + * modest_window_mgr_close_all_but_initial: + * @self: a #ModestWindowMgr + * + * closes all but the initial window. + * + * Returns: %TRUE if the initial window is returned in @initial_window + * and it does not have any other dialog or window on top, otherwhise + * %FALSE + */ +gboolean modest_window_mgr_close_all_but_initial (ModestWindowMgr *self); + +ModestWindow *modest_window_mgr_get_folder_window (ModestWindowMgr *self); + + G_END_DECLS #endif /* __MODEST_WINDOW_MGR_H__ */