1 | /* |
---|---|
2 | SPDX-FileCopyrightText: 2008, 2011 Will Stephenson <wstephenson@kde.org> |
3 | SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
6 | */ |
7 | |
8 | #ifndef NETWORKMANAGERQT_WIRELESSDEVICE_P_H |
9 | #define NETWORKMANAGERQT_WIRELESSDEVICE_P_H |
10 | |
11 | #include "dbus/wirelessdeviceinterface.h" |
12 | #include "device_p.h" |
13 | |
14 | namespace NetworkManager |
15 | { |
16 | class WirelessDevicePrivate : public DevicePrivate |
17 | { |
18 | Q_OBJECT |
19 | public: |
20 | explicit WirelessDevicePrivate(const QString &path, WirelessDevice *q); |
21 | OrgFreedesktopNetworkManagerDeviceWirelessInterface wirelessIface; |
22 | QString permanentHardwareAddress; |
23 | QString hardwareAddress; |
24 | QHash<QString, WirelessNetwork::Ptr> networks; |
25 | QMap<QString, AccessPoint::Ptr> apMap; |
26 | // index of the active AP or -1 if none |
27 | AccessPoint::Ptr activeAccessPoint; |
28 | WirelessDevice::OperationMode mode; |
29 | uint bitRate; |
30 | WirelessDevice::Capabilities wirelessCapabilities; |
31 | QDateTime lastScan; |
32 | QDateTime lastRequestScan; |
33 | |
34 | Q_DECLARE_PUBLIC(WirelessDevice) |
35 | protected: |
36 | /** |
37 | * When subclassing make sure to call the parent class method |
38 | * if the property was not useful to your new class |
39 | */ |
40 | void propertyChanged(const QString &property, const QVariant &value) override; |
41 | |
42 | protected Q_SLOTS: |
43 | void accessPointAdded(const QDBusObjectPath &); |
44 | void accessPointRemoved(const QDBusObjectPath &); |
45 | void removeNetwork(const QString &network); |
46 | }; |
47 | |
48 | } |
49 | |
50 | #endif |
51 |