| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2014 Jan Grulich <jgrulich@redhat.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_TUN_DEVICE_P_H |
| 8 | #define NETWORKMANAGERQT_TUN_DEVICE_P_H |
| 9 | |
| 10 | #include "device_p.h" |
| 11 | #include "tundevice.h" |
| 12 | #include "tundeviceinterface.h" |
| 13 | |
| 14 | namespace NetworkManager |
| 15 | { |
| 16 | class TunDevicePrivate : public DevicePrivate |
| 17 | { |
| 18 | Q_OBJECT |
| 19 | public: |
| 20 | TunDevicePrivate(const QString &path, TunDevice *q); |
| 21 | ~TunDevicePrivate() override; |
| 22 | |
| 23 | OrgFreedesktopNetworkManagerDeviceTunInterface iface; |
| 24 | qlonglong owner; |
| 25 | qlonglong group; |
| 26 | QString mode; |
| 27 | bool multiQueue; |
| 28 | bool noPi; |
| 29 | bool vnetHdr; |
| 30 | QString hwAddress; |
| 31 | |
| 32 | Q_DECLARE_PUBLIC(TunDevice) |
| 33 | protected: |
| 34 | /** |
| 35 | * When subclassing make sure to call the parent class method |
| 36 | * if the property was not useful to your new class |
| 37 | */ |
| 38 | void propertyChanged(const QString &property, const QVariant &value) override; |
| 39 | }; |
| 40 | |
| 41 | } |
| 42 | |
| 43 | #endif |
| 44 | |