Changeset View
Changeset View
Standalone View
Standalone View
src/contentlist/BalooContentLister.h
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | explicit BalooContentLister(QObject* parent = nullptr); | 35 | explicit BalooContentLister(QObject* parent = nullptr); | ||
36 | ~BalooContentLister() override; | 36 | ~BalooContentLister() override; | ||
37 | 37 | | |||
38 | bool balooEnabled() const; | 38 | bool balooEnabled() const; | ||
39 | 39 | | |||
40 | void addLocation(QString path) override; | 40 | void startSearch(const QList<ContentQuery*>& queries) override; | ||
41 | void addMimetype(QString mimetype) override; | 41 | | ||
42 | void setSearchString(const QString& searchString) override; | | |||
43 | void setKnownFiles(QStringList knownFiles) override; | | |||
44 | void startSearch() override; | | |||
45 | private: | 42 | private: | ||
46 | class Private; | 43 | class Private; | ||
47 | Private* d; | 44 | Private* d; | ||
48 | 45 | | |||
49 | Q_SLOT void queryCompleted(Baloo::QueryRunnable* query); | 46 | Q_SLOT void queryCompleted(Baloo::QueryRunnable* query); | ||
50 | Q_SLOT void queryResult(Baloo::QueryRunnable* query, QString file); | 47 | void queryResult(const ContentQuery* query, const QString& location, const QString& file); | ||
51 | }; | 48 | }; | ||
52 | 49 | | |||
53 | #endif//BALOOCONTENTLISTER_H | 50 | #endif//BALOOCONTENTLISTER_H |