File indexing completed on 2024-04-14 03:57:39

0001 /*
0002     SPDX-FileCopyrightText: 2012-2013 Jan Grulich <jgrulich@redhat.com>
0003     SPDX-FileCopyrightText: 2013 Daniel Nicoletti <dantti12@gmail.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 #ifndef NETWORKMANAGERQT_WIMAX_SETTING_H
0009 #define NETWORKMANAGERQT_WIMAX_SETTING_H
0010 
0011 #include "setting.h"
0012 #include <networkmanagerqt/networkmanagerqt_export.h>
0013 
0014 #include <QString>
0015 
0016 namespace NetworkManager
0017 {
0018 class WimaxSettingPrivate;
0019 
0020 /**
0021  * Represents wimax setting
0022  */
0023 class NETWORKMANAGERQT_EXPORT WimaxSetting : public Setting
0024 {
0025 public:
0026     typedef QSharedPointer<WimaxSetting> Ptr;
0027     typedef QList<Ptr> List;
0028     WimaxSetting();
0029     explicit WimaxSetting(const Ptr &other);
0030     ~WimaxSetting() override;
0031 
0032     QString name() const override;
0033 
0034     void setNetworkName(const QString &name);
0035     QString networkName() const;
0036 
0037     void setMacAddress(const QByteArray &address);
0038     QByteArray macAddress() const;
0039 
0040     void fromMap(const QVariantMap &setting) override;
0041 
0042     QVariantMap toMap() const override;
0043 
0044 protected:
0045     WimaxSettingPrivate *d_ptr;
0046 
0047 private:
0048     Q_DECLARE_PRIVATE(WimaxSetting)
0049 };
0050 
0051 NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const WimaxSetting &setting);
0052 
0053 }
0054 
0055 #endif // NETWORKMANAGERQT_WIMAX_SETTING_H