X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-folder-view.h;h=6eab8a8396c27a9a64198ede3eaa58c13646eda5;hb=bf831b6566516e6b57de7a64afb732eb8686e792;hp=4cffc5d235bae59ad4879b3a2b888804a57e1273;hpb=f375a5693462be41074f1e5d3023b2b4d4a05ca3;p=modest diff --git a/src/widgets/modest-folder-view.h b/src/widgets/modest-folder-view.h index 4cffc5d..6eab8a8 100644 --- a/src/widgets/modest-folder-view.h +++ b/src/widgets/modest-folder-view.h @@ -159,6 +159,67 @@ const gchar* modest_folder_view_get_selected_display_name (ModestFolderView *sel void modest_folder_view_set_style (ModestFolderView *self, ModestFolderViewStyle style); +/** + * modest_folder_view_set_account_id_of_visible_server_account: + * @self: a #ModestFolderView + * @account_id: the remote server account id + * + * sets the server account id (value returned by tny_account_get_id()) + * to the string passed as argument. The remote server with the + * specified id will be the unique visible account if the folder view + * is configured in MODEST_FOLDER_VIEW_STYLE_SHOW_ONE + **/ +void modest_folder_view_set_account_id_of_visible_server_account (ModestFolderView *self, + const gchar *account_id); + +/** + * modest_folder_view_get_account_id_of_visible_server_account: + * @self: a #ModestFolderView + * + * gets the account id of the currently visible server account id + * + * Return value: the visible server account id or NULL if none set + **/ +const gchar* modest_folder_view_get_account_id_of_visible_server_account (ModestFolderView *self); + + +void modest_folder_view_select_first_inbox_or_local (ModestFolderView *self); + +/** + * modest_folder_view_copy_selection: + * @self: a #ModestFolderView + * + * Stores a #TnyList of selected folders in the own clibpoard of + * @self folder view. + **/ +void +modest_folder_view_copy_selection (ModestFolderView *folder_view); + +/** + * modest_folder_view_cut_selection: + * @self: a #ModestFolderView + * + * Stores a #TnyList of selected folders in the own clibpoard of + * @self folder view and filter them into folders tree model to + * hide these rows in treeview. + **/ +void +modest_folder_view_cut_selection (ModestFolderView *folder_view); + + +/** + * modest_folder_view_paste_selection: + * @self: a #ModestFolderView + * @folders: ouput parameter with a #TnyList of folders which will be returned. + * @delete: output parameter with indication about delete or not the selected folders. + * + * Gets the selected folders to copy/cut. + **/ +void +modest_folder_view_paste_selection (ModestFolderView *folder_view, + TnyList **folders, + gboolean *delete); + G_END_DECLS #endif /* __MODEST_FOLDER_VIEW_H__ */