aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/src/homescreenhandler.h
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-10-15 15:43:51 +0300
committerMarius Vlad <marius.vlad@collabora.com>2023-10-26 00:41:55 +0300
commit5d6e250cf1175ede73764514b3cd9359467ddcaf (patch)
treeb987927fc37c3e39d8114559485a10cc7d447231 /homescreen/src/homescreenhandler.h
parent36e2c9697e431414ae0263635f3ebf1f3c200723 (diff)
AglShellGrpcClient: Activate windows with gRPC
In order to use HomescreenHandler we need to have a way to pass it, so extend the callback mechanism to be able to pass other objects as well. HomescreenHandler is the one that handles, indirectly, the activation and that keeps track of the application status. We used in the direct wayland event handler to we're going to re-use it as well. Bug-AGL: SPEC-4912 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I6eae6a5c4e144f3024dfcad6e5e0a54a8fec78a6
Diffstat (limited to 'homescreen/src/homescreenhandler.h')
-rw-r--r--homescreen/src/homescreenhandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/homescreen/src/homescreenhandler.h b/homescreen/src/homescreenhandler.h
index d95963b..478d9fc 100644
--- a/homescreen/src/homescreenhandler.h
+++ b/homescreen/src/homescreenhandler.h
@@ -28,6 +28,8 @@ public:
void addAppToStack(const QString& application_id);
void activateApp(const QString& app_id);
void deactivateApp(const QString& app_id);
+ void setGrpcClient(GrpcClient *_client) { m_grpc_client = _client; }
+ GrpcClient *getGrpcClient(void) { return m_grpc_client; }
QStringList apps_stack;
std::list<std::pair<const QString, const QString>> pending_app_list;