diff options
author | jk7744.park <jk7744.park@samsung.com> | 2016-03-04 19:51:22 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2016-03-04 19:51:22 +0900 |
commit | 648a8bfa60cb93feb9941fde159f58ab5594b64d (patch) | |
tree | d03dc92608e07434124606ccc3dd6ba45984ab11 /src/here/here_route.cpp | |
parent | 30aa89fe44757936f60148344791cecbc8e745f4 (diff) | |
download | maps-plugin-here-accepted/tizen/2.4/mobile/20160307.015758.tar.gz maps-plugin-here-accepted/tizen/2.4/mobile/20160307.015758.tar.bz2 maps-plugin-here-accepted/tizen/2.4/mobile/20160307.015758.zip |
Tizen 2.4.0 rev3 SDK Public Releasesubmit/tizen_2.4/20160306.235714accepted/tizen/2.4/mobile/20160307.015758
Diffstat (limited to 'src/here/here_route.cpp')
-rwxr-xr-x | src/here/here_route.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/here/here_route.cpp b/src/here/here_route.cpp index 58cb5fe..aa1abfb 100755 --- a/src/here/here_route.cpp +++ b/src/here/here_route.cpp @@ -42,7 +42,7 @@ here_error_e HereRoute::PrepareQuery() return HERE_ERROR_PERMISSION_DENIED; GeoCoordinates origCoord, destCoord; - m_pQuery = new GeoRouteQuery(origCoord, destCoord); + m_pQuery = new (std::nothrow) GeoRouteQuery(origCoord, destCoord); if (!m_pQuery) return HERE_ERROR_OUT_OF_MEMORY; @@ -211,7 +211,7 @@ void HereRoute::OnRouteReply(const GeoRouteReply& Reply) if (nReplyNum == 0) { ((maps_service_search_route_cb)m_pCbFunc)(MAPS_ERROR_NOT_FOUND, m_nReqId, - 0, 1, NULL, m_pUserData); + 0, 0, NULL, m_pUserData); delete this; return; } @@ -305,6 +305,12 @@ void HereRoute::OnRouteReply(const GeoRouteReply& Reply) delete this; } +void HereRoute::OnRouteFailure(const GeoRouteReply& Reply) +{ + if (!m_bCanceled) + ((maps_service_search_route_cb)m_pCbFunc)((maps_error_e)GetErrorCode(Reply), m_nReqId, 0, 0, NULL, m_pUserData); + delete this; +} maps_error_e HereRoute::ProcessSegments(maps_route_h mapsRoute, const RouteSegmentList& hereSegmList) { |