forked from organicmaps/organicmaps
[omim] Added getter for RouteBuilding state.
This commit is contained in:
parent
8757421599
commit
8581f52929
2 changed files with 2 additions and 0 deletions
|
@ -566,6 +566,7 @@ public:
|
|||
//@{
|
||||
bool IsRoutingActive() const { return m_routingSession.IsActive(); }
|
||||
bool IsRouteBuilt() const { return m_routingSession.IsBuilt(); }
|
||||
bool IsRouteBuilding() const { return m_routingSession.IsBuilding(); }
|
||||
void BuildRoute(m2::PointD const & destination);
|
||||
typedef function<void (routing::IRouter::ResultCode, vector<storage::TIndex> const &)> TRouteBuildingCallback;
|
||||
void SetRouteBuildingListener(TRouteBuildingCallback const & callback) { m_routingCallback = callback; }
|
||||
|
|
|
@ -62,6 +62,7 @@ public:
|
|||
bool IsActive() const { return (m_state != RoutingNotActive); }
|
||||
bool IsNavigable() const { return (m_state == RouteNotStarted || m_state == OnRoute); }
|
||||
bool IsBuilt() const { return (IsNavigable() || m_state == RouteNeedRebuild || m_state == RouteFinished); }
|
||||
bool IsBuilding() const { return (m_state == RouteBuilding); }
|
||||
void Reset();
|
||||
|
||||
State OnLocationPositionChanged(m2::PointD const & position, location::GpsInfo const & info);
|
||||
|
|
Loading…
Add table
Reference in a new issue