DtkNetworkManager
NetworkManager DBus interface binding for Qt
dadsldevice.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2022 - 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DADSLDEVICE_H
6#define DADSLDEVICE_H
7
8#include "ddevice.h"
9
10DNETWORKMANAGER_BEGIN_NAMESPACE
11
12class DAdslDevicePrivate;
13
14class DAdslDevice : public DDevice
15{
16 Q_OBJECT
17 Q_PROPERTY(bool carrier READ carrier NOTIFY carrierChanged)
18public:
19 explicit DAdslDevice(const quint64 id, QObject *parent = nullptr);
20 ~DAdslDevice() override = default;
21
22 bool carrier() const;
23
24Q_SIGNALS:
25 void carrierChanged(const bool found);
26
27private:
28 Q_DECLARE_PRIVATE(DAdslDevice)
29};
30
31DNETWORKMANAGER_END_NAMESPACE
32
33#endif
对于Adsl设备属性的封装
Definition: dadsldevice.h:15
void carrierChanged(const bool found)
信号, 当物理载体发生改变时触发
bool carrier() const
获取网络是否有物理载体
对于所有设备都有的属性和方法的封装
Definition: ddevice.h:18