1
/***************************************************************************
3
* knetworkmanager-wireless_network.h - A NetworkManager frontend for KDE
5
* Copyright (C) 2005, 2006 Novell, Inc.
7
* Author: Helmut Schaa <hschaa@suse.de>, <Helmut.Schaa@gmx.de>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
**************************************************************************/
25
#ifndef KNETWORKMANAGER_WIRELESS_NETWORK_H
26
#define KNETWORKMANAGER_WIRELESS_NETWORK_H
28
#include "knetworkmanager.h"
29
#include "knetworkmanager-device.h"
33
class KNetworkManager;
35
class WirelessNetworkPrivate;
37
namespace ConnectionSettings
39
class WirelessConnection;
43
A wireless network represents multiple accesspoints
44
that share the same essid and security-caps
49
// bitwise encoded enum
50
// allows the specification on how multiple APs get grouped together
53
// only match APs with the same ssid
57
WirelessNetwork(const WirelessNetwork& other);
58
WirelessNetwork (Q_UINT32 match = MATCH_SSID);
61
WirelessNetwork& operator= (const WirelessNetwork&);
63
// check if the AccessPoint represents the same net
64
bool contains(const AccessPoint * const);
66
// add an AP to the Network
67
bool addAP(const AccessPoint * const);
69
// combined flags of all APs
70
Q_UINT32 getFlags() const;
72
// combined wpa-flags of all APs
73
Q_UINT32 getWpaFlags() const;
75
// combined rsn-flags of all APs
76
Q_UINT32 getRsnFlags() const;
79
const QByteArray getSsid() const;
81
QString getDisplaySsid() const;
82
bool isEncrypted() const;
84
// strength of the best AP
85
Q_UINT8 getStrength() const;
87
void setActive(bool active);
88
bool getActive() const;
90
bool operator==(const WirelessNetwork&);
93
WirelessNetworkPrivate * d;
96
#endif /* KNETWORKMANAGER_WIRELESS_NETWORK_H */