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.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:
22 QFileSystemWatcher(QObject *parent = nullptr);
23 QFileSystemWatcher(const QStringList &paths, QObject *parent = nullptr);
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};
38
40
41#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:103
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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_SIGNALS
QFile file
[0]
QStringList files
[8]