Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfilesystemwatcher_win.cpp File Reference
#include "qfilesystemwatcher.h"
#include "qfilesystemwatcher_win_p.h"
#include <qdebug.h>
#include <qfileinfo.h>
#include <qstringlist.h>
#include <qset.h>
#include <qscopeguard.h>
#include <qdatetime.h>
#include <qdir.h>
#include <qtextstream.h>
#include <private/qlocking_p.h>
#include <qt_windows.h>
#include <qabstractnativeeventfilter.h>
#include <qcoreapplication.h>
#include <private/qeventdispatcher_win_p.h>
#include <private/qthread_p.h>
#include <dbt.h>
#include <algorithm>
#include <vector>
#include "qfilesystemwatcher_win.moc"
#include "moc_qfilesystemwatcher_win_p.cpp"
+ Include dependency graph for qfilesystemwatcher_win.cpp:

Go to the source code of this file.

Classes

class  QWindowsRemovableDriveListener
 
struct  QWindowsRemovableDriveListener::RemovableDriveEntry
 

Macros

#define DEBUG   if (false) qDebug
 

Functions

static Qt::HANDLE createChangeNotification (const QString &path, uint flags)
 
static void stopDeviceNotification (QWindowsRemovableDriveListener::RemovableDriveEntry &e)
 
template<class Iterator >
static Iterator findByHDevNotify (Iterator i1, Iterator i2, HDEVNOTIFY hdevnotify)
 
static QString pathFromEntry (const QWindowsRemovableDriveListener::RemovableDriveEntry &re)
 
static Q_DECL_COLD_FUNCTION QString msgFindNextFailed (const QWindowsFileSystemWatcherEngineThread::PathInfoHash &pathInfos)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   if (false) qDebug

Definition at line 36 of file qfilesystemwatcher_win.cpp.

Function Documentation

◆ createChangeNotification()

static Qt::HANDLE createChangeNotification ( const QString path,
uint  flags 
)
static

Definition at line 39 of file qfilesystemwatcher_win.cpp.

References QString::append(), DEBUG, QString::endsWith(), Qt::hex(), Qt::showbase(), QDir::toNativeSeparators(), and QString::utf16().

Referenced by QWindowsFileSystemWatcherEngine::addPaths().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findByHDevNotify()

template<class Iterator >
static Iterator findByHDevNotify ( Iterator  i1,
Iterator  i2,
HDEVNOTIFY  hdevnotify 
)
inlinestatic

Definition at line 107 of file qfilesystemwatcher_win.cpp.

References e.

◆ msgFindNextFailed()

static Q_DECL_COLD_FUNCTION QString msgFindNextFailed ( const QWindowsFileSystemWatcherEngineThread::PathInfoHash pathInfos)
static

Definition at line 589 of file qfilesystemwatcher_win.cpp.

References str, and QDir::toNativeSeparators().

Referenced by QWindowsFileSystemWatcherEngineThread::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pathFromEntry()

static QString pathFromEntry ( const QWindowsRemovableDriveListener::RemovableDriveEntry re)
static

Definition at line 118 of file qfilesystemwatcher_win.cpp.

References QWindowsRemovableDriveListener::RemovableDriveEntry::drive, QChar::fromLatin1(), and QStringLiteral.

+ Here is the call graph for this function:

◆ stopDeviceNotification()

static void stopDeviceNotification ( QWindowsRemovableDriveListener::RemovableDriveEntry e)
static

Definition at line 100 of file qfilesystemwatcher_win.cpp.

References e.

Referenced by QWindowsRemovableDriveListener::~QWindowsRemovableDriveListener().

+ Here is the caller graph for this function: