diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-08-20 19:49:12 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:02:08 +0300 |
commit | bd101de1a0a3448b490c555ec0733300b793ec3a (patch) | |
tree | 2c80052e23161d68f384169f12f8da1dea3df7dd /map/framework.hpp | |
parent | 4e4a256b35bb0feb0deab5bc495edac39d753b55 (diff) |
Last search queries save support.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r-- | map/framework.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/map/framework.hpp b/map/framework.hpp index 6a8f17ca80..e407066188 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -30,6 +30,7 @@ #include "indexer/data_header.hpp" #include "indexer/map_style.hpp" +#include "search/query_saver.hpp" #include "search/search_engine.hpp" #include "storage/storage.hpp" @@ -104,6 +105,7 @@ protected: StringsBundle m_stringsBundle; mutable unique_ptr<search::Engine> m_pSearchEngine; + search::QuerySaver m_searchQuerySaver; model::FeaturesFetcher m_model; ScalesProcessor m_scales; @@ -345,6 +347,9 @@ public: bool IsISActive() const { return !m_lastSearch.m_query.empty(); } void CancelInteractiveSearch(); + vector<string> const & GetLastSearchQueries() const { return m_searchQuerySaver.GetTopQueries(); } + void SaveSearchQuery(string const & query) { m_searchQuerySaver.SaveNewQuery(query); } + /// Calculate distance and direction to POI for the given position. /// @param[in] point POI's position; /// @param[in] lat, lon, north Current position and heading from north; |