From b1cd493ba7cee4ac76939b4a960a9c134340e1a5 Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Tue, 25 Jun 2019 17:56:16 +0800 Subject: fix issues Change-Id: Ie02562936ebb9a2eacadbf40ca4326b22825c304 --- src/qlibhomescreen.cpp | 2 +- src/qlibhomescreen.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/qlibhomescreen.cpp b/src/qlibhomescreen.cpp index 095c4a7..63dc692 100644 --- a/src/qlibhomescreen.cpp +++ b/src/qlibhomescreen.cpp @@ -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)); } /** diff --git a/src/qlibhomescreen.h b/src/qlibhomescreen.h index 876ce38..85f6d09 100644 --- a/src/qlibhomescreen.h +++ b/src/qlibhomescreen.h @@ -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; -- cgit 1.2.3-korg