5#include <QtCore/qscopeguard.h>
6#include <QtCore/qtimer.h>
28 if (directories->contains(
path))
30 directories->append(
path);
31 if (!
path.endsWith(u
'/'))
33 this->directories.insert(
path,
fi);
38 this->files.insert(
path,
fi);
43 if ((!this->files.isEmpty() ||
44 !
this->directories.isEmpty()) &&
58 if (this->directories.remove(
path)) {
59 directories->removeAll(
path);
60 }
else if (this->files.remove(
path)) {
63 unhandled.push_back(
path);
67 if (this->files.isEmpty() &&
68 this->directories.isEmpty()) {
75void QPollingFileSystemWatcherEngine::timeout()
84 }
else if (
it.value() !=
fi) {
94 if (!
path.endsWith(u
'/'))
100 }
else if (
it.value() !=
fi) {
117#include "moc_qfilesystemwatcher_polling_p.cpp"
\inmodule QtCore \reentrant
void refresh()
Refreshes the information about the file, i.e.
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory.
bool exists() const
Returns true if the file exists; otherwise returns false.
void directoryChanged(const QString &path, bool removed)
void fileChanged(const QString &path, bool removed)
iterator begin()
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
iterator erase(const_iterator it)
iterator end() noexcept
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last ...
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QPollingFileSystemWatcherEngine(QObject *parent)
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override
\macro QT_RESTRICTED_CAST_FROM_ASCII
void start(int msec)
Starts or restarts the timer with a timeout interval of msec milliseconds.
bool isActive() const
Returns true if the timer is running (pending); otherwise returns false.
void stop()
Stops the timer.
QSet< QString >::iterator it
Combined button and popup list for selecting options.
GLbitfield GLuint64 timeout
[4]
GLsizei const GLuint * paths
GLsizei const GLchar *const * path
QScopeGuard< typename std::decay< F >::type > qScopeGuard(F &&f)
[qScopeGuard]
QFileInfo fi("c:/temp/foo")
[newstuff]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent