1 | /* |
2 | SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@redhat.com> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
5 | */ |
6 | |
7 | #ifndef NETWORKMANAGERQT_ADSL_DEVICE_H |
8 | #define NETWORKMANAGERQT_ADSL_DEVICE_H |
9 | |
10 | #include "device.h" |
11 | #include <networkmanagerqt/networkmanagerqt_export.h> |
12 | |
13 | namespace NetworkManager |
14 | { |
15 | class AdslDevicePrivate; |
16 | |
17 | /** |
18 | * An adsl device interface |
19 | */ |
20 | class NETWORKMANAGERQT_EXPORT AdslDevice : public Device |
21 | { |
22 | Q_OBJECT |
23 | Q_PROPERTY(bool carrier READ carrier NOTIFY carrierChanged) |
24 | public: |
25 | typedef QSharedPointer<AdslDevice> Ptr; |
26 | typedef QList<Ptr> List; |
27 | explicit AdslDevice(const QString &path, QObject *parent = nullptr); |
28 | ~AdslDevice() override; |
29 | |
30 | Type type() const override; |
31 | /** |
32 | * Indicates whether the physical carrier is found |
33 | */ |
34 | bool carrier() const; |
35 | |
36 | Q_SIGNALS: |
37 | /** |
38 | * Emitted when the carrier of this device has changed |
39 | */ |
40 | void carrierChanged(bool plugged); |
41 | |
42 | private: |
43 | Q_DECLARE_PRIVATE(AdslDevice) |
44 | }; |
45 | |
46 | } |
47 | |
48 | #endif |
49 | |