#include <glib-object.h>
#include "modest-window.h"
+#include <tny-header.h>
G_BEGIN_DECLS
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,
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);
GType window_type,
gboolean show_toolbars,
gboolean fullscreen);
+#ifndef MODEST_TOOLKIT_HILDON2
/**
* modest_window_mgr_get_main_window:
* @self: a #ModestWindowMgr
* 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:
*/
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__ */