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);
32 QStringList apps_stack;
33 std::list<std::pair<const QString, const QString>> pending_app_list;
35 void showNotification(QString application_id, QString icon_path, QString text);
36 void showInformation(QString info);
39 void processAppStatusEvent(const QString &id, const QString &status);
42 ApplicationLauncher *mp_launcher;
43 AppLauncherClient *mp_applauncher_client;
44 GrpcClient *m_grpc_client;
47 #endif // HOMESCREENHANDLER_H