From 8e070480a38956be76339cc6b81f3b0cb665cef5 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 10 Nov 2019 23:46:39 -0800 Subject: tbtnavi: add interface to agl-service-navigation Add interface to agl-service-navigation via libqtappfw to replace navicore DBus completely. Bug-AGL: SPEC-2880 Change-Id: Idf3afcdd3c7424b8adb91a9aaf14df662d7fe107 Signed-off-by: Matt Ranostay --- app/navigation_client.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/navigation_client.h (limited to 'app/navigation_client.h') diff --git a/app/navigation_client.h b/app/navigation_client.h new file mode 100644 index 0000000..cdd9396 --- /dev/null +++ b/app/navigation_client.h @@ -0,0 +1,31 @@ +#ifndef NAVIGATION_CLIENT_H +#define NAVIGATION_CLIENT_H + +#include +#include + +class navigation_client : public QObject { + Q_OBJECT + + Navigation *m_navigation; + +public: + navigation_client(Navigation *navigation, QObject *parent = nullptr); + ~navigation_client(); + +signals: + //notify add routepoints signal to qml + void addRoutePointsQml(QVariant, QVariant, QVariant, QVariant); + //notify current position signal to qml + void positionQml(QVariant, QVariant,QVariant, QVariant); + //notify stop demo signal to qml + void stopdemoQml(); + //notify arrive destination signal to qml + void arrivedestQml(); + +private slots: + + void statusEvent(QVariantMap data); + void positionEvent(QVariantMap data); +}; +#endif // NAVIGATION_CLIENT_H -- cgit 1.2.3-korg