| 20 | // ---------------------------------------------------------------------------------------------------------------------------- |
| 21 | |
| 22 | AsyncRouter::RouterDelegateProxy::RouterDelegateProxy(ReadyCallbackOwnership const & onReady, |
| 23 | NeedMoreMapsCallback const & onNeedMoreMaps, |
| 24 | RemoveRouteCallback const & onRemoveRoute, |
| 25 | PointCheckCallback const & onPointCheck, |
| 26 | ProgressCallback const & onProgress, uint32_t timeoutSec) |
| 27 | : m_onReadyOwnership(onReady) |
| 28 | , m_onNeedMoreMaps(onNeedMoreMaps) |
| 29 | , m_onRemoveRoute(onRemoveRoute) |
| 30 | , m_onPointCheck(onPointCheck) |
| 31 | , m_onProgress(onProgress) |
| 32 | { |
| 33 | m_delegate.Reset(); |
| 34 | m_delegate.SetPointCheckCallback(std::bind(&RouterDelegateProxy::OnPointCheck, this, std::placeholders::_1)); |
| 35 | m_delegate.SetProgressCallback(std::bind(&RouterDelegateProxy::OnProgress, this, std::placeholders::_1)); |
| 36 | m_delegate.SetTimeout(timeoutSec); |
| 37 | } |
| 38 | |
| 39 | void AsyncRouter::RouterDelegateProxy::OnReady(std::shared_ptr<Route> route, RouterResultCode resultCode) |
| 40 | { |
nothing calls this directly
no test coverage detected