#define __MODEST_WIDGET_FACTORY_H__
#include <glib-object.h>
-#include "../modest-account-mgr.h"
-#include "../modest-tny-account-store.h"
-#include "../modest-tny-header-tree-view.h"
-#include "../modest-tny-folder-tree-view.h"
-#include "../modest-tny-msg-view.h"
+#include "modest-account-mgr.h"
+#include "modest-tny-account-store.h"
+
+#include "widgets/modest-header-view.h"
+#include "widgets/modest-folder-view.h"
+#include "widgets/modest-msg-view.h"
+#include "widgets/modest-account-view.h"
G_BEGIN_DECLS
/**
* modest_widget_factory_new
+ * @conf: a modest conf instance
+ * @acc_store: a modest account store instance
* @acc_mgr: a modest account mgr instance
* @autoconnect: should we autoconnect the widgets (ie. depedent widgets are update
* automagically)
*
* Returns: a new ModestWidgetFactory, or NULL in case of error
*/
-ModestWidgetFactory* modest_widget_factory_new (ModestTnyAccountStore *acc_store,
- gboolean autoconnect);
-
+ModestWidgetFactory* modest_widget_factory_new (ModestConf *conf,
+ ModestTnyAccountStore *acc_store,
+ ModestAccountMgr *account_mgr,
+ gboolean auto_connect);
/**
- * modest_widget_factory_get_folder_tree_widget
+ * modest_widget_factory_get_folder_view
* @self: a ModestWidgetFactory instance
*
* return the folder tree widget (ie. the widget with the list of folders);
*
* Returns: a folder tree view, or NULL in case of error
*/
-ModestTnyFolderTreeView* modest_widget_factory_get_folder_tree_widget (ModestWidgetFactory *self);
+ModestFolderView* modest_widget_factory_get_folder_view (ModestWidgetFactory *self);
/**
- * modest_widget_factory_get_header_tree_widget
+ * modest_widget_factory_get_header_view
* @self: a ModestWidgetFactory instance
*
* return the header tree widget (ie. the widget with the list of headers);
*
* Returns: a header tree view, or NULL in case of error
*/
-ModestTnyHeaderTreeView* modest_widget_factory_get_header_tree_widget (ModestWidgetFactory *self);
+ModestHeaderView* modest_widget_factory_get_header_view (ModestWidgetFactory *self);
/**
- * modest_widget_factory_get_header_tree_widget
+ * modest_widget_factory_get_msg_preview
* @self: a ModestWidgetFactory instance
*
* return the message preview widget (ie. the widget with shows the currently selected message);
*
* Returns: a header tree view, or NULL in case of error
*/
-ModestTnyMsgView* modest_widget_factory_get_msg_preview_widget (ModestWidgetFactory *self);
+ModestMsgView* modest_widget_factory_get_msg_preview (ModestWidgetFactory *self);
+
+
+/**
+ * modest_widget_factory_get_account_view
+ * @self: a ModestWidgetFactory instance
+ *
+ * return an account view widget (ie. the widget that shows a list of accounts)
+ *
+ * This factory will always return the
+ * same widget, and takes care of its lifetime - users should *not* destroy it.
+ *
+ * Returns: the account view, or NULL in case of error
+ */
+ModestAccountView* modest_widget_factory_get_account_view (ModestWidgetFactory *self);
G_END_DECLS