blob: bbbcef3408605f424178b468e17f032490108179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright (C) 2022 Konsulko Group
*/
#include <QDebug>
#include "AppLauncherClient.h"
#include "AppLauncherGrpcClient.h"
AppLauncherClient::AppLauncherClient(QObject *parent) : QObject(parent)
{
m_launcher = new AppLauncherGrpcClient(this);
}
AppLauncherClient::~AppLauncherClient()
{
delete m_launcher;
}
bool AppLauncherClient::startApplication(const QString &id)
{
if (m_launcher)
return m_launcher->StartApplication(id);
return false;
}
bool AppLauncherClient::listApplications(QList<QMap<QString, QString>> &list)
{
if (!m_launcher) {
return false;
}
return m_launcher->ListApplications(list);
}
void AppLauncherClient::sendStatusEvent(const QString &id, const QString &status)
{
emit appStatusEvent(id, status);
}
|