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

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