Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfilesystemwatcher.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QFILESYSTEMWATCHER_H
5#define QFILESYSTEMWATCHER_H
6
7#include <QtCore/qobject.h>
8
9QT_REQUIRE_CONFIG(filesystemwatcher);
10
12
13
15
16class Q_CORE_EXPORT QFileSystemWatcher : public QObject
17{
19 Q_DECLARE_PRIVATE(QFileSystemWatcher)
20
21public:
25
26 bool addPath(const QString &file);
27 QStringList addPaths(const QStringList &files);
28 bool removePath(const QString &file);
29 QStringList removePaths(const QStringList &files);
30
31 QStringList files() const;
32 QStringList directories() const;
33
35 void fileChanged(const QString &path, QPrivateSignal);
36 void directoryChanged(const QString &path, QPrivateSignal);
37
38private:
39 Q_PRIVATE_SLOT(d_func(), void _q_fileChanged(const QString &path, bool removed))
40 Q_PRIVATE_SLOT(d_func(), void _q_directoryChanged(const QString &path, bool removed))
41};
42
44
45#endif // QFILESYSTEMWATCHER_H
void fileChanged(const QString &path, QPrivateSignal)
This signal is emitted when the file at the specified path is modified, renamed or removed from disk.
void directoryChanged(const QString &path, QPrivateSignal)
This signal is emitted when the directory at a specified path is modified (e.g., when a file is added...
\inmodule QtCore
Definition qobject.h:90
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
GLsizei const GLuint * paths
GLsizei const GLchar *const * path
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_PRIVATE_SLOT(d, signature)
#define Q_SIGNALS
QFile file
[0]
QStringList files
[8]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent