feat: init dbus service structure

Log: 初始化dbus服务结构
This commit is contained in:
heyuming
2023-07-10 10:18:33 +08:00
committed by black-desk
parent c10838200b
commit 10add2092c
11 changed files with 265 additions and 15 deletions

View File

@ -0,0 +1,26 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef INSTANCESERVICE_H
#define INSTANCESERVICE_H
#include <QObject>
#include <QDBusObjectPath>
class InstanceService : public QObject
{
Q_OBJECT
public:
explicit InstanceService(QObject *parent = nullptr);
virtual ~InstanceService();
public:
Q_PROPERTY(QDBusObjectPath Application READ application)
QDBusObjectPath application() const;
Q_PROPERTY(QDBusObjectPath SystemdUnitPath READ systemdUnitPath)
QDBusObjectPath systemdUnitPath() const;
};
#endif