Changeset View
Changeset View
Standalone View
Standalone View
src/contentlist/FilesystemContentLister.h
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef FILESYSTEMCONTENTLISTER_H | 22 | #ifndef FILESYSTEMCONTENTLISTER_H | ||
23 | #define FILESYSTEMCONTENTLISTER_H | 23 | #define FILESYSTEMCONTENTLISTER_H | ||
24 | 24 | | |||
25 | #include <QRunnable> | ||||
26 | | ||||
25 | #include "ContentListerBase.h" | 27 | #include "ContentListerBase.h" | ||
26 | 28 | | |||
27 | class FilesystemContentLister : public ContentListerBase | 29 | class FilesystemContentLister : public ContentListerBase | ||
28 | { | 30 | { | ||
29 | Q_OBJECT | 31 | Q_OBJECT | ||
30 | public: | 32 | public: | ||
31 | explicit FilesystemContentLister(QObject* parent = nullptr); | 33 | explicit FilesystemContentLister(QObject* parent = nullptr); | ||
32 | ~FilesystemContentLister() override; | 34 | ~FilesystemContentLister() override; | ||
33 | 35 | | |||
34 | void addLocation(QString path) override; | 36 | void startSearch(const QList<ContentQuery*>& queries) override; | ||
35 | void addMimetype(QString mimetype) override; | 37 | | ||
36 | void setSearchString(const QString& searchString) override; | | |||
37 | void setKnownFiles(QStringList knownFiles) override; | | |||
38 | void startSearch() override; | | |||
39 | private: | 38 | private: | ||
39 | void queryFinished(QRunnable* runnable); | ||||
40 | | ||||
40 | class Private; | 41 | class Private; | ||
41 | Private* d; | 42 | Private* d; | ||
42 | }; | 43 | }; | ||
43 | 44 | | |||
44 | #endif//FILESYSTEMCONTENTLISTER_H | 45 | #endif//FILESYSTEMCONTENTLISTER_H |