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_TEAM_DEVICE_P_H |
8 | #define NETWORKMANAGERQT_TEAM_DEVICE_P_H |
9 | |
10 | #include "device_p.h" |
11 | #include "manager.h" |
12 | #include "manager_p.h" |
13 | #include "teamdevice.h" |
14 | |
15 | #include "teamdeviceinterface.h" |
16 | |
17 | namespace NetworkManager |
18 | { |
19 | class TeamDevicePrivate : public DevicePrivate |
20 | { |
21 | Q_OBJECT |
22 | public: |
23 | TeamDevicePrivate(const QString &path, TeamDevice *q); |
24 | ~TeamDevicePrivate() override; |
25 | |
26 | OrgFreedesktopNetworkManagerDeviceTeamInterface iface; |
27 | bool carrier; |
28 | QString config; |
29 | QString hwAddress; |
30 | QStringList slaves; |
31 | |
32 | Q_DECLARE_PUBLIC(TeamDevice) |
33 | protected: |
34 | /** |
35 | * When subclassing make sure to call the parent class method |
36 | * if the property was not useful to your new class |
37 | */ |
38 | void propertyChanged(const QString &property, const QVariant &value) override; |
39 | }; |
40 | |
41 | } |
42 | |
43 | #endif |
44 | |