Changeset View
Changeset View
Standalone View
Standalone View
src/file/filelistener.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | class FileListenerPrivate; | 27 | class FileListenerPrivate; | ||
28 | class LocalFileListing; | 28 | class LocalFileListing; | ||
29 | 29 | | |||
30 | class FileListener : public AbstractFileListener | 30 | class FileListener : public AbstractFileListener | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | Q_PROPERTY(QString rootPath | | |||
35 | READ rootPath | | |||
36 | WRITE setRootPath | | |||
37 | NOTIFY rootPathChanged) | | |||
38 | | ||||
39 | public: | 34 | public: | ||
40 | explicit FileListener(QObject *parent = nullptr); | 35 | explicit FileListener(QObject *parent = nullptr); | ||
41 | 36 | | |||
42 | ~FileListener() override; | 37 | ~FileListener() override; | ||
43 | 38 | | |||
44 | const LocalFileListing& localFileIndexer() const; | 39 | const LocalFileListing& localFileIndexer() const; | ||
45 | 40 | | |||
46 | QString rootPath() const; | | |||
47 | | ||||
48 | Q_SIGNALS: | | |||
49 | | ||||
50 | void rootPathChanged(); | | |||
51 | | ||||
52 | public Q_SLOTS: | | |||
53 | | ||||
54 | void setRootPath(const QString &rootPath); | | |||
55 | | ||||
56 | private: | 41 | private: | ||
57 | 42 | | |||
58 | std::unique_ptr<FileListenerPrivate> d; | 43 | std::unique_ptr<FileListenerPrivate> d; | ||
59 | 44 | | |||
60 | }; | 45 | }; | ||
61 | 46 | | |||
62 | #endif // FILELISTENER_H | 47 | #endif // FILELISTENER_H |