4#ifndef QABSTRACTNATIVEEVENTFILTER_H
5#define QABSTRACTNATIVEEVENTFILTER_H
7#include <QtCore/qnamespace.h>
11class QAbstractNativeEventFilterPrivate;
16 QAbstractNativeEventFilter();
17 virtual ~QAbstractNativeEventFilter();
19 virtual bool nativeEventFilter(
const QByteArray &eventType,
void *message, qintptr *result) = 0;
22 Q_DISABLE_COPY(QAbstractNativeEventFilter)
23 QAbstractNativeEventFilterPrivate *d;
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)
QT_FORWARD_DECLARE_CLASS(QTextStream)
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)
QTextStream & operator>>(QTextStream &s, QTextStreamFunction f)
QTextStreamManipulator qSetPadChar(QChar ch)
QTextStreamManipulator qSetRealNumberPrecision(int precision)
#define QT_TEXT_STREAM_FINAL
QTextStreamManipulator qSetFieldWidth(int width)
QTextStream & operator<<(QTextStream &s, QTextStreamFunction f)