File indexing completed on 2024-04-14 14:30:35

0001 /*
0002     SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef NETWORKMANAGERQT_ADSL_DEVICE_H
0008 #define NETWORKMANAGERQT_ADSL_DEVICE_H
0009 
0010 #include "device.h"
0011 #include <networkmanagerqt/networkmanagerqt_export.h>
0012 
0013 namespace NetworkManager
0014 {
0015 class AdslDevicePrivate;
0016 
0017 /**
0018  * An adsl device interface
0019  */
0020 class NETWORKMANAGERQT_EXPORT AdslDevice : public Device
0021 {
0022     Q_OBJECT
0023     Q_PROPERTY(bool carrier READ carrier NOTIFY carrierChanged)
0024 public:
0025     typedef QSharedPointer<AdslDevice> Ptr;
0026     typedef QList<Ptr> List;
0027     explicit AdslDevice(const QString &path, QObject *parent = nullptr);
0028     ~AdslDevice() override;
0029 
0030     Type type() const override;
0031     /**
0032      * Indicates whether the physical carrier is found
0033      */
0034     bool carrier() const;
0035 
0036 Q_SIGNALS:
0037     /**
0038      * Emitted when the carrier of this device has changed
0039      */
0040     void carrierChanged(bool plugged);
0041 
0042 private:
0043     Q_DECLARE_PRIVATE(AdslDevice)
0044 };
0045 
0046 }
0047 
0048 #endif