2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef _LOCATION_HERE_ROUTE_H_
18 #define _LOCATION_HERE_ROUTE_H_
21 #include "here_manager.h"
24 #include <maps_route_plugin.h>
25 #include <maps_route_segment_plugin.h>
26 #include <maps_route_maneuver_plugin.h>
29 #include <routes/GeoRouteQuery.h>
30 #include <routes/GeoRouteQueryListener.h>
31 #include <routes/GeoRouteReply.h>
33 HERE_PLUGIN_BEGIN_NAMESPACE
35 using namespace HERE_MAPS_NAMESPACE_PREFIX;
39 , public GeoRouteQueryListener
43 *This is the default constructor for Route.
46 HereRoute(void *pCbFunc, void *pUserData, int nReqId);
49 *This is the default destructor for Route.
54 here_error_e PrepareQuery();
55 here_error_e PrepareWaypoint(maps_coordinates_h hOrigin, maps_coordinates_h hDestination);
56 here_error_e PrepareWaypoint(const maps_coordinates_h* hWaypointList, int nWaypointNum);
57 here_error_e PreparePreference(maps_preference_h hPref);
59 here_error_e StartRoute(void);
61 virtual void OnRouteReply(const GeoRouteReply& Reply);
64 maps_error_e ProcessSegments(maps_route_h mapsRoute, const RouteSegmentList& hereSegmList);
65 maps_error_e ProcessManeuver(maps_route_segment_h mapsSegm, const ManeuverList& hereManeList);
67 GeoRouteQuery* m_pQuery;
70 HERE_PLUGIN_END_NAMESPACE
72 #endif //_LOCATION_HERE_ROUTE_H_