Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2013-02-10 14:01:24 +0400
committerKlaas Freitag <freitag@owncloud.com>2013-02-10 14:02:39 +0400
commit6f9bbc431d81039384b5c6d552e3535ffe32d6bd (patch)
tree7379e4edac59aeeb351952533762e68984562eb4 /src/mirall/folderman.h
parentf62626e3eb2751cdff07ae04ee1e98fe87dfb669 (diff)
Properly stop syncing when connection manager opens.
Diffstat (limited to 'src/mirall/folderman.h')
-rw-r--r--src/mirall/folderman.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mirall/folderman.h b/src/mirall/folderman.h
index ad8b47699..b91d4db02 100644
--- a/src/mirall/folderman.h
+++ b/src/mirall/folderman.h
@@ -37,8 +37,6 @@ public:
~FolderMan();
int setupFolders();
- void disableFoldersWithRestore();
- void restoreEnabledFolders();
Mirall::Folder::Map map();
@@ -93,6 +91,10 @@ public slots:
void slotSetCustomPollInterval( uint );
+ // if enabled is set to false, no new folders will start to sync.
+ // the current one will finish.
+ void setSyncEnabled( bool );
+
private slots:
// slot to add a folder to the syncing queue
void slotScheduleSync( const QString & );
@@ -115,12 +117,12 @@ private:
FolderWatcher *_configFolderWatcher;
Folder::Map _folderMap;
- QHash<QString, bool> _folderEnabledMap;
QString _folderConfigPath;
QSignalMapper *_folderChangeSignalMapper;
QString _currentSyncFolder;
QStringList _scheduleQueue;
uint _customPollInterval;
+ bool _syncEnabled;
};
}