1 // SPDX-License-Identifier: Apache-2.0
3 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
4 * Copyright (c) 2022 Konsulko Group
7 #ifndef HOMESCREENHANDLER_H
8 #define HOMESCREENHANDLER_H
13 #include "applicationlauncher.h"
14 #include "AppLauncherClient.h"
15 #include "AglShellGrpcClient.h"
19 class HomescreenHandler : public QObject
23 explicit HomescreenHandler(ApplicationLauncher *launcher = 0, GrpcClient *_client = nullptr, QObject *parent = 0);
26 Q_INVOKABLE void tapShortcut(QString application_id);
28 void addAppToStack(const QString& application_id);
29 void activateApp(const QString& app_id);
30 void deactivateApp(const QString& app_id);
31 void setGrpcClient(GrpcClient *_client) { m_grpc_client = _client; }
32 GrpcClient *getGrpcClient(void) { return m_grpc_client; }
34 QStringList apps_stack;
35 std::list<std::pair<const QString, const QString>> pending_app_list;
37 void showNotification(QString application_id, QString icon_path, QString text);
38 void showInformation(QString info);
41 void processAppStatusEvent(const QString &id, const QString &status);
44 ApplicationLauncher *mp_launcher;
45 AppLauncherClient *mp_applauncher_client;
46 GrpcClient *m_grpc_client;
49 #endif // HOMESCREENHANDLER_H