fix issues sandbox/wangzhiqiang/als2019
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Tue, 25 Jun 2019 09:56:16 +0000 (17:56 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Tue, 25 Jun 2019 09:56:16 +0000 (17:56 +0800)
Change-Id: Ie02562936ebb9a2eacadbf40ca4326b22825c304

src/qlibhomescreen.cpp
src/qlibhomescreen.h

index 095c4a7..63dc692 100644 (file)
@@ -167,7 +167,7 @@ void QLibHomeScreen::set_event_handler(enum QEventType et, handler_fun f)
 {
     HMI_DEBUG("qlibhomescreen", "called.");
     LibHomeScreen::EventType hs_et = (LibHomeScreen::EventType)et;
-    return this->mp_hs->set_event_handler(hs_et, std::move(f));
+    this->mp_hs->set_event_handler(hs_et, std::move(f));
 }
 
 /**
index 876ce38..85f6d09 100644 (file)
@@ -44,7 +44,11 @@ public:
        Event_ShowInformation = LibHomeScreen::Event_ShowInformation,
        Event_AppListChanged = LibHomeScreen::Event_AppListChanged,
        Event_RegisterShortcut = LibHomeScreen::Event_RegisterShortcut,
-       Event_UpdateShortcut = LibHomeScreen::Event_UpdateShortcut
+       Event_UpdateShortcut = LibHomeScreen::Event_UpdateShortcut,
+       Event_SetDestination = LibHomeScreen::Event_SetDestination,
+       Event_CancelDestination = LibHomeScreen::Event_CancelDestination,
+       Event_StartNavigation = LibHomeScreen::Event_StartNavigation,
+       Event_StopNavigation = LibHomeScreen::Event_StopNavigation
     };
     using handler_fun = std::function<void(json_object *object)>;