Mercurial > hg > easyhg
diff src/fswatcher.h @ 539:3935a7e621ca fswatcher
Add setTrackedFilePaths, and comments
author | Chris Cannam |
---|---|
date | Fri, 10 Feb 2012 21:49:27 +0000 |
parents | bdc9de794839 |
children | fc2df97920e8 |
line wrap: on
line diff
--- a/src/fswatcher.h Fri Feb 10 17:53:04 2012 +0000 +++ b/src/fswatcher.h Fri Feb 10 21:49:27 2012 +0000 @@ -36,11 +36,23 @@ virtual ~FsWatcher(); /** - * Set the root path of the work directory to be monitored. + * Set the root path of the work directory to be monitored. This + * directory and all its subdirectories (recursively) will be + * monitored for changes. + * + * Calling this also clears the tracked file path set. Call + * setTrackedFilePaths afterwards to ensure non-directory files + * are monitored. */ void setWorkDirPath(QString path); /** + * Provide a set of paths for files which should be tracked. These + * will be the only non-directory files monitored for changes. + */ + void setTrackedFilePaths(QStringList paths); + + /** * Provide a set of prefixes to ignore. Files whose names start * with a prefix in this set will be ignored when they change. */