summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfilesystemwatcher.h
blob: 668bc143b202497508e63a3c3b354acde7d060a1 (plain)
1234567891011121314151617181920212223242526272829303132333435363738394041
// Copyright (C) 2016 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#ifndef QFILESYSTEMWATCHER_H#define QFILESYSTEMWATCHER_H#include <QtCore/qobject.h>QT_REQUIRE_CONFIG(filesystemwatcher); QT_BEGIN_NAMESPACE class QFileSystemWatcherPrivate;class Q_CORE_EXPORT QFileSystemWatcher :public QObject { Q_OBJECT Q_DECLARE_PRIVATE(QFileSystemWatcher)public:QFileSystemWatcher(QObject *parent =nullptr);QFileSystemWatcher(const QStringList &paths, QObject *parent =nullptr);~QFileSystemWatcher();booladdPath(const QString &file); QStringList addPaths(const QStringList &files);boolremovePath(const QString &file); QStringList removePaths(const QStringList &files); QStringList files()const; QStringList directories()const; Q_SIGNALS:voidfileChanged(const QString &path, QPrivateSignal);voiddirectoryChanged(const QString &path, QPrivateSignal);}; QT_END_NAMESPACE #endif// QFILESYSTEMWATCHER_H
close