summaryrefslogtreecommitdiffstats
path: root/app/navigation_client.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-10 23:46:39 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-21 15:53:57 -0800
commit029b583a9d5c615d941c42916d1750bee5c84eab (patch)
tree7a34d3d550eb970b8f9ee96aa80b7b7091c10408 /app/navigation_client.h
parentf679e8238131daa18a23efe232710730ba27ea67 (diff)
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/navigation_client.h')
-rw-r--r--app/navigation_client.h31
1 files changed, 31 insertions, 0 deletions
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 <navigation.h>
+#include <QtQml/QQmlApplicationEngine>
+
+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