diff options
| author | Ismael Asensio <[email protected]> | 2020-06-22 12:33:29 +0000 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2020-06-22 12:33:29 +0000 |
| commit | f57ee4b64d924fca85c6ce0be659cd6235f959a9 (patch) | |
| tree | ab1c4e3141c473811311b995fd93b8e50284ddbd /src/search/dolphinquery.h | |
| parent | aea6128fe66171a411172089dcba85c90b89953f (diff) | |
Expand DolphinQuery to support different Url schemes
Diffstat (limited to 'src/search/dolphinquery.h')
| -rw-r--r-- | src/search/dolphinquery.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/search/dolphinquery.h b/src/search/dolphinquery.h index 544f246bc..5032621a9 100644 --- a/src/search/dolphinquery.h +++ b/src/search/dolphinquery.h @@ -32,9 +32,10 @@ class DolphinQuery { public: - /** Calls Baloo::Query::fromSearchUrl() with the given @p searchUrl - * and parses the result to extract its separate components */ - static DolphinQuery fromBalooSearchUrl(const QUrl& searchUrl); + /** Parses the components of @p searchUrl for the supported schemes */ + static DolphinQuery fromSearchUrl(const QUrl& searchUrl); + /** Checks whether the DolphinQuery supports the given @p urlScheme */ + static bool supportsScheme(const QString& urlScheme); /** @return the \a searchUrl passed to Baloo::Query::fromSearchUrl() */ QUrl searchUrl() const; @@ -54,6 +55,11 @@ public: bool hasFileName() const; private: + /** Calls Baloo::Query::fromSearchUrl() on the current searchUrl + * and parses the result to extract its separate components */ + void parseBalooQuery(); + +private: QUrl m_searchUrl; QString m_searchText; QString m_fileType; |
