| 54 | } |
| 55 | |
| 56 | RoutingSession::RoutingSession() |
| 57 | : m_router(nullptr) |
| 58 | , m_route(std::make_shared<Route>(std::string{} /* router */, 0 /* route id */)) |
| 59 | , m_state(SessionState::NoValidRoute) |
| 60 | , m_isFollowing(false) |
| 61 | , m_speedCameraManager(m_turnNotificationsMgr) |
| 62 | , m_routingSettings(GetRoutingSettings(VehicleType::Car)) |
| 63 | , m_passedDistanceOnRouteMeters(0.0) |
| 64 | , m_lastCompletionPercent(0.0) |
| 65 | { |
| 66 | // To call |m_changeSessionStateCallback| on |m_state| initialization. |
| 67 | SetState(SessionState::NoValidRoute); |
| 68 | m_speedCameraManager.SetRoute(m_route); |
| 69 | } |
| 70 | |
| 71 | void RoutingSession::Init(PointCheckCallback const & pointCheckCallback) |
| 72 | { |
no test coverage detected