File indexing completed on 2025-03-16 12:58:26
0001 /* 0002 SPDX-FileCopyrightText: 2014 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_TUN_DEVICE_P_H 0008 #define NETWORKMANAGERQT_TUN_DEVICE_P_H 0009 0010 #include "device_p.h" 0011 #include "tundevice.h" 0012 #include "tundeviceinterface.h" 0013 0014 namespace NetworkManager 0015 { 0016 class TunDevicePrivate : public DevicePrivate 0017 { 0018 Q_OBJECT 0019 public: 0020 TunDevicePrivate(const QString &path, TunDevice *q); 0021 ~TunDevicePrivate() override; 0022 0023 OrgFreedesktopNetworkManagerDeviceTunInterface iface; 0024 qlonglong owner; 0025 qlonglong group; 0026 QString mode; 0027 bool multiQueue; 0028 bool noPi; 0029 bool vnetHdr; 0030 QString hwAddress; 0031 0032 Q_DECLARE_PUBLIC(TunDevice) 0033 protected: 0034 /** 0035 * When subclassing make sure to call the parent class method 0036 * if the property was not useful to your new class 0037 */ 0038 void propertyChanged(const QString &property, const QVariant &value) override; 0039 }; 0040 0041 } 0042 0043 #endif