diff options
author | 2019-06-25 17:56:16 +0800 | |
---|---|---|
committer | 2019-06-25 17:56:16 +0800 | |
commit | b1cd493ba7cee4ac76939b4a960a9c134340e1a5 (patch) | |
tree | 0e0b88f2d654347f05af30e357d32646e4ef0935 | |
parent | cdbbe5cd0023736dc5e1385f4654616947e2f9e6 (diff) |
fix issuessandbox/wangzhiqiang/als2019
Change-Id: Ie02562936ebb9a2eacadbf40ca4326b22825c304
-rw-r--r-- | src/qlibhomescreen.cpp | 2 | ||||
-rw-r--r-- | 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<void(json_object *object)>; |