5#ifndef QFILESYSTEMWATCHER_WIN_P_H
6#define QFILESYSTEMWATCHER_WIN_P_H
21#include <QtCore/qdatetime.h>
22#include <QtCore/qfile.h>
23#include <QtCore/qfileinfo.h>
24#include <QtCore/qhash.h>
25#include <QtCore/qlist.h>
26#include <QtCore/qmutex.h>
27#include <QtCore/qthread.h>
45 QStringList addPaths(
const QStringList &paths, QStringList *files, QStringList *directories)
override;
71 ownerId = fileInfo.ownerId();
72 groupId = fileInfo.groupId();
73 permissions = fileInfo.permissions();
74 lastModified = fileInfo.lastModified();
78 bool operator!=(
const QFileInfo &fileInfo)
const
80 return (ownerId != fileInfo.ownerId()
81 || groupId != fileInfo.groupId()
82 || permissions != fileInfo.permissions()
83 || lastModified != fileInfo.lastModified());
93 QList<QWindowsFileSystemWatcherEngineThread *> threads;
110 return qHash(key.toCaseFolded(), seed);
QFileSystemWatcherPathKey(const QFileSystemWatcherPathKey &other)
bool operator==(const QFileSystemWatcherPathKey &other) const
QFileSystemWatcherPathKey(const QString &other)
QFileSystemWatcherPathKey()
~QWindowsFileSystemWatcherEngineThread()
HandleForDirHash handleForDir
void directoryChanged(const QString &path, bool removed)
QList< Qt::HANDLE > handles
QHash< Qt::HANDLE, PathInfoHash > pathInfoForHandle
QWindowsFileSystemWatcherEngineThread()
QHash< QFileSystemWatcherPathKey, QWindowsFileSystemWatcherEngine::PathInfo > PathInfoHash
bool operator!=(const QFileInfo &fileInfo) const
QFile::Permissions permissions
PathInfo & operator=(const QFileInfo &fileInfo)
QStringList addPaths(const QStringList &paths, QStringList *files, QStringList *directories) override
~QWindowsFileSystemWatcherEngine()
void driveLockForRemovalFailed(const QString &)
QStringList removePaths(const QStringList &paths, QStringList *files, QStringList *directories) override
void driveRemoved(const QString &)
void addPath(const QString &path)
void driveLockForRemovalFailed(const QString &)
void driveLockForRemoval(const QString &)
void driveRemoved(const QString &)
~QWindowsRemovableDriveListener()
bool nativeEventFilter(const QByteArray &, void *messageIn, qintptr *) override
This method is called for every native event.
QWindowsRemovableDriveListener(QObject *parent=nullptr)
static Qt::HANDLE createChangeNotification(const QString &path, uint flags)
static Iterator findByHDevNotify(Iterator i1, Iterator i2, HDEVNOTIFY hdevnotify)
static void stopDeviceNotification(QWindowsRemovableDriveListener::RemovableDriveEntry &e)
static QString pathFromEntry(const QWindowsRemovableDriveListener::RemovableDriveEntry &re)
size_t qHash(const QFileSystemWatcherPathKey &key, size_t seed=0)
Q_DECLARE_TYPEINFO(QFileSystemWatcherPathKey, Q_RELOCATABLE_TYPE)