diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-07-24 12:09:40 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-07-24 12:09:40 -0400 |
commit | 1f875de1d513c733550401ee40fa289fb2acb57e (patch) | |
tree | 9e6764cd4de63021285435e956f260b295cdbd7b /app/dbus_server_navigationcore.h | |
parent | 33258140525123d6a38900811c2df3e14f4e8337 (diff) |
Initial import from github
Import from http://github.com/YoshitoMomiyama/aglqtnavigation.git as
of commit a6930c2, with the following minor changes:
- .gitignore tweaked to remove itself
- .gitreview updated
Bug-AGL: SPEC-2667
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I91fed0f6349bf1952e41132058929b70a2b0fe5b
Diffstat (limited to 'app/dbus_server_navigationcore.h')
-rw-r--r-- | app/dbus_server_navigationcore.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app/dbus_server_navigationcore.h b/app/dbus_server_navigationcore.h new file mode 100644 index 0000000..3f62dbb --- /dev/null +++ b/app/dbus_server_navigationcore.h @@ -0,0 +1,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 + |