aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-06-27 18:08:00 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-06-29 05:00:22 +0000
commitb9889b160ecc43dcde07fe9d8a96373196c539ab (patch)
tree15a56f37e341211e303cd4975a8fd7a2da6d4366
parentce92baf2335146b44dd1f56bcac4b1586752bcc3 (diff)
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>
-rw-r--r--homescreen/qml/Home.qml2
-rw-r--r--homescreen/qml/ShortcutArea.qml2
-rw-r--r--homescreen/src/layouthandler.cpp4
-rw-r--r--homescreen/src/layouthandler.h2
-rw-r--r--interfaces/windowmanager.xml1
5 files changed, 6 insertions, 5 deletions
diff --git a/homescreen/qml/Home.qml b/homescreen/qml/Home.qml
index a312670..de8b9bb 100644
--- a/homescreen/qml/Home.qml
+++ b/homescreen/qml/Home.qml
@@ -60,7 +60,7 @@ Item {
applicationArea.visible = true
appLauncherAreaLauncher.visible = false
- layoutHandler.showAppLayer(pid)
+ layoutHandler.showAppLayer(applicationModel.id(loc.index), pid)
}
else {
console.warn("app cannot be launched!")
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml
index 14c7b6b..9be3fd0 100644
--- a/homescreen/qml/ShortcutArea.qml
+++ b/homescreen/qml/ShortcutArea.qml
@@ -69,7 +69,7 @@ Item {
applicationArea.visible = true
appLauncherAreaLauncher.visible = false
layoutHandler.makeMeVisible(pid)
- layoutHandler.showAppLayer(pid)
+ layoutHandler.showAppLayer(model.application, pid)
}
else {
console.warn("app cannot be launched!")
diff --git a/homescreen/src/layouthandler.cpp b/homescreen/src/layouthandler.cpp
index 1dfe4a5..6f5ba01 100644
--- a/homescreen/src/layouthandler.cpp
+++ b/homescreen/src/layouthandler.cpp
@@ -86,9 +86,9 @@ LayoutHandler::~LayoutHandler()
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()
diff --git a/homescreen/src/layouthandler.h b/homescreen/src/layouthandler.h
index c82bfda..007f1ad 100644
--- a/homescreen/src/layouthandler.h
+++ b/homescreen/src/layouthandler.h
@@ -31,7 +31,7 @@ public:
signals:
public slots:
- void showAppLayer(int pid);
+ void showAppLayer(const QString &app_id, int pid);
void hideAppLayer();
void makeMeVisible(int pid);
private:
diff --git a/interfaces/windowmanager.xml b/interfaces/windowmanager.xml
index e3c6df3..f288b32 100644
--- a/interfaces/windowmanager.xml
+++ b/interfaces/windowmanager.xml
@@ -191,6 +191,7 @@
Show layer for application .
-->
<method name="showAppLayer">
+ <arg name="name" type="s" direction="in"/>
<arg name="pid" type="i" direction="in"/>
</method>
<!--