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
diff options
context:
space:
mode:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-07-28 18:11:24 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:39 +0300
commit1f36eb605532726e00ee75f582bb20df40b8b9b3 (patch)
treed9edf04d0e3f2921c45de55b9339e3840b055bab /map/framework.hpp
parent6a6cb45df2c342d821e704cc568f3aa3c4752473 (diff)
Async router tests.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r--map/framework.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/map/framework.hpp b/map/framework.hpp
index 88fe1e7d74..2b4249a999 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -554,6 +554,10 @@ public:
BookmarkManager & GetBookmarkManager() { return m_bmManager; }
public:
+ using TRouteBuildingCallback =
+ function<void(routing::IRouter::ResultCode, vector<storage::TIndex> const &,
+ vector<storage::TIndex> const &)>;
+ using TRouteProgressCallback = function<void(float)>;
/// @name Routing mode
//@{
void SetRouter(routing::RouterType type);
@@ -562,9 +566,6 @@ public:
bool IsRouteBuilt() const { return m_routingSession.IsBuilt(); }
bool IsRouteBuilding() const { return m_routingSession.IsBuilding(); }
void BuildRoute(m2::PointD const & destination, uint32_t timeoutSec);
- 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) { m_routingCallback = buildingCallback; }
void SetRouteProgressListener(TRouteProgressCallback const & progressCallback) { m_progressCallback = progressCallback; }
void FollowRoute() { GetLocationState()->StartRouteFollow(); }