blob: 3f62dbbbf5c0a22b416fce6490ad22085a0b959e (
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
|
#ifndef DBUS_SERVER_NAVIGATIONCORE_H
#define DBUS_SERVER_NAVIGATIONCORE_H
#include <QtDBus/QDBusConnection>
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "org.genivi.navigationcore_adaptor.h"
#include "org.genivi.navigationcore_interface.h"
class dbus_server_navigationcore : public QObject
{
Q_OBJECT
QString m_pathName;
QString m_objName;
QString m_serverName;
QObject *m_object;
public:
dbus_server_navigationcore(QObject *parent = 0);
~dbus_server_navigationcore();
public slots:
// mapmatchedposition
qPosition GetPosition(const qValuesToReturn &valuesToReturn);
void PauseSimulation(uint sessionHandle);
void SetSimulationMode(uint sessionHandle, bool activate);
// routing
void CalculateRoute(uint sessionHandle, uint routeHandle);
void CancelRouteCalculation(uint sessionHandle, uint routeHandle);
uint CreateRoute(uint sessionHandle);
qRoutesList GetAllRoutes();
void SetWaypoints(uint sessionHandle, uint routeHandle, bool startFromCurrentPosition, qWaypointsList waypointsList);
// session
qSessionsList GetAllSessions();
signals:
void doPauseSimulation();
private:
void setupDBus();
void setupApi();
};
#endif // DBUS_SERVER_NAVIGATIONCORE_H
|