* Makefile.am:
[modest] / src / modest-widget-factory.h
index a44a65a..b88f83d 100644 (file)
 #ifndef __MODEST_WIDGET_FACTORY_H__
 #define __MODEST_WIDGET_FACTORY_H__
 
-#include <glib-object.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"
+#include "widgets/modest-combo-box.h"
 
 G_BEGIN_DECLS
 
@@ -64,13 +63,14 @@ struct _ModestWidgetFactoryClass {
 };
 
 
-enum _ModestComboBoxType {
+typedef enum _ModestComboBoxType {
        MODEST_COMBO_BOX_TYPE_STORE_PROTOS,
        MODEST_COMBO_BOX_TYPE_TRANSPORT_PROTOS,
        MODEST_COMBO_BOX_TYPE_SECURITY_PROTOS,
        MODEST_COMBO_BOX_TYPE_AUTH_PROTOS,
-};
-typedef enum _ModestComboBoxType ModestComboBoxType;
+       MODEST_COMBO_BOX_TYPE_TRANSPORTS,
+       MODEST_COMBO_BOX_TYPE_REMOTE_STORES
+} ModestComboBoxType;
 
 
 /**
@@ -85,17 +85,12 @@ GType        modest_widget_factory_get_type    (void) G_GNUC_CONST;
 
 /**
  * modest_widget_factory_new
- * @conf: a modest conf instance
- * @acc_store: a modest account store instance
- * @acc_mgr: a modest account mgr instance
  *
  * instantiates a ModestWidgetFactory
  *
  * Returns: a new ModestWidgetFactory, or NULL in case of error
  */
-ModestWidgetFactory*      modest_widget_factory_new   (ModestConf *conf,
-                                                      ModestTnyAccountStore *acc_store,
-                                                      ModestAccountMgr *account_mgr);
+ModestWidgetFactory*      modest_widget_factory_new   (void);
 /**
  * modest_widget_factory_get_folder_view
  * @self: a ModestWidgetFactory instance
@@ -200,20 +195,26 @@ GtkWidget*     modest_widget_factory_get_combo_box (ModestWidgetFactory *self,
 
 
 /**
- * modest_widget_factory_get_online_combo
+ * modest_widget_factory_get_online_toggle
  * @self: a ModestWidgetFactory instance
- * 
+ *
  * return a toggle which with one can see whether online/offline mode is active.
  * In case of auto-connect, this will automatically be sync'd with the
  * account_store / device
- *  
- * Returns: the combo box
+ *
+ * Returns: the toggle button
  */
 GtkWidget*  modest_widget_factory_get_online_toggle (ModestWidgetFactory *self);
 
-
-
-
+/**
+ * modest_widget_factory_get_folder_info_label
+ * @self: a ModestWidgetFactory instance
+ *
+ * return a label with the number of items, unread items in the current folder
+ *
+ * Returns: the label
+ */
+GtkWidget*  modest_widget_factory_get_folder_info_label (ModestWidgetFactory *self);
 
 G_END_DECLS