diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-07-27 17:50:10 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:37 +0300 |
commit | 89782be32afe692e7e6c26148b66219ffcd9ff5b (patch) | |
tree | a138b8cbe42389225d20889eeedf70ed4b40156a /map/framework.hpp | |
parent | e1668eeda0dcfd9286cb2dd70eac455b69a89665 (diff) |
Split routing callback setting to the two separate framework functions.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r-- | map/framework.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/framework.hpp b/map/framework.hpp index 48191cb773..88fe1e7d74 100644 --- a/map/framework.hpp +++ b/map/framework.hpp @@ -565,8 +565,8 @@ public: typedef function<void(routing::IRouter::ResultCode, vector<storage::TIndex> const &, vector<storage::TIndex> const &)> TRouteBuildingCallback; typedef function<void(float)> TRouteProgressCallback; - void SetRouteBuildingListener(TRouteBuildingCallback const & buildingCallback, - TRouteProgressCallback const & progressCallback); + void SetRouteBuildingListener(TRouteBuildingCallback const & buildingCallback) { m_routingCallback = buildingCallback; } + void SetRouteProgressListener(TRouteProgressCallback const & progressCallback) { m_progressCallback = progressCallback; } void FollowRoute() { GetLocationState()->StartRouteFollow(); } void CloseRouting(); void GetRouteFollowingInfo(location::FollowingInfo & info) { m_routingSession.GetRouteFollowingInfo(info); } |