NetworkManagerQt

fakenetwork/accesspoint.cpp
1/*
2 SPDX-FileCopyrightText: 2014 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#include "accesspoint.h"
8
9AccessPoint::AccessPoint(QObject *parent)
10 : QObject(parent)
11 , m_flags(0)
12 , m_frequency(0)
13 , m_maxBitrate(0)
14 , m_mode(0)
15 , m_rsnFlags(0)
16 , m_strength(0)
17 , m_wpaFlags(0)
18{
19}
20
21AccessPoint::~AccessPoint()
22{
23}
24
25uint AccessPoint::flags() const
26{
27 return m_flags;
28}
29
30uint AccessPoint::frequency() const
31{
32 return m_frequency;
33}
34
35QString AccessPoint::hwAddress() const
36{
37 return m_hwAddress;
38}
39
40uint AccessPoint::maxBitrate() const
41{
42 return m_maxBitrate;
43}
44
45uint AccessPoint::mode() const
46{
47 return m_mode;
48}
49
50uint AccessPoint::rsnFlags() const
51{
52 return m_rsnFlags;
53}
54
55QByteArray AccessPoint::ssid() const
56{
57 return m_ssid;
58}
59
60uchar AccessPoint::strength() const
61{
62 return m_strength;
63}
64
65uint AccessPoint::wpaFlags() const
66{
67 return m_wpaFlags;
68}
69
70QString AccessPoint::accessPointPath() const
71{
72 return m_apPath;
73}
74
75void AccessPoint::setAccessPointPath(const QString &path)
76{
77 m_apPath = path;
78}
79
80void AccessPoint::setFlags(uint flags)
81{
82 m_flags = flags;
83}
84
85void AccessPoint::setFrequency(uint frequency)
86{
87 m_frequency = frequency;
88}
89
90void AccessPoint::setHwAddress(const QString &hwAddress)
91{
92 m_hwAddress = hwAddress;
93}
94
95void AccessPoint::setMaxBitrate(uint bitrate)
96{
97 m_maxBitrate = bitrate;
98}
99
100void AccessPoint::setMode(uint mode)
101{
102 m_mode = mode;
103}
104
105void AccessPoint::setRsnFlags(uint flags)
106{
107 m_rsnFlags = flags;
108}
109
110void AccessPoint::setSsid(const QByteArray &ssid)
111{
112 m_ssid = ssid;
113}
114
115void AccessPoint::setStrength(uchar strength)
116{
117 m_strength = strength;
118}
119
120void AccessPoint::setWpaFlags(uint flags)
121{
122 m_wpaFlags = flags;
123}
124
125#include "moc_accesspoint.cpp"
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.