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 <QObject>
15#include <QSharedPointer>
16
17namespace NetworkManager
18{
19class WimaxNspPrivate;
20
21/*!
22 * \class NetworkManager::WimaxNsp
23 * \inheaderfile NetworkManagerQt/WimaxNsp
24 * \inmodule NetworkManagerQt
25 *
26 * \brief Wimax network service provider (access point).
27 */
28class NETWORKMANAGERQT_EXPORT WimaxNsp : public QObject
29{
30 Q_OBJECT
31public:
32 /*!
33 * \typedef NetworkManager::WimaxNsp::Ptr
34 */
35 typedef QSharedPointer<WimaxNsp> Ptr;
36 /*!
37 * \typedef NetworkManager::WimaxNsp::List
38 */
39 typedef QList<Ptr> List;
40 /*!
41 * network types a NSP can have
42 *
43 * \value Unknown
44 * \value Home
45 * \value Partner
46 * \value RoamingPartner
47 */
48 enum NetworkType {
49 Unknown = 0x1,
50 Home = 0x2,
51 Partner = 0x3,
52 RoamingPartner = 0x4,
53 };
54
55 /*!
56 */
57 explicit WimaxNsp(const QString &path, QObject *parent = nullptr);
58 ~WimaxNsp() override;
59
60 /*!
61 */
62 QString uni() const;
63 /*!
64 * The network type of the NSP
65 */
66 NetworkType networkType() const;
67 /*!
68 * The name of the NSP
69 */
70 QString name() const;
71 /*!
72 * The current signal quality of the NSP, in percent
73 */
74 uint signalQuality() const;
75
76Q_SIGNALS:
77 /*!
78 * This signal is emitted when the network type of this NSP has changed.
79 *
80 * \a type the new type
81 */
82 void networkTypeChanged(NetworkType type);
83
84 /*!
85 * This signal is emitted when the name of this NSP has changed
86 *
87 * \a name the new name for this NSP
88 */
89 void nameChanged(const QString &name);
90
91 /*!
92 * This signal is emitted when the signal quality of this NSP has changed.
93 *
94 * \a quality the new quality
95 */
96 void signalQualityChanged(uint quality);
97
98private:
99 Q_DECLARE_PRIVATE(WimaxNsp)
100
101 WimaxNspPrivate *const d_ptr;
102};
103}
104#endif
105

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