<class name="QFileSystemWatcher" doc="/** <p>The <a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a> class provides an interface for monitoring files and directories for modifications.</p> <p><a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a> monitors the file system for changes to files and directories by watching a list of specified paths.</p> <p>Call <a href="QFileSystemWatcher.html#addPath(java.lang.String)"><tt>addPath</tt></a> to watch a particular file or directory. Multiple paths can be added using the <a href="QFileSystemWatcher.html#addPaths(java.util.List<java.lang.String>)"><tt>addPaths</tt></a> function. Existing paths can be removed by using the <a href="QFileSystemWatcher.html#removePath(java.lang.String)"><tt>removePath</tt></a> and <a href="QFileSystemWatcher.html#removePaths(java.util.List<java.lang.String>)"><tt>removePaths</tt></a> functions.</p> <p><a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a> examines each path added to it. Files that have been added to the <a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a> can be accessed using the <a href="QFileSystemWatcher.html#files()"><tt>files</tt></a> function, and directories using the <a href="QFileSystemWatcher.html#directories()"><tt>directories</tt></a> function.</p> <p>The <a href="QFileSystemWatcher.html#fileChanged(java.lang.String)"><tt>fileChanged</tt></a> signal is emitted when a file has been modified or removed from disk. Similarly, the <a href="QFileSystemWatcher.html#directoryChanged(java.lang.String)"><tt>directoryChanged</tt></a> signal is emitted when a directory is modified or removed. Note that <a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a> stops monitoring files and directories once they have been removed from disk.</p> @see <a href="QFile.html"><tt>QFile</tt></a> @see <a href="QDir.html"><tt>QDir</tt></a> */"> <signal name="protected final void directoryChanged(java.lang.String path)" doc="/** <p>This signal is emitted when the directory at the specified <tt>path</tt> is modified or removed from disk. Note that if there are several changes during a short period of time, some of the changes might not emit this signal. However, the last change in the sequence of changes will always generate this signal.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(java.lang.String path)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QFileSystemWatcher.html#fileChanged(java.lang.String)"><tt>fileChanged</tt></a></dd> </dl> */"/> <signal name="protected final void fileChanged(java.lang.String path)" doc="/** <p>This signal is emitted when the file at the specified <tt>path</tt> is modified or removed from disk.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(java.lang.String path)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QFileSystemWatcher.html#directoryChanged(java.lang.String)"><tt>directoryChanged</tt></a></dd> </dl> */"/> <method name="public QFileSystemWatcher(com.trolltech.qt.core.QObject parent)" doc="/** <p>Constructs a new file system watcher object with the given <tt>parent</tt>.</p> */"/> <method name="public QFileSystemWatcher()" doc="/** <p>Equivalent to <a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a>(0). */"/> <method name="public QFileSystemWatcher(java.util.List<java.lang.String> paths, com.trolltech.qt.core.QObject parent)" doc="/** <p>Constructs a new file system watcher object with the given <tt>parent</tt> which monitors the specified <tt>paths</tt> list.</p> */"/> <method name="public QFileSystemWatcher(java.util.List<java.lang.String> paths)" doc="/** <p>Equivalent to <a href="QFileSystemWatcher.html#QFileSystemWatcher(java.util.List<java.lang.String>, com.trolltech.qt.core.QObject)"><tt>QFileSystemWatcher</tt></a>(<tt>paths</tt>, 0). */"/> <method name="public final void addPath(java.lang.String file)" doc="/** <p>Adds <tt>file</tt> to the file system watcher if <tt>file</tt> exists. The path is not added if it does not exist, or if it is already being monitored by the file system watcher.</p> <p>If <tt>file</tt> specifies a directory, the <a href="QFileSystemWatcher.html#directoryChanged(java.lang.String)"><tt>directoryChanged</tt></a> signal will be emitted when <tt>file</tt> is modified or removed from disk; otherwise the <a href="QFileSystemWatcher.html#fileChanged(java.lang.String)"><tt>fileChanged</tt></a> signal is emitted when <tt>file</tt> is modified or removed.</p> @see <a href="QFileSystemWatcher.html#addPaths(java.util.List<java.lang.String>)"><tt>addPaths</tt></a> @see <a href="QFileSystemWatcher.html#removePath(java.lang.String)"><tt>removePath</tt></a> */"/> <method name="public final void addPaths(java.util.List<java.lang.String> files)" doc="/** <p>Adds each path in <tt>files</tt> to the file system watcher. Paths are not added if they not exist, or if they are already being monitored by the file system watcher.</p> <p>If a path specifies a directory, the <a href="QFileSystemWatcher.html#directoryChanged(java.lang.String)"><tt>directoryChanged</tt></a> signal will be emitted when the path is modified or removed from disk; otherwise the <a href="QFileSystemWatcher.html#fileChanged(java.lang.String)"><tt>fileChanged</tt></a> signal is emitted when the path is modified or removed.</p> @see <a href="QFileSystemWatcher.html#addPath(java.lang.String)"><tt>addPath</tt></a> @see <a href="QFileSystemWatcher.html#removePaths(java.util.List<java.lang.String>)"><tt>removePaths</tt></a> */"/> <method name="public final java.util.List<java.lang.String> directories()" doc="/** <p>Returns a list of paths to directories that are being watched.</p> @see <a href="QFileSystemWatcher.html#files()"><tt>files</tt></a> */"/> <method name="public final java.util.List<java.lang.String> files()" doc="/** <p>Returns a list of paths to files that are being watched.</p> @see <a href="QFileSystemWatcher.html#directories()"><tt>directories</tt></a> */"/> <method name="public final void removePath(java.lang.String file)" doc="/** <p>Removes the specified <tt>file</tt> from the file system watcher.</p> @see <a href="QFileSystemWatcher.html#removePaths(java.util.List<java.lang.String>)"><tt>removePaths</tt></a> @see <a href="QFileSystemWatcher.html#addPath(java.lang.String)"><tt>addPath</tt></a> */"/> <method name="public final void removePaths(java.util.List<java.lang.String> files)" doc="/** <p>Removes the specified <tt>files</tt> from the file system watcher.</p> @see <a href="QFileSystemWatcher.html#removePath(java.lang.String)"><tt>removePath</tt></a> @see <a href="QFileSystemWatcher.html#addPaths(java.util.List<java.lang.String>)"><tt>addPaths</tt></a> */"/> </class>