Debian Codegraph @

include/filesystem/dfilewatcher.h

raw
1 // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #ifndef DFILEWATCHER_H
6 #define DFILEWATCHER_H
7
8 #include "dbasefilewatcher.h"
9
10 DCORE_BEGIN_NAMESPACE
11
12 class DFileWatcherPrivate;
13 class LIBDTKCORESHARED_EXPORT DFileWatcher : public DBaseFileWatcher
14 {
15 Q_OBJECT
16
17 public:
18 explicit DFileWatcher(const QString &filePath, QObject *parent = 0);
19
20 private Q_SLOTS:
21 void onFileDeleted(const QString &path, const QString &name);
22 void onFileAttributeChanged(const QString &path, const QString &name);
23 void onFileMoved(const QString &fromPath, const QString &fromName,
24 const QString &toPath, const QString &toName);
25 void onFileCreated(const QString &path, const QString &name);
26 void onFileModified(const QString &path, const QString &name);
27 void onFileClosed(const QString &path, const QString &name);
28
29 private:
30 D_DECLARE_PRIVATE(DFileWatcher)
31 };
32
33 DCORE_END_NAMESPACE
34
35 #endif // DFILEWATCHER_H