forked from linuxdeepin/dde-network-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdccdbusinterface_p.h
42 lines (32 loc) · 1.16 KB
/
dccdbusinterface_p.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
40
41
42
// SPDX-FileCopyrightText: 2018 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef DCCDBUSINTERFACE_P_H
#define DCCDBUSINTERFACE_P_H
#include "dccdbusinterface.h"
class QDBusPendingCallWatcher;
namespace dde {
namespace network {
class DCCDBusInterfacePrivate : public QObject
{
Q_OBJECT
public:
explicit DCCDBusInterfacePrivate(DCCDBusInterface *interface, QObject *parent);
QVariant demarshall(const QMetaProperty &metaProperty, const QVariant &value);
QVariant updateProp(const char *propname, const QVariant &value);
void initDBusConnection();
private Q_SLOTS:
void onPropertiesChanged(const QString &interfaceName, const QVariantMap &changedProperties, const QStringList &invalidatedProperties);
void onAsyncPropertyFinished(QDBusPendingCallWatcher *w);
void onDBusNameHasOwner(bool valid);
void onDBusNameOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOWner);
public:
QObject *m_parent;
QString m_suffix;
QVariantMap m_propertyMap;
DCCDBusInterface *q_ptr;
Q_DECLARE_PUBLIC(DCCDBusInterface)
};
}
}
#endif // DCCDBUSINTERFACE_P_H