| 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_VETH_DEVICE_P_H |
| 8 | #define NETWORKMANAGERQT_VETH_DEVICE_P_H |
| 9 | |
| 10 | #include "device_p.h" |
| 11 | #include "vethdevice.h" |
| 12 | |
| 13 | #include "vethdeviceinterface.h" |
| 14 | |
| 15 | namespace NetworkManager |
| 16 | { |
| 17 | class VethDevicePrivate : public DevicePrivate |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | public: |
| 21 | VethDevicePrivate(const QString &path, VethDevice *q); |
| 22 | ~VethDevicePrivate() override; |
| 23 | |
| 24 | OrgFreedesktopNetworkManagerDeviceVethInterface iface; |
| 25 | QString peer; |
| 26 | |
| 27 | Q_DECLARE_PUBLIC(VethDevice) |
| 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 | |
| 36 | } |
| 37 | |
| 38 | #endif |
| 39 | |