aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/homescreenhandler.h
diff options
context:
space:
mode:
authorArnaud Ferraris <arnaud.ferraris@collabora.com>2022-01-18 12:47:02 +0100
committerArnaud Ferraris <arnaud.ferraris@collabora.com>2022-01-20 17:25:38 +0100
commit20970d846906a070305d8e96cf0735bf7fd831b1 (patch)
tree2dc594f9436a6e57f4558af141075a7f920243e6 /homescreen/src/homescreenhandler.h
parent37ba3ff90d878a135e347508505657e3d56c5edd (diff)
homescreenhandler: keep track of active apps
When the current app window is closed, the current behavior depends on whether this action terminates the app: - if the app is terminated, then we switch back to the launcher - in the other case, we display the background, even if other apps are running In order to implement a better behavior, we should keep track of active apps and switch back to the previously active one when the current app window is closed. Bug-AGL: SPEC-4222 Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com> Change-Id: Idf1fe42886e95e2b37349b066204fde002d7c3b5
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r--homescreen/src/homescreenhandler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h
index d94740b..503221a 100644
--- a/homescreen/src/homescreenhandler.h
+++ b/homescreen/src/homescreenhandler.h
@@ -48,6 +48,8 @@ public:
static void onEv_static(const string& event, struct json_object* event_contents);
#endif
+ void addAppToStack(const QString& application_id);
+
signals:
void showNotification(QString application_id, QString icon_path, QString text);
void showInformation(QString info);
@@ -60,6 +62,7 @@ private:
ApplicationLauncher *mp_launcher;
Shell *aglShell;
org::automotivelinux::AppLaunch *applaunch_iface;
+ QStringList apps_stack;
};
#endif // HOMESCREENHANDLER_H