1/*
2 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
3 SPDX-FileCopyrightText: 2011-2013 Lamarque V. Souza <lamarque@kde.org>
4 SPDX-FileCopyrightText: 2013 Daniel Nicoletti <dantti12@gmail.com>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef NETWORKMANAGERQT_WIMAXNSP_H
10#define NETWORKMANAGERQT_WIMAXNSP_H
11
12#include <networkmanagerqt/networkmanagerqt_export.h>
13
14#include <QSharedPointer>
15
16namespace NetworkManager
17{
18class WimaxNspPrivate;
19
20/**
21 * Wimax network service provider (access point)
22 */
23class NETWORKMANAGERQT_EXPORT WimaxNsp : public QObject
24{
25 Q_OBJECT
26public:
27 typedef QSharedPointer<WimaxNsp> Ptr;
28 typedef QList<Ptr> List;
29 /**
30 * network types a NSP can have
31 */
32 enum NetworkType {
33 Unknown = 0x1,
34 Home = 0x2,
35 Partner = 0x3,
36 RoamingPartner = 0x4,
37 };
38
39 explicit WimaxNsp(const QString &path, QObject *parent = nullptr);
40 ~WimaxNsp() override;
41
42 QString uni() const;
43 /**
44 * The network type of the NSP
45 */
46 NetworkType networkType() const;
47 /**
48 * The name of the NSP
49 */
50 QString name() const;
51 /**
52 * The current signal quality of the NSP, in percent
53 */
54 uint signalQuality() const;
55
56Q_SIGNALS:
57 /**
58 * This signal is emitted when the network type of this NSP has changed.
59 *
60 * @param type the new type
61 */
62 void networkTypeChanged(NetworkType type);
63
64 /**
65 * This signal is emitted when the name of this NSP has changed
66 *
67 * @param name the new name for this NSP
68 */
69 void nameChanged(const QString &name);
70
71 /**
72 * This signal is emitted when the signal quality of this NSP has changed.
73 *
74 * @param quality the new quality
75 */
76 void signalQualityChanged(uint quality);
77
78private:
79 Q_DECLARE_PRIVATE(WimaxNsp)
80
81 WimaxNspPrivate *const d_ptr;
82};
83}
84#endif
85

source code of networkmanager-qt/src/wimaxnsp.h