| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef INOTIFY_P_H |
| 6 | #define INOTIFY_P_H |
| 7 | |
| 8 | #include "inotify_impl.h" |
| 9 | |
| 10 | #include <QObject> |
| 11 | class Inotify; |
| 12 | class InotifyPrivate : public QObject |
| 13 | { |
| 14 | friend class Inotify; |
| 15 | Inotify *const q; |
| 16 | public: |
| 17 | InotifyPrivate(Inotify *q); |
| 18 | virtual ~InotifyPrivate(); |
| 19 | void addPath(const QString &path); |
| 20 | void removePath(const QString &path); |
| 21 | |
| 22 | private slots: |
| 23 | void doInotifyEvent(InotifyHook::Type type, const QString &path); |
| 24 | |
| 25 | private: |
| 26 | QList<QString> ignoreList; |
| 27 | InotifyHook* hook{nullptr}; |
| 28 | }; |
| 29 | #endif // INOTIFY_P_H |
| 30 |