comparison 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
comparison
equal deleted inserted replaced
538:bdc9de794839 539:3935a7e621ca
34 public: 34 public:
35 FsWatcher(); 35 FsWatcher();
36 virtual ~FsWatcher(); 36 virtual ~FsWatcher();
37 37
38 /** 38 /**
39 * Set the root path of the work directory to be monitored. 39 * Set the root path of the work directory to be monitored. This
40 * directory and all its subdirectories (recursively) will be
41 * monitored for changes.
42 *
43 * Calling this also clears the tracked file path set. Call
44 * setTrackedFilePaths afterwards to ensure non-directory files
45 * are monitored.
40 */ 46 */
41 void setWorkDirPath(QString path); 47 void setWorkDirPath(QString path);
42 48
49 /**
50 * Provide a set of paths for files which should be tracked. These
51 * will be the only non-directory files monitored for changes.
52 */
53 void setTrackedFilePaths(QStringList paths);
54
43 /** 55 /**
44 * Provide a set of prefixes to ignore. Files whose names start 56 * Provide a set of prefixes to ignore. Files whose names start
45 * with a prefix in this set will be ignored when they change. 57 * with a prefix in this set will be ignored when they change.
46 */ 58 */
47 void setIgnoredFilePrefixes(QStringList prefixes); 59 void setIgnoredFilePrefixes(QStringList prefixes);