Changeset View
Changeset View
Standalone View
Standalone View
src/search/dolphinquery.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 34 | public: | |||
---|---|---|---|---|---|
43 | /** @return the first of Baloo::Query::types(), or an empty string */ | 43 | /** @return the first of Baloo::Query::types(), or an empty string */ | ||
44 | QString type() const; | 44 | QString type() const; | ||
45 | /** @return a list of the search terms of the Baloo::Query that act as a filter, | 45 | /** @return a list of the search terms of the Baloo::Query that act as a filter, | ||
46 | * such as \"rating>= <i>value<i>\" or \"modified>= <i>date<i>\"*/ | 46 | * such as \"rating>= <i>value<i>\" or \"modified>= <i>date<i>\"*/ | ||
47 | QStringList searchTerms() const; | 47 | QStringList searchTerms() const; | ||
48 | /** @return Baloo::Query::includeFolder(), that is, the initial directory | 48 | /** @return Baloo::Query::includeFolder(), that is, the initial directory | ||
49 | * for the query or an empty string if its a global search" */ | 49 | * for the query or an empty string if its a global search" */ | ||
50 | QString includeFolder() const; | 50 | QString includeFolder() const; | ||
51 | /** @return whether the query includes search in file content */ | ||||
52 | bool isContentSearch() const; | ||||
51 | 53 | | |||
52 | private: | 54 | private: | ||
53 | QUrl m_searchUrl; | 55 | QUrl m_searchUrl; | ||
54 | QString m_searchText; | 56 | QString m_searchText; | ||
55 | QString m_fileType; | 57 | QString m_fileType; | ||
56 | QStringList m_searchTerms; | 58 | QStringList m_searchTerms; | ||
57 | QString m_includeFolder; | 59 | QString m_includeFolder; | ||
60 | bool m_hasFileName = false; | ||||
58 | }; | 61 | }; | ||
59 | 62 | | |||
60 | #endif //DOLPHINQUERY_H | 63 | #endif //DOLPHINQUERY_H |