forked from linuxdeepin/dde-network-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdccdbusinterface.h
39 lines (28 loc) · 1008 Bytes
/
dccdbusinterface.h
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
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef DCCDBUSINTERFACE_H
#define DCCDBUSINTERFACE_H
#include <QDBusAbstractInterface>
namespace dde {
namespace network {
class DCCDBusInterfacePrivate;
class DCCDBusInterface : public QDBusAbstractInterface
{
Q_OBJECT
public:
explicit DCCDBusInterface(const QString &service, const QString &path, const QString &interface = QString(),
const QDBusConnection &connection = QDBusConnection::sessionBus(), QObject *parent = nullptr);
virtual ~DCCDBusInterface() override;
QString suffix() const;
void setSuffix(const QString &suffix);
QVariant property(const char *propname);
void setProperty(const char *propname, const QVariant &value);
private:
QScopedPointer<DCCDBusInterfacePrivate> d_ptr;
Q_DECLARE_PRIVATE(DCCDBusInterface)
Q_DISABLE_COPY(DCCDBusInterface)
};
}
}
#endif // DCCDBUSINTERFACE_H