File indexing completed on 2024-05-19 04:02:48

0001 /*
0002     SPDX-FileCopyrightText: 2009, 2011 Will Stephenson <wstephenson@kde.org>
0003     SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 #ifndef NETWORKMANAGERQT_WIRELESSNETWORK_P_H
0009 #define NETWORKMANAGERQT_WIRELESSNETWORK_P_H
0010 
0011 #include "wirelessdevice.h"
0012 
0013 #include <QPointer>
0014 
0015 namespace NetworkManager
0016 {
0017 class WirelessNetworkPrivate
0018 {
0019 public:
0020     Q_DECLARE_PUBLIC(WirelessNetwork)
0021     WirelessNetwork *q_ptr;
0022 
0023     WirelessNetworkPrivate(WirelessNetwork *q, WirelessDevice *);
0024     ~WirelessNetworkPrivate();
0025 
0026     void addAccessPointInternal(const AccessPoint::Ptr &accessPoint);
0027 
0028     QString ssid;
0029     int strength;
0030     QPointer<WirelessDevice> wirelessNetworkInterface;
0031     QHash<QString, AccessPoint::Ptr> aps;
0032     AccessPoint::Ptr referenceAp;
0033 
0034 private Q_SLOTS:
0035     void accessPointAppeared(const QString &uni);
0036     void accessPointDisappeared(const QString &uni);
0037     void updateStrength();
0038 };
0039 
0040 }
0041 
0042 #endif