feat: init dbus service structure
Log: 初始化dbus服务结构
This commit is contained in:
26
src/dbus/instanceservice.h
Normal file
26
src/dbus/instanceservice.h
Normal 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
|
Reference in New Issue
Block a user