Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtCore/qfilesystemwatcher.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 
0004 #ifndef QFILESYSTEMWATCHER_H
0005 #define QFILESYSTEMWATCHER_H
0006 
0007 #include <QtCore/qobject.h>
0008 
0009 QT_REQUIRE_CONFIG(filesystemwatcher);
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 
0014 class QFileSystemWatcherPrivate;
0015 
0016 class Q_CORE_EXPORT QFileSystemWatcher : public QObject
0017 {
0018     Q_OBJECT
0019     Q_DECLARE_PRIVATE(QFileSystemWatcher)
0020 
0021 public:
0022     QFileSystemWatcher(QObject *parent = nullptr);
0023     QFileSystemWatcher(const QStringList &paths, QObject *parent = nullptr);
0024     ~QFileSystemWatcher();
0025 
0026     bool addPath(const QString &file);
0027     QStringList addPaths(const QStringList &files);
0028     bool removePath(const QString &file);
0029     QStringList removePaths(const QStringList &files);
0030 
0031     QStringList files() const;
0032     QStringList directories() const;
0033 
0034 Q_SIGNALS:
0035     void fileChanged(const QString &path, QPrivateSignal);
0036     void directoryChanged(const QString &path, QPrivateSignal);
0037 
0038 private:
0039     Q_PRIVATE_SLOT(d_func(), void _q_fileChanged(const QString &path, bool removed))
0040     Q_PRIVATE_SLOT(d_func(), void _q_directoryChanged(const QString &path, bool removed))
0041 };
0042 
0043 QT_END_NAMESPACE
0044 
0045 #endif // QFILESYSTEMWATCHER_H