Go to the documentation of this file.
21#include <QtCore/QDateTime>
22#include <QtCore/QObject>
23#include <QtCore/QString>
78 Q_DECLARE_FLAGS(WatchModes, WatchMode)
115 void addDir(
const QString& path, WatchModes watchModes = WatchDirOnly);
122 void addFile(
const QString& file);
137 void removeDir(
const QString& path);
145 void removeFile(
const QString& file);
159 bool stopDirScan(
const QString& path);
174 bool restartDirScan(
const QString& path);
192 void startScan(
bool notify=
false,
bool skippedToo=
false );
213 bool contains(
const QString& path )
const;
215 void deleteQFSWatcher();
221 static void statistics();
228 Method internalMethod();
248 static bool exists();
256 void setCreated(
const QString &path );
262 void setDirty(
const QString &path );
268 void setDeleted(
const QString &path );
305Q_DECLARE_OPERATORS_FOR_FLAGS(KDirWatch::WatchModes)
Class for watching directory and file changes.
void deleted(const QString &path)
Emitted when a file or directory is deleted.
WatchMode
Available watch modes for directory monitoring.
@ WatchSubDirs
Watch also all the subdirs contained by the directory.
@ WatchDirOnly
Watch just the specified directory.
@ WatchFiles
Watch also all files contained by the directory.
KDirWatch(QObject *parent=0)
Constructor.
void dirty(const QString &path)
Emitted when a watched object is changed.
void created(const QString &path)
Emitted when a file or directory is created.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.