summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp
index 798e621..f45df99 100644
--- a/app/main.cpp
+++ b/app/main.cpp
@@ -139,6 +139,21 @@ int main(int argc, char *argv[])
QQuickWindow *window = qobject_cast<QQuickWindow *>(root);
qhsHandler->setQuickWindow(window);
+ /*Homescreen notify navigation start*/
+ qhsHandler->set_event_handler(QLibHomeScreen::Event_StartNavigation, [root](json_object *object){
+// QMetaObject::invokeMethod(root,"vui_startguidance");
+
+ });
+ qhsHandler->set_event_handler(QLibHomeScreen::Event_StopNavigation, [root](json_object *object){
+ QMetaObject::invokeMethod(root,"vui_cancelguidance");
+
+ });
+ qhsHandler->set_event_handler(QLibHomeScreen::Event_CancelDestination, [root](json_object *object){
+ QMetaObject::invokeMethod(root,"vui_cancelguidance");
+
+ });
+ /*Homescreen notify navigation end*/
+
#else // for only libwindowmanager
QGuiApplication app(argc, argv);
app.setApplicationName("navigation");