diff options
author | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-30 12:51:13 +0800 |
---|---|---|
committer | wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com> | 2019-05-30 12:51:13 +0800 |
commit | f3b7df310cbceb3bcca40a6969e74e71c7b8937f (patch) | |
tree | 0510af833066ccf7129fcd5dcc9b8816211284eb | |
parent | b5545a0b8c810017af763a5df557372893b6f603 (diff) |
add showWindow
Change-Id: If700e01ad19932d7aa0278fa535f524cf0620ee6
-rw-r--r-- | homescreen/src/homescreenhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp index 251dbe9..7621cf6 100644 --- a/homescreen/src/homescreenhandler.cpp +++ b/homescreen/src/homescreenhandler.cpp @@ -70,6 +70,15 @@ void HomescreenHandler::init(const char* role, int port, const char *token) json_object_object_get(object, "display_message")); HMI_DEBUG("HomeScreen","set_event_handler Event_OnScreenMessage display_message = %s", display_message); }); + + mp_qhs->set_event_handler(QLibHomeScreen::Event_ShowWindow,[this](json_object *object){ + HMI_DEBUG("HomeScreen","Surface HomeScreen got Event_ShowWindow\n"); + static bool first_start = true; + if (first_start) { + first_start = false; + this->mp_wm->activateWindow(this->m_role.c_str(), "fullscreen"); + } + }); } void HomescreenHandler::setWMHandler(WMHandler& h) { |