File indexing completed on 2024-07-14 03:58:18

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