File indexing completed on 2025-03-23 12:49:54
0001 /* 0002 SPDX-FileCopyrightText: 2019 Jan Grulich <jgrulich@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef NETWORKMANAGERQT_WIREGUARD_DEVICE_P_H 0008 #define NETWORKMANAGERQT_WIREGUARD_DEVICE_P_H 0009 0010 #include "device_p.h" 0011 #include "manager.h" 0012 #include "wireguarddevice.h" 0013 0014 #include "wireguarddeviceinterface.h" 0015 0016 namespace NetworkManager 0017 { 0018 class WireGuardDevicePrivate : public DevicePrivate 0019 { 0020 public: 0021 WireGuardDevicePrivate(const QString &path, WireGuardDevice *q); 0022 ~WireGuardDevicePrivate() override; 0023 0024 OrgFreedesktopNetworkManagerDeviceWireGuardInterface iface; 0025 QByteArray publicKey; 0026 uint listenPort; 0027 uint fwMark; 0028 0029 Q_DECLARE_PUBLIC(WireGuardDevice) 0030 protected: 0031 /** 0032 * When subclassing make sure to call the parent class method 0033 * if the property was not useful to your new class 0034 */ 0035 void propertyChanged(const QString &property, const QVariant &value) override; 0036 }; 0037 } 0038 0039 #endif