Changeset View
Changeset View
Standalone View
Standalone View
src/contentlist/BalooContentLister.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | class BalooContentLister : public ContentListerBase | 31 | class BalooContentLister : public ContentListerBase | ||
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 | /** | ||||
39 | * @returns whether Baloo is enabled. If baloo is not available on the system, we cannot use it. | ||||
40 | */ | ||||
38 | bool balooEnabled() const; | 41 | bool balooEnabled() const; | ||
39 | 42 | | |||
43 | /** | ||||
44 | * \brief Start a search. | ||||
45 | * @param queries List of ContentQueries that the search should be limited to. | ||||
46 | */ | ||||
40 | void startSearch(const QList<ContentQuery*>& queries) override; | 47 | void startSearch(const QList<ContentQuery*>& queries) override; | ||
41 | 48 | | |||
42 | private: | 49 | private: | ||
43 | class Private; | 50 | class Private; | ||
44 | Private* d; | 51 | Private* d; | ||
45 | 52 | | |||
46 | Q_SLOT void queryCompleted(Baloo::QueryRunnable* query); | 53 | Q_SLOT void queryCompleted(Baloo::QueryRunnable* query); | ||
47 | void queryResult(const ContentQuery* query, const QString& location, const QString& file); | 54 | void queryResult(const ContentQuery* query, const QString& location, const QString& file); | ||
48 | }; | 55 | }; | ||
49 | 56 | | |||
50 | #endif//BALOOCONTENTLISTER_H | 57 | #endif//BALOOCONTENTLISTER_H |