summaryrefslogtreecommitdiffstats
path: root/app/navigation_client.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-12 17:41:48 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-13 07:04:19 +0000
commitc5313bfa18ab0b0b8997c72473458e741857bc8a (patch)
tree5b5c017a5287fcd4874ddf82255e536bf3621527 /app/navigation_client.cpp
parentdda6e9cf5827ca166194c8baec93e975e02c35e0 (diff)
tbtnavi: read missing qml signals/slotsicefish_8.99.1icefish/8.99.18.99.1
Connect libqtappfw provided events to qml via signals/slots Bug-AGL: SPEC-2880 Change-Id: Ib915195caf34ac94575bebd03bdd86fd848c36d6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/navigation_client.cpp')
-rw-r--r--app/navigation_client.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/navigation_client.cpp b/app/navigation_client.cpp
index f07f6c7..426bbeb 100644
--- a/app/navigation_client.cpp
+++ b/app/navigation_client.cpp
@@ -5,6 +5,20 @@ navigation_client::navigation_client(Navigation *navigation, QObject *parent) :
{
QObject::connect(m_navigation, &Navigation::statusEvent, this, &navigation_client::statusEvent);
QObject::connect(m_navigation, &Navigation::positionEvent, this, &navigation_client::positionEvent);
+
+ // connect the signal to qml inside function(addRoutePointsQml -> do_addRoutePoint)
+ QObject::connect(this, SIGNAL(addRoutePointsQml(QVariant, QVariant, QVariant, QVariant)),
+ parent, SLOT(do_addRoutePoint(QVariant, QVariant, QVariant, QVariant)));
+
+ // connect the signal to qml inside function(positionQml -> do_setCoordinate)
+ QObject::connect(this, SIGNAL(positionQml(QVariant, QVariant,QVariant, QVariant)),
+ parent, SLOT(do_setCoordinate(QVariant, QVariant,QVariant, QVariant)));
+
+ // connect the signal to qml inside function(stopdemoQml -> do_stopnavidemo)
+ QObject::connect(this, SIGNAL(stopdemoQml()), parent, SLOT(do_stopnavidemo()));
+
+ // connect the signal to qml inside function(arrivedestQml -> do_arrivedest)
+ QObject::connect(this, SIGNAL(arrivedestQml()), parent, SLOT(do_arrivedest()));
}
navigation_client::~navigation_client(){}