Changeset View
Changeset View
Standalone View
Standalone View
src/file/localfilelisting.h
Show All 27 Lines | |||||
28 | 28 | | |||
29 | class LocalFileListingPrivate; | 29 | class LocalFileListingPrivate; | ||
30 | 30 | | |||
31 | class ELISALIB_EXPORT LocalFileListing : public AbstractFileListing | 31 | class ELISALIB_EXPORT LocalFileListing : public AbstractFileListing | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | Q_PROPERTY(QString rootPath | | |||
37 | READ rootPath | | |||
38 | WRITE setRootPath | | |||
39 | NOTIFY rootPathChanged) | | |||
40 | | ||||
41 | public: | 36 | public: | ||
42 | 37 | | |||
43 | explicit LocalFileListing(QObject *parent = nullptr); | 38 | explicit LocalFileListing(QObject *parent = nullptr); | ||
44 | 39 | | |||
45 | ~LocalFileListing() override; | 40 | ~LocalFileListing() override; | ||
46 | 41 | | |||
47 | QString rootPath() const; | | |||
48 | | ||||
49 | Q_SIGNALS: | | |||
50 | | ||||
51 | void rootPathChanged(); | | |||
52 | | ||||
53 | public Q_SLOTS: | | |||
54 | | ||||
55 | void setRootPath(const QString &rootPath); | | |||
56 | | ||||
57 | private: | 42 | private: | ||
58 | 43 | | |||
59 | void executeInit(QHash<QUrl, QDateTime> allFiles) override; | 44 | void executeInit(QHash<QUrl, QDateTime> allFiles) override; | ||
60 | 45 | | |||
61 | void triggerRefreshOfContent() override; | 46 | void triggerRefreshOfContent() override; | ||
62 | 47 | | |||
63 | std::unique_ptr<LocalFileListingPrivate> d; | 48 | std::unique_ptr<LocalFileListingPrivate> d; | ||
64 | 49 | | |||
65 | }; | 50 | }; | ||
66 | 51 | | |||
67 | 52 | | |||
68 | 53 | | |||
69 | #endif // LOCALFILELISTING_H | 54 | #endif // LOCALFILELISTING_H |