Method to update the watch path parameters.

This commit is contained in:
sledgehammer999
2016-01-01 16:12:50 +02:00
parent 990e33a4b1
commit 429a1ba78a
2 changed files with 17 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ public:
// TODO: removePaths(); singular version becomes private helper functions;
// also: remove functions should take modelindexes
PathStatus addPath(const QString &watchPath, const PathType& downloadType, const QString &downloadPath, bool addToFSWatcher = true);
PathStatus updatePath(const QString &watchPath, const PathType& downloadType, const QString &downloadPath);
// PRECONDITION: The paths must have been added with addPath() first.
void addToFSWatcher(const QStringList &watchPaths);
void removePath(int row);