diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-31 17:48:17 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:10 +0300 |
commit | f8d2eb24e7ac104e805d5ef94bbe8129a48bc8df (patch) | |
tree | 943d5b778afa9d0c84f38c13ad6ce453ae1d9a97 /map/framework.hpp | |
parent | 3f50364b7ef9aabbe4d06aa68462d75ce34809b2 (diff) |
[search] Save search query with it's locale.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r-- | map/framework.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/map/framework.hpp b/map/framework.hpp index 91c5cc2e81..52b1bbcc21 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -331,6 +331,8 @@ private: void FillSearchResultsMarks(search::Results const & results); public: + using TSearchRequest = search::QuerySaver::TSearchRequest; + m2::RectD GetCurrentViewport() const; void UpdateUserViewportChanged(); @@ -348,8 +350,9 @@ public: bool IsISActive() const { return !m_lastSearch.m_query.empty(); } void CancelInteractiveSearch(); - list<string> const & GetLastSearchQueries() const { return m_searchQuerySaver.Get(); } - void SaveSearchQuery(string const & query) { m_searchQuerySaver.Add(query); } + list<TSearchRequest> const & GetLastSearchQueries() const { return m_searchQuerySaver.Get(); } + void SaveSearchQuery(TSearchRequest const & query) { m_searchQuerySaver.Add(query); } + void ClearSearchHistory() { m_searchQuerySaver.Clear(); } /// Calculate distance and direction to POI for the given position. /// @param[in] point POI's position; |