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_OLPCMESH_SETTING_H
8#define NETWORKMANAGERQT_OLPCMESH_SETTING_H
9
10#include "setting.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13#include <QString>
14
15namespace NetworkManager
16{
17class OlpcMeshSettingPrivate;
18
19/**
20 * Represents olpc mesh setting
21 */
22class NETWORKMANAGERQT_EXPORT OlpcMeshSetting : public Setting
23{
24public:
25 typedef QSharedPointer<OlpcMeshSetting> Ptr;
26 typedef QList<Ptr> List;
27 OlpcMeshSetting();
28 explicit OlpcMeshSetting(const Ptr &other);
29 ~OlpcMeshSetting() override;
30
31 QString name() const override;
32
33 void setSsid(const QByteArray &ssid);
34 QByteArray ssid() const;
35
36 void setChannel(quint32 channel);
37 quint32 channel() const;
38
39 void setDhcpAnycastAddress(const QByteArray &address);
40 QByteArray dhcpAnycastAddress() const;
41
42 void fromMap(const QVariantMap &setting) override;
43
44 QVariantMap toMap() const override;
45
46protected:
47 OlpcMeshSettingPrivate *d_ptr;
48
49private:
50 Q_DECLARE_PRIVATE(OlpcMeshSetting)
51};
52
53NETWORKMANAGERQT_EXPORT QDebug operator<<(QDebug dbg, const OlpcMeshSetting &setting);
54
55}
56
57#endif // NETWORKMANAGERQT_OLPCMESH_SETTING_H
58

source code of networkmanager-qt/src/settings/olpcmeshsetting.h