Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qfilesystemwatcher_win.cpp File Reference

(8fe793fe4b43c84f5d158e0d62fdd92ea4b2d851)

#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.

Referenced by createChangeNotification().

Function Documentation

◆ createChangeNotification()

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

Definition at line 39 of file qfilesystemwatcher_win.cpp.

References DEBUG, Qt::hex(), Qt::showbase(), and QDir::toNativeSeparators().

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

◆ 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 QStringLiteral.

◆ stopDeviceNotification()

static void stopDeviceNotification ( QWindowsRemovableDriveListener::RemovableDriveEntry & e)
static

Definition at line 100 of file qfilesystemwatcher_win.cpp.

References QWindowsRemovableDriveListener::RemovableDriveEntry::devNotify.

Referenced by QWindowsRemovableDriveListener::~QWindowsRemovableDriveListener().

+ Here is the caller graph for this function: