aboutsummaryrefslogtreecommitdiffstats
path: root/include/genivi/navicore.h
blob: a80bc1ff1aa359dbc5bbc1b96fcd8b0732ea8b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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