| 1 | /* |
|---|---|
| 2 | SPDX-FileCopyrightText: 2025 Martin Rodriguez Reboredo <yakoyoku@gmail.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_WIFIP2PDEVICE_P_H |
| 8 | #define NETWORKMANAGERQT_WIFIP2PDEVICE_P_H |
| 9 | |
| 10 | #include "dbus/wifip2pdeviceinterface.h" |
| 11 | #include "device_p.h" |
| 12 | #include "wifip2pdevice.h" |
| 13 | #include "wifip2ppeer.h" |
| 14 | |
| 15 | namespace NetworkManager |
| 16 | { |
| 17 | class WifiP2PDevicePrivate : public DevicePrivate |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | public: |
| 21 | WifiP2PDevicePrivate(const QString &path, WifiP2PDevice *q); |
| 22 | |
| 23 | OrgFreedesktopNetworkManagerDeviceWifiP2PInterface wifip2pIface; |
| 24 | QString hardwareAddress; |
| 25 | QMap<QString, WifiP2PPeer::Ptr> peerMap; |
| 26 | |
| 27 | Q_DECLARE_PUBLIC(WifiP2PDevice) |
| 28 | protected: |
| 29 | /** |
| 30 | * When subclassing make sure to call the parent class method |
| 31 | * if the property was not useful to your new class |
| 32 | */ |
| 33 | void propertyChanged(const QString &property, const QVariant &value) override; |
| 34 | |
| 35 | private: |
| 36 | void peerAdded(const QDBusObjectPath &peer); |
| 37 | void peerRemoved(const QDBusObjectPath &peer); |
| 38 | }; |
| 39 | |
| 40 | } |
| 41 | |
| 42 | #endif /* NETWORKMANAGERQT_WIFIP2PDEVICE_P_H */ |
| 43 |
