Use Event_ShowWindow instead of Event_TapShortcut 07/18707/10
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 12 Dec 2018 02:41:10 +0000 (10:41 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 19 Dec 2018 08:33:01 +0000 (16:33 +0800)
The interface of homescreen service will be changed then,
use Event_ShowWindow instead of Event_TapShortcut.
Related changes:
  agl-service-homescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17929/
  libhomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17931/
  libqthomescreen: https://gerrit.automotivelinux.org/gerrit/#/c/17933/

BUG-AGL: SPEC-1931

Change-Id: If2296c46a60920143050cb74cd3be1840e9ed494
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
app/main.cpp

index 53ce4d5..7bc4e2f 100644 (file)
@@ -84,9 +84,9 @@ int main(int argc, char *argv[])
 
         // HomeScreen
         hs->init(port, token.c_str());
-        // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager
-        hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [qwm, &graphic_role](json_object *object){
-            qDebug("Surface %s got tapShortcut\n", graphic_role.toStdString().c_str());
+        // Set the event handler for Event_ShowWindow which will activate the surface for windowmanager
+        hs->set_event_handler(LibHomeScreen::Event_ShowWindow, [qwm, &graphic_role](json_object *object){
+            qDebug("Surface %s got showWindow\n", graphic_role.toStdString().c_str());
             qwm->activateWindow(graphic_role);
         });