NetworkManagerQt

wimaxnsp.h
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:
28 typedef QList<Ptr> List;
29 /**
30 * network types a NSP can have
31 */
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 */
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
Wimax network service provider (access point)
Definition wimaxnsp.h:24
NetworkType
network types a NSP can have
Definition wimaxnsp.h:32
void nameChanged(const QString &name)
This signal is emitted when the name of this NSP has changed.
void networkTypeChanged(NetworkType type)
This signal is emitted when the network type of this NSP has changed.
void signalQualityChanged(uint quality)
This signal is emitted when the signal quality of this NSP has changed.
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.