Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-window-mgr.h
index 8266b31..1ef0c59 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <glib-object.h>
 #include "modest-window.h"
+#include <tny-header.h>
 
 G_BEGIN_DECLS
 
@@ -66,10 +67,6 @@ struct _ModestWindowMgrClass {
                                                                 GType window_type,
                                                                 gboolean show_toolbars,
                                                                 gboolean fullscreen);
-#ifndef MODEST_TOOLKIT_HILDON2
-       ModestWindow *        (*get_main_window)                (ModestWindowMgr *self,
-                                                                gboolean show);
-#endif
        gboolean              (*close_all_windows)              (ModestWindowMgr *self);
        GtkWindow *           (*get_modal)                      (ModestWindowMgr *self);
        void                  (*set_modal)                      (ModestWindowMgr *self,
@@ -84,8 +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);
@@ -177,38 +179,6 @@ void           modest_window_mgr_show_toolbars         (ModestWindowMgr *self,
                                                        GType window_type,
                                                        gboolean show_toolbars,
                                                        gboolean fullscreen);
-#ifndef MODEST_TOOLKIT_HILDON2
-/**
- * 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);
-#endif
 
 /**
  * modest_window_mgr_get_modal:
@@ -476,6 +446,21 @@ gboolean modest_window_mgr_has_progress_operation_on_account (ModestWindowMgr *s
  */
 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__ */