Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2015-07-30 13:51:24 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:53 +0300
commitd753d3448c63bcadcced3a807fe21bcd85dc515d (patch)
treef19f293d31ca8949cd9eb81001b0e03b5089ed3a /map
parent4fb687a3794a06b1d33b5d8766497fc7f4370846 (diff)
Changing in cpp part of turn notification programming interface and some changes in implementation.
Diffstat (limited to 'map')
-rw-r--r--map/framework.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/map/framework.hpp b/map/framework.hpp
index eac02803b8..09395ca77a 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -576,18 +576,20 @@ public:
void SetLastUsedRouter(routing::RouterType type);
/// Returns the most situable router engine type. Bases on distance and the last used router.
routing::RouterType GetBestRouter(m2::PointD const & startPoint, m2::PointD const & finalPoint) const;
- // @TODO The three methods below has to be called from jni.
+ // @TODO The six methods below has to be called from jni.
// Sound notifications for turn instructions.
inline void EnableTurnNotifications(bool enable) { m_routingSession.EnableTurnNotifications(enable); }
inline bool AreTurnNotificationsEnabled() const { return m_routingSession.AreTurnNotificationsEnabled(); }
- inline void SetTurnSoundNotificationsUnits(routing::turns::sound::LengthUnits const & units)
+ inline void SetTurnNotificationsUnits(routing::turns::sound::LengthUnits const & units)
{
- m_routingSession.SetTurnSoundNotificationsUnits(units);
+ m_routingSession.SetTurnNotificationsUnits(units);
}
- inline routing::turns::sound::LengthUnits GetTurnSoundNotificationsUnits() const
+ inline routing::turns::sound::LengthUnits GetTurnNotificationsUnits() const
{
- return m_routingSession.GetTurnSoundNotificationsUnits();
+ return m_routingSession.GetTurnNotificationsUnits();
}
+ void SetTurnNotificationsLocale(string const & locale) { m_routingSession.SetTurnNotificationsLocale(locale); }
+ string GetTurnNotificationsLocale() const { return m_routingSession.GetTurnNotificationsLocale(); }
private:
void SetRouterImpl(routing::RouterType type);