Additional parameter to WindowManager at application startup 29/9829/2 4.99.1 4.99.2 4.99.3 5.99.1 eel/4.99.1 eel/4.99.2 eel/4.99.3 eel_4.99.1 eel_4.99.2 eel_4.99.3 flounder/5.99.1 flounder_5.99.1
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Tue, 27 Jun 2017 09:08:00 +0000 (18:08 +0900)
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Thu, 29 Jun 2017 05:01:09 +0000 (05:01 +0000)
HomeScreen used to pass numeric id to WindowManager at application
startup. This change add 1 more parameter (string id).
This is necessary for WindowManager to allow some applications
to run background, related to
  https://gerrit.automotivelinux.org/gerrit/#/c/9827/

Bug-AGL: SPEC-395

Change-Id: I90dec40fe0afd7634389b3430349259cc3616005
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
homescreen/qml/Home.qml
homescreen/qml/ShortcutArea.qml
homescreen/src/layouthandler.cpp
homescreen/src/layouthandler.h
interfaces/windowmanager.xml

index a312670..de8b9bb 100644 (file)
@@ -60,7 +60,7 @@ Item {
 
                         applicationArea.visible = true
                         appLauncherAreaLauncher.visible = false
 
                         applicationArea.visible = true
                         appLauncherAreaLauncher.visible = false
-                        layoutHandler.showAppLayer(pid)
+                        layoutHandler.showAppLayer(applicationModel.id(loc.index),  pid)
                     }
                     else {
                         console.warn("app cannot be launched!")
                     }
                     else {
                         console.warn("app cannot be launched!")
index 14c7b6b..9be3fd0 100644 (file)
@@ -69,7 +69,7 @@ Item {
                             applicationArea.visible = true
                             appLauncherAreaLauncher.visible = false
                             layoutHandler.makeMeVisible(pid)
                             applicationArea.visible = true
                             appLauncherAreaLauncher.visible = false
                             layoutHandler.makeMeVisible(pid)
-                            layoutHandler.showAppLayer(pid)
+                            layoutHandler.showAppLayer(model.application, pid)
                         }
                         else {
                             console.warn("app cannot be launched!")
                         }
                         else {
                             console.warn("app cannot be launched!")
index 1dfe4a5..6f5ba01 100644 (file)
@@ -86,9 +86,9 @@ LayoutHandler::~LayoutHandler()
     delete mp_dBusWindowManagerProxy;
 }
 
     delete mp_dBusWindowManagerProxy;
 }
 
-void LayoutHandler::showAppLayer(int pid)
+void LayoutHandler::showAppLayer(const QString &app_id, int pid)
 {
 {
-    mp_dBusWindowManagerProxy->showAppLayer(pid);
+    mp_dBusWindowManagerProxy->showAppLayer(app_id, pid);
 }
 
 void LayoutHandler::hideAppLayer()
 }
 
 void LayoutHandler::hideAppLayer()
index c82bfda..007f1ad 100644 (file)
@@ -31,7 +31,7 @@ public:
 signals:
 
 public slots:
 signals:
 
 public slots:
-    void showAppLayer(int pid);
+    void showAppLayer(const QString &app_id, int pid);
     void hideAppLayer();
     void makeMeVisible(int pid);
 private:
     void hideAppLayer();
     void makeMeVisible(int pid);
 private:
index e3c6df3..f288b32 100644 (file)
                  Show layer for application .
                -->
                <method name="showAppLayer">
                  Show layer for application .
                -->
                <method name="showAppLayer">
+                       <arg name="name" type="s" direction="in"/>
                        <arg name="pid" type="i" direction="in"/>
                </method>
                <!--
                        <arg name="pid" type="i" direction="in"/>
                </method>
                <!--