Virtual methods update_model and save in wizard dialog
[modest] / src / widgets / modest-folder-view.h
index b1cb67d..80d2c02 100644 (file)
@@ -34,6 +34,7 @@
 #include <tny-gtk-account-list-model.h>
 #include <tny-account-store.h>
 #include <modest-tny-account-store.h>
+#include <modest-tny-folder.h>
 
 G_BEGIN_DECLS
 
@@ -63,6 +64,8 @@ typedef enum _ModestFolderViewFilter {
        MODEST_FOLDER_VIEW_FILTER_MOVEABLE = 1 << 3,
        MODEST_FOLDER_VIEW_FILTER_DELETABLE = 1 << 4,
        MODEST_FOLDER_VIEW_FILTER_HIDE_ACCOUNTS = 1 << 5,
+       MODEST_FOLDER_VIEW_FILTER_HIDE_FOLDERS = 1 << 6,
+       MODEST_FOLDER_VIEW_FILTER_HIDE_LOCAL_FOLDERS = 1 << 7,
 } ModestFolderViewFilter;
 
 typedef struct _ModestFolderView      ModestFolderView;
@@ -89,6 +92,10 @@ struct _ModestFolderViewClass {
        void     (*folder_activated) (ModestFolderView *self,
                                      TnyFolderStore *folder,
                                      gpointer userdata);
+
+       void     (*visible_account_changed) (ModestFolderView* self,
+                                            const gchar *account_id,
+                                            gpointer user_data);
 };
 
 /**
@@ -293,6 +300,19 @@ void modest_folder_view_set_filter (ModestFolderView *self,
 void modest_folder_view_unset_filter (ModestFolderView *self,
                                      ModestFolderViewFilter filter);
 
+gboolean modest_folder_view_any_folder_fulfils_rules (ModestFolderView *self,
+                                                     ModestTnyFolderRules rules);
+
+/**
+ * modest_folder_view_set_list_to_move:
+ * @self: a #ModestFolderView
+ * @list: a #TnyList, or %NULL for unsetting the current list.
+ * 
+ * list of folders or messages we're moving. This has some effects on 
+ * "show_non_move_to".
+ */
+void modest_folder_view_set_list_to_move (ModestFolderView *self,
+                                         TnyList *list);
 
 G_END_DECLS