Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-03 10:16:27

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QFILESYSTEMWATCHER_H
0006 #define QFILESYSTEMWATCHER_H
0007 
0008 #include <QtCore/qobject.h>
0009 
0010 QT_REQUIRE_CONFIG(filesystemwatcher);
0011 
0012 QT_BEGIN_NAMESPACE
0013 
0014 
0015 class QFileSystemWatcherPrivate;
0016 
0017 class Q_CORE_EXPORT QFileSystemWatcher : public QObject
0018 {
0019     Q_OBJECT
0020     Q_DECLARE_PRIVATE(QFileSystemWatcher)
0021 
0022 public:
0023     QFileSystemWatcher(QObject *parent = nullptr);
0024     QFileSystemWatcher(const QStringList &paths, QObject *parent = nullptr);
0025     ~QFileSystemWatcher();
0026 
0027     bool addPath(const QString &file);
0028     QStringList addPaths(const QStringList &files);
0029     bool removePath(const QString &file);
0030     QStringList removePaths(const QStringList &files);
0031 
0032     QStringList files() const;
0033     QStringList directories() const;
0034 
0035 Q_SIGNALS:
0036     void fileChanged(const QString &path, QPrivateSignal);
0037     void directoryChanged(const QString &path, QPrivateSignal);
0038 };
0039 
0040 QT_END_NAMESPACE
0041 
0042 #endif // QFILESYSTEMWATCHER_H