File indexing completed on 2024-05-26 15:32:15

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_BRIDGE_DEVICE_P_H
0008 #define NETWORKMANAGERQT_BRIDGE_DEVICE_P_H
0009 
0010 #include "bridgedevice.h"
0011 #include "device_p.h"
0012 #include "manager.h"
0013 
0014 #include "bridgedeviceinterface.h"
0015 
0016 namespace NetworkManager
0017 {
0018 class BridgeDevicePrivate : public DevicePrivate
0019 {
0020 public:
0021     BridgeDevicePrivate(const QString &path, BridgeDevice *q);
0022     ~BridgeDevicePrivate() override;
0023 
0024     OrgFreedesktopNetworkManagerDeviceBridgeInterface iface;
0025     bool carrier;
0026     QString hwAddress;
0027     QStringList slaves;
0028 
0029     Q_DECLARE_PUBLIC(BridgeDevice)
0030 protected:
0031     /**
0032      * When subclassing make sure to call the parent class method
0033      * if the property was not useful to your new class
0034      */
0035     void propertyChanged(const QString &property, const QVariant &value) override;
0036 };
0037 }
0038 
0039 #endif