diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-08-11 17:17:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:01:11 +0300 |
commit | ea10728f856cd9bb157e8f9d99d31b447a710edc (patch) | |
tree | 531357a2553d7c899247cdfc8c38117a73a84cc1 /map | |
parent | 46aaa28d28af4c1097a37a0082b7f9374daa2e0f (diff) |
Splitting GetRouteFollowingInfo into two functions. One for TTS string generation and another one for getting route following information.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/map/framework.hpp b/map/framework.hpp index 1c7934a02b..e83347752e 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -575,7 +575,7 @@ public: void SetRouteProgressListener(TRouteProgressCallback const & progressCallback) { m_progressCallback = progressCallback; } void FollowRoute(); void CloseRouting(); - void GetRouteFollowingInfo(location::FollowingInfo & info) { m_routingSession.GetRouteFollowingInfo(info); } + void GetRouteFollowingInfo(location::FollowingInfo & info) const { m_routingSession.GetRouteFollowingInfo(info); } m2::PointD GetRouteEndPoint() const { return m_routingSession.GetEndPoint(); } void SetLastUsedRouter(routing::RouterType type); /// Returns the most situable router engine type. Bases on distance and the last used router. @@ -585,6 +585,8 @@ public: inline bool AreTurnNotificationsEnabled() const { return m_routingSession.AreTurnNotificationsEnabled(); } inline void SetTurnNotificationsLocale(string const & locale) { m_routingSession.SetTurnNotificationsLocale(locale); } inline string GetTurnNotificationsLocale() const { return m_routingSession.GetTurnNotificationsLocale(); } + inline void GenerateTurnSound(vector<string> & turnNotifications) + { return m_routingSession.GenerateTurnSound(turnNotifications); } private: void SetRouterImpl(routing::RouterType type); |