X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-folder-view.h;h=e9dab7bbac295eb07d18392f4a139fb1637a7b3c;hb=8c4d399bb8f14bcb599a41ccc56ac5bc585db0b2;hp=cada9fc020ada1147ca620b65beae9b8328aeb95;hpb=f6891420a3a176b0b89d61def76d631f63848248;p=modest diff --git a/src/widgets/modest-folder-view.h b/src/widgets/modest-folder-view.h index cada9fc..e9dab7b 100644 --- a/src/widgets/modest-folder-view.h +++ b/src/widgets/modest-folder-view.h @@ -64,6 +64,10 @@ 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, + MODEST_FOLDER_VIEW_FILTER_HIDE_MCC_FOLDERS = 1 << 8, + MODEST_FOLDER_VIEW_FILTER_SHOW_ONLY_MAILBOXES = 1<< 9, } ModestFolderViewFilter; typedef struct _ModestFolderView ModestFolderView; @@ -90,6 +94,13 @@ struct _ModestFolderViewClass { void (*folder_activated) (ModestFolderView *self, TnyFolderStore *folder, gpointer userdata); + + void (*visible_account_changed) (ModestFolderView* self, + const gchar *account_id, + gpointer user_data); + void (*activity_changed) (ModestFolderView* self, + gboolean activity, + gpointer user_data); }; /** @@ -177,6 +188,27 @@ void modest_folder_view_set_account_id_of_visible_server_account (Modest const gchar *account_id); /** + * modest_folder_view_set_visible_mailbox: + * @self: a #ModestFolderView + * @account_id: the remote account mailbox to show + * + * if set an account id to filter, this filters also to show only + * folders of a specific mailbox. + **/ +void modest_folder_view_set_mailbox (ModestFolderView *self, + const gchar *mailbox); + +/** + * modest_folder_view_get_mailbox: + * @self: a #ModestFolderView + * + * Return the current mailbox set for filtering in folder view + * + * Returns: a string, or %NULL + */ +const gchar *modest_folder_view_get_mailbox (ModestFolderView *self); + +/** * modest_folder_view_get_account_id_of_visible_server_account: * @self: a #ModestFolderView * @@ -308,6 +340,26 @@ gboolean modest_folder_view_any_folder_fulfils_rules (ModestFolderView *self, void modest_folder_view_set_list_to_move (ModestFolderView *self, TnyList *list); +/** + * modest_folder_view_show_message_count: + * @self: a #ModestFolderView + * @show: a #gboolean + * + * Set if the message count should be shown or not + */ +void modest_folder_view_show_message_count (ModestFolderView *self, + gboolean show); + +/** + * modest_folder_view_get_activity: + * @self: a #ModestFolderView + * + * tells if widget is retrieving information + * + * Returns: %TRUE if retrieving, %FALSE otherwise + */ +gboolean modest_folder_view_get_activity (ModestFolderView *self); + G_END_DECLS #endif /* __MODEST_FOLDER_VIEW_H__ */