KDECore
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);
129 QDateTime ctime(
const QString& path)
const;
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();
223 enum Method { FAM, INotify, DNotify , Stat, QFSWatch };
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 );
305 Q_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.
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.
bool isStopped()
Check if the caller asked the helper to stop the execution.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.