1 | /* |
2 | SPDX-FileCopyrightText: 2012-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_VLAN_DEVICE_P_H |
8 | #define NETWORKMANAGERQT_VLAN_DEVICE_P_H |
9 | |
10 | #include "device_p.h" |
11 | #include "manager_p.h" |
12 | #include "vlandevice.h" |
13 | #include "vlandeviceinterface.h" |
14 | |
15 | namespace NetworkManager |
16 | { |
17 | class VlanDevicePrivate : public DevicePrivate |
18 | { |
19 | Q_OBJECT |
20 | public: |
21 | VlanDevicePrivate(const QString &path, VlanDevice *q); |
22 | ~VlanDevicePrivate() override; |
23 | |
24 | OrgFreedesktopNetworkManagerDeviceVlanInterface iface; |
25 | bool carrier; |
26 | QString hwAddress; |
27 | QString parent; |
28 | uint vlanId; |
29 | |
30 | Q_DECLARE_PUBLIC(VlanDevice) |
31 | protected: |
32 | /** |
33 | * When subclassing make sure to call the parent class method |
34 | * if the property was not useful to your new class |
35 | */ |
36 | void propertyChanged(const QString &property, const QVariant &value) override; |
37 | }; |
38 | |
39 | } |
40 | |
41 | #endif |
42 | |