Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
NetworkConnection.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
13namespace PhosphorServiceNetwork {
14
19class PHOSPHORSERVICENETWORK_EXPORT NetworkConnection : public QObject
20{
21 Q_OBJECT
22 Q_DISABLE_COPY_MOVE(NetworkConnection)
23
24 Q_PROPERTY(QString id READ id NOTIFY idChanged)
25 Q_PROPERTY(QString uuid READ uuid NOTIFY uuidChanged)
26 Q_PROPERTY(QString connectionType READ connectionType NOTIFY connectionTypeChanged)
27 Q_PROPERTY(QString ssid READ ssid NOTIFY settingsChanged)
28 Q_PROPERTY(QString security READ security NOTIFY settingsChanged)
29 Q_PROPERTY(bool autoConnect READ autoConnect NOTIFY settingsChanged)
30
31public:
32 explicit NetworkConnection(const QString& dbusPath, QObject* parent = nullptr);
34
35 [[nodiscard]] QString dbusPath() const;
36 [[nodiscard]] QString id() const;
37 [[nodiscard]] QString uuid() const;
40 [[nodiscard]] QString connectionType() const;
41 [[nodiscard]] QString ssid() const;
42 [[nodiscard]] QString security() const;
43 [[nodiscard]] bool autoConnect() const;
44
45Q_SIGNALS:
46 void idChanged();
50
51private Q_SLOTS:
52 void _q_onUpdated();
53
54private:
55 class Private;
56 std::unique_ptr<Private> d;
57};
58
59} // namespace PhosphorServiceNetwork
QString connectionType() const
The NetworkManager connection type token, e.g.
NetworkConnection(const QString &dbusPath, QObject *parent=nullptr)
Definition AccessPoint.h:13