Added method to drop all sync folder definitions.

This commit is contained in:
Klaas Freitag 2012-06-12 12:29:39 +02:00
parent d55900561b
commit f219b0613c
2 changed files with 12 additions and 0 deletions

View File

@ -331,6 +331,13 @@ void FolderMan::slotRemoveFolder( const QString& alias )
removeFolder(alias);
}
void FolderMan::removeAllFolderDefinitions()
{
foreach( Folder *f, _folderMap.values() ) {
removeFolder( f->alias() );
}
}
// remove a folder from the map. Should be sure n
void FolderMan::removeFolder( const QString& alias )
{

View File

@ -68,6 +68,11 @@ public:
*/
Folder* setupFolderFromConfigFile(const QString & );
/**
* wipes all folder defintions. No way back!
*/
void removeAllFolderDefinitions();
signals:
/**
* signal to indicate a folder named by alias has changed its sync state.