diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-08-30 11:40:23 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-08-30 11:42:40 -0400 |
commit | f14ecdd52975ae365af5ed32648bf55dddacb8d9 (patch) | |
tree | e33d2af8d2e129b372caf34afac37366b641553a /include/genivi/navicore.h | |
parent | dd61aa309b3a082488c9d3c383c1601fd3efbc2a (diff) |
Initial check in
Initial check in of contents of the original repository:
git://github.com/AGLExport/agl-service-navigation
as of commit 1f1ffc92fcc882aa5e885badbc91a3384f5d77b1.
Bug-AGL: SPEC-2787
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I02d008ee73cdfd88f1e7587ee57101187b9c4d6d
Diffstat (limited to 'include/genivi/navicore.h')
-rw-r--r-- | include/genivi/navicore.h | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/include/genivi/navicore.h b/include/genivi/navicore.h new file mode 100644 index 0000000..a80bc1f --- /dev/null +++ b/include/genivi/navicore.h @@ -0,0 +1,140 @@ +// Copyright 2017 AISIN AW CO.,LTD + +#ifndef NAVICORE_H +#define NAVICORE_H + +#include <dbus-c++-1/dbus-c++/dbus.h> +#include "genivi-navigationcore-proxy.h" +#include <stdio.h> + +class Navicore : + public org::genivi::navigationcore::Session_proxy, + public org::genivi::navigationcore::Routing_proxy, + public org::genivi::navigationcore::MapMatchedPosition_proxy, + public org::genivi::navigationcore::Guidance_proxy, + public DBus::IntrospectableProxy, + public DBus::ObjectProxy +{ +public: + Navicore(DBus::Connection &connection, const char *path, const char *name) + : DBus::ObjectProxy(connection, path, name) + { + }; + + // Session + void SessionDeleted(const uint32_t& sessionHandle) + { + printf("NavicoreSession - Session %d deleted\n",sessionHandle); + }; + + // Routing + void RouteDeleted(const uint32_t& routeHandle) + { + // TODO + }; + + void RouteCalculationCancelled(const uint32_t& routeHandle) + { + // TODO + }; + + void RouteCalculationSuccessful(const uint32_t& routeHandle, const std::map< int32_t, int32_t >& unfullfilledPreferences) + { + // TODO + }; + + void RouteCalculationFailed(const uint32_t& routeHandle, const int32_t& errorCode, const std::map< int32_t, int32_t >& unfullfilledPreferences) + { + // TODO + }; + + void RouteCalculationProgressUpdate(const uint32_t& routeHandle, const int32_t& status, const uint8_t& percentage) + { + // TODO + }; + + void AlternativeRoutesAvailable(const std::vector< uint32_t >& routeHandlesList) + { + // TODO + }; + + // MapMatchedPosition + void SimulationStatusChanged(const int32_t& simulationStatus) + { + // TODO + }; + + void SimulationSpeedChanged(const uint8_t& speedFactor) + { + // TODO + }; + + void PositionUpdate(const std::vector< int32_t >& changedValues) + { + // TODO + }; + + void AddressUpdate(const std::vector< int32_t >& changedValues) + { + // TODO + }; + + void PositionOnSegmentUpdate(const std::vector< int32_t >& changedValues) + { + // TODO + }; + + void StatusUpdate(const std::vector< int32_t >& changedValues) + { + // TODO + }; + + void OffRoadPositionChanged(const uint32_t& distance, const int32_t& direction) + { + // TODO + }; + + // Guidance + void VehicleLeftTheRoadNetwork() + { + // TODO + }; + + void GuidanceStatusChanged(const int32_t& guidanceStatus, const uint32_t& routeHandle) + { + // TODO + }; + + void WaypointReached(const bool& isDestination) + { + // TODO + }; + + void ManeuverChanged(const int32_t& maneuver) + { + // TODO + }; + + void PositionOnRouteChanged(const uint32_t& offsetOnRoute) + { + // TODO + }; + + void VehicleLeftTheRoute() + { + // TODO + }; + + void PositionToRouteChanged(const uint32_t& distance, const int32_t& direction) + { + // TODO + }; + + void ActiveRouteChanged(const int32_t& changeCause) + { + // TODO + }; + +}; + +#endif |