X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window-mgr.h;h=642648c1919ebff2b19b693b58d8cb3714e9be86;hp=455f17c067948b83b465befea47f862029339903;hb=16d7f8b9f45217e350735e33ee6d0255aa894074;hpb=63f8fe0a7c7eeae9c390bc87fb97703fe54438d8 diff --git a/src/widgets/modest-window-mgr.h b/src/widgets/modest-window-mgr.h index 455f17c..642648c 100644 --- a/src/widgets/modest-window-mgr.h +++ b/src/widgets/modest-window-mgr.h @@ -48,15 +48,13 @@ typedef struct _ModestWindowMgrClass ModestWindowMgrClass; struct _ModestWindowMgr { GObject parent; - /* insert public members, if any */ }; struct _ModestWindowMgrClass { GObjectClass parent_class; - /* insert signal callback declarations, eg. */ - /* void (* my_event) (ModestWindowMgr* obj); */ }; + /* member functions */ GType modest_window_mgr_get_type (void) G_GNUC_CONST; @@ -113,6 +111,7 @@ gboolean modest_window_mgr_get_fullscreen_mode (ModestWindowMgr *self); /** * modest_window_mgr_show_toolbars: * @self: a #ModestWindowMgr + * @window_type: apply the show toolbars command only to the windows of this type * @show_toolbar: whether or not the toolbars should be shown * @fullscreen: TRUE/FALSE for show/hide in fullscreen mode, otherwise * it applies to normal mode @@ -123,10 +122,56 @@ gboolean modest_window_mgr_get_fullscreen_mode (ModestWindowMgr *self); * to fullscreen mode and viceversa **/ 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 + * @create: if TRUE, create the main window if it was not yet 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 create); + + +/** + * 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: + * @self: a #ModestWindowMgr + * + * get the modal window; if it's NULL, there's no active modal window + * + * Returns: the modal window or NULL + **/ +GtkWindow* modest_window_mgr_get_modal (ModestWindowMgr *self); + -ModestWindow* modest_window_mgr_get_main_window (ModestWindowMgr *self); +/** + * modest_window_mgr_get_easysetup_dialog: + * @self: a #ModestWindowMgr + * + * set the modal dialog; set it to NULL after destroying the dialog + * + * Returns: the modal dialog just set + **/ +void modest_window_mgr_set_modal (ModestWindowMgr *self, + GtkWindow *window); /** * modest_window_mgr_prevent_hibernation_while_window_is_shown: @@ -159,16 +204,25 @@ gboolean modest_window_mgr_find_registered_header (ModestWindowMgr *self, TnyHe /** + * modest_window_mgr_close_all_windows + * @self: a #ModestWindowMgr + * + * Close all registered windows. + **/ +void modest_window_mgr_close_all_windows (ModestWindowMgr *self); + +/** * modest_window_mgr_register_header * @self: a #ModestWindowMgr * @header: a valid #TnyHeader + * @alt_uid: alternative uid in case @header does not provide one * * register the uid, even before the window is created. thus, we know when * some window creation might already be underway. the uid will automatically be * removed when the window itself will registered * **/ -void modest_window_mgr_register_header (ModestWindowMgr *self, TnyHeader *header); +void modest_window_mgr_register_header (ModestWindowMgr *self, TnyHeader *header, const gchar *alt_uid); /**