From: wang_zhiqiang Date: Tue, 25 Jun 2019 09:56:16 +0000 (+0800) Subject: fix issues X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Flibqthomescreen.git;a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fwangzhiqiang%2Fals2019 fix issues Change-Id: Ie02562936ebb9a2eacadbf40ca4326b22825c304 --- 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;