NetworkManagerQt

fakenetwork/accesspoint.h
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#ifndef NETWORKMANAGERQT_FAKE_NETWORK_ACCESS_POINT_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_ACCESS_POINT_H
9
10#include <QObject>
11
12#include "../generictypes.h"
13
14class AccessPoint : public QObject
15{
17 Q_CLASSINFO("D-Bus Interface", "org.kde.fakenetwork.AccessPoint")
18public:
19 explicit AccessPoint(QObject *parent = nullptr);
20 ~AccessPoint() override;
21
22 Q_PROPERTY(uint Flags READ flags)
23 Q_PROPERTY(uint Frequency READ frequency)
24 Q_PROPERTY(QString HwAddress READ hwAddress)
25 Q_PROPERTY(uint MaxBitrate READ maxBitrate)
26 Q_PROPERTY(uint Mode READ mode)
27 Q_PROPERTY(uint RsnFlags READ rsnFlags)
28 Q_PROPERTY(QByteArray Ssid READ ssid)
29 Q_PROPERTY(uchar Strength READ strength)
30 Q_PROPERTY(uint WpaFlags READ wpaFlags)
31
32 uint flags() const;
33 uint frequency() const;
34 QString hwAddress() const;
35 uint maxBitrate() const;
36 uint mode() const;
37 uint rsnFlags() const;
38 QByteArray ssid() const;
39 uchar strength() const;
40 uint wpaFlags() const;
41
42 /* Not part of DBus interface */
43 QString accessPointPath() const;
44 void setAccessPointPath(const QString &path);
45 void setFlags(uint flags);
46 void setFrequency(uint frequency);
47 void setHwAddress(const QString &hwAddress);
48 void setMaxBitrate(uint bitrate);
49 void setMode(uint mode);
50 void setRsnFlags(uint flags);
51 void setSsid(const QByteArray &ssid);
52 void setStrength(uchar strength);
53 void setWpaFlags(uint flags);
54
56 Q_SCRIPTABLE void PropertiesChanged(const QVariantMap &properties);
57
58private:
59 QString m_apPath;
60 uint m_flags;
61 uint m_frequency;
62 QString m_hwAddress;
63 uint m_maxBitrate;
64 uint m_mode;
65 uint m_rsnFlags;
66 QByteArray m_ssid;
67 uchar m_strength;
68 uint m_wpaFlags;
69};
70
71#endif
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.