2023-07-10 10:18:33 +08:00
|
|
|
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
#include "instanceservice.h"
|
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
InstanceService::InstanceService(QString application, QString systemdUnitPath)
|
2023-07-21 14:47:40 +08:00
|
|
|
: m_Application(std::move(application))
|
|
|
|
, m_SystemdUnitPath(std::move(systemdUnitPath))
|
2023-07-10 10:18:33 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-07-17 14:49:35 +08:00
|
|
|
InstanceService::~InstanceService() = default;
|
2023-07-10 10:18:33 +08:00
|
|
|
|
2023-07-21 14:47:40 +08:00
|
|
|
QDBusObjectPath InstanceService::application() const
|
|
|
|
{
|
|
|
|
return m_Application;
|
|
|
|
}
|
2023-07-10 10:18:33 +08:00
|
|
|
|
2023-07-21 14:47:40 +08:00
|
|
|
QDBusObjectPath InstanceService::systemdUnitPath() const
|
|
|
|
{
|
|
|
|
return m_SystemdUnitPath;
|
|
|
|
}
|