* Renamed one method in modest UI actions
[modest] / src / widgets / modest-window-mgr.h
index 455f17c..91d61b2 100644 (file)
@@ -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,11 +122,44 @@ 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
+ *
+ * get the main window, or create if it's not there. don't destroy
+ * it.
+ *
+ * Returns: the main window or NULL in case of error
+ **/
 ModestWindow*  modest_window_mgr_get_main_window       (ModestWindowMgr *self);
 
+
+/**
+ * modest_window_mgr_get_easysetup_dialog:
+ * @self: a #ModestWindowMgr
+ *
+ * get the easysetup dialog; if it's NULL, there's no active dialog
+ *
+ * Returns: the easy setup dialog or NULL
+ **/
+GtkDialog*    modest_window_mgr_get_easysetup_dialog  (ModestWindowMgr *self);
+
+
+/**
+ * modest_window_mgr_get_easysetup_dialog:
+ * @self: a #ModestWindowMgr
+ *
+ * set the easysetup dialog; set it to NULL after destroying the dialog
+ *
+ * Returns: the easy setup dialog just set
+ **/
+GtkDialog*    modest_window_mgr_set_easysetup_dialog  (ModestWindowMgr *self,
+                                                      GtkDialog *dialog);
+
+
 /**
  * modest_window_mgr_prevent_hibernation_while_window_is_shown:
  * @self: a #ModestWindowMgr
@@ -159,6 +191,14 @@ 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