File indexing completed on 2024-04-21 04:00:15

0001 /*
0002     SPDX-FileCopyrightText: 2012-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_VLAN_DEVICE_P_H
0008 #define NETWORKMANAGERQT_VLAN_DEVICE_P_H
0009 
0010 #include "device_p.h"
0011 #include "manager_p.h"
0012 #include "vlandevice.h"
0013 #include "vlandeviceinterface.h"
0014 
0015 namespace NetworkManager
0016 {
0017 class VlanDevicePrivate : public DevicePrivate
0018 {
0019     Q_OBJECT
0020 public:
0021     VlanDevicePrivate(const QString &path, VlanDevice *q);
0022     ~VlanDevicePrivate() override;
0023 
0024     OrgFreedesktopNetworkManagerDeviceVlanInterface iface;
0025     bool carrier;
0026     QString hwAddress;
0027     QString parent;
0028     uint vlanId;
0029 
0030     Q_DECLARE_PUBLIC(VlanDevice)
0031 protected:
0032     /**
0033      * When subclassing make sure to call the parent class method
0034      * if the property was not useful to your new class
0035      */
0036     void propertyChanged(const QString &property, const QVariant &value) override;
0037 };
0038 
0039 }
0040 
0041 #endif