Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
AccessPoint.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <PhosphorServiceNetwork/phosphorservicenetwork_export.h>
7
8#include <QObject>
9#include <QString>
10
11#include <memory>
12
14
21class PHOSPHORSERVICENETWORK_EXPORT AccessPoint : public QObject
22{
23 Q_OBJECT
24 Q_DISABLE_COPY_MOVE(AccessPoint)
25
26
33 Q_PROPERTY(QString dbusPath READ dbusPath CONSTANT)
34 Q_PROPERTY(QString ssid READ ssid NOTIFY ssidChanged)
35 Q_PROPERTY(int strength READ strength NOTIFY strengthChanged)
36 Q_PROPERTY(int frequency READ frequency NOTIFY frequencyChanged)
37 Q_PROPERTY(QString bssid READ bssid NOTIFY bssidChanged)
41 Q_PROPERTY(QString security READ security NOTIFY securityChanged)
42 Q_PROPERTY(bool secured READ secured NOTIFY securityChanged)
43
44public:
45 explicit AccessPoint(const QString& dbusPath, QObject* parent = nullptr);
46 ~AccessPoint() override;
47
48 [[nodiscard]] QString dbusPath() const;
49 [[nodiscard]] QString ssid() const;
50 [[nodiscard]] int strength() const;
51 [[nodiscard]] int frequency() const;
52 [[nodiscard]] QString bssid() const;
53 [[nodiscard]] QString security() const;
54 [[nodiscard]] bool secured() const;
55
56Q_SIGNALS:
62
63private Q_SLOTS:
64 void _q_onPropertiesChanged(const QString& iface, const QVariantMap& changed, const QStringList& invalidated);
65
66private:
67 class Private;
68 std::unique_ptr<Private> d;
69};
70
71} // namespace PhosphorServiceNetwork
AccessPoint(const QString &dbusPath, QObject *parent=nullptr)
The object path this access point was built from.
Definition AccessPoint.h:13