• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

wirelessaccesspoint.h

Go to the documentation of this file.
00001 /*
00002 Copyright 2008 Will Stephenson <wstephenson@kde.org>
00003 
00004 This library is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU Lesser General Public
00006 License as published by the Free Software Foundation; either
00007 version 2.1 of the License, or (at your option) version 3, or any
00008 later version accepted by the membership of KDE e.V. (or its
00009 successor approved by the membership of KDE e.V.), which shall
00010 act as a proxy defined in Section 6 of version 3 of the license.
00011 
00012 This library is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 Lesser General Public License for more details.
00016 
00017 You should have received a copy of the GNU Lesser General Public 
00018 License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef SOLID_CONTROL_WIRELESSAP_H
00022 #define SOLID_CONTROL_WIRELESSAP_H
00023 
00024 #include <QtCore/QObject>
00025 
00026 #include "wirelessnetworkinterface.h"
00027 
00028 namespace Solid
00029 {
00030 namespace Control
00031 {
00032     class AccessPointPrivate;
00033     class SOLIDCONTROL_EXPORT AccessPoint : public QObject
00034     {
00035         Q_OBJECT
00036         Q_DECLARE_PRIVATE(AccessPoint)
00037         Q_FLAGS(Capabilities WpaFlags)
00038     public:
00042         enum Capability { Privacy = 0x1 };
00046         enum WpaFlag { PairWep40 = 0x1, PairWep104 = 0x2, PairTkip = 0x4, PairCcmp = 0x8,
00047            GroupWep40 = 0x10, GroupWep104 = 0x20, GroupTkip = 0x40, GroupCcmp = 0x80,
00048            KeyMgmtPsk = 0x100, KeyMgmt8021x = 0x200 };
00049         Q_DECLARE_FLAGS(Capabilities, Capability)
00050         Q_DECLARE_FLAGS(WpaFlags, WpaFlag)
00051 
00057         AccessPoint(QObject *backendObject = 0);
00061         AccessPoint(const AccessPoint &);
00062 
00063         virtual ~AccessPoint();
00064 
00068         QString uni() const;
00069 
00073         Solid::Control::AccessPoint::Capabilities capabilities() const;
00074 
00078         Solid::Control::AccessPoint::WpaFlags wpaFlags() const;
00079 
00084         Solid::Control::AccessPoint::WpaFlags rsnFlags() const;
00085 
00089         QString ssid() const;
00090 
00096         uint frequency() const;
00097 
00101         QString hardwareAddress() const;
00102 
00108         uint maxBitRate() const;
00109 
00116         Solid::Control::WirelessNetworkInterface::OperationMode mode() const;
00117 
00123         int signalStrength() const;
00124 
00125     Q_SIGNALS:
00131         void signalStrengthChanged(int strength);
00132 
00138         void bitRateChanged(int bitrate);
00139 
00145         void wpaFlagsChanged(Solid::Control::AccessPoint::WpaFlags flags) const;
00146 
00152         void rsnFlagsChanged(Solid::Control::AccessPoint::WpaFlags flags) const;
00158         void ssidChanged(const QString & ssid) const;
00159 
00165         void frequencyChanged(uint frequency) const;
00166     protected:
00170         AccessPoint(AccessPointPrivate &dd, QObject *backendObject);
00174         AccessPoint(AccessPointPrivate &dd, const AccessPoint & ap);
00175         AccessPointPrivate * d_ptr;
00176     private Q_SLOTS:
00177         void _k_destroyed(QObject *object);
00178     };
00179     typedef QStringList AccessPointList;
00180 } // Control
00181 } // Solid
00182 
00183 Q_DECLARE_OPERATORS_FOR_FLAGS(Solid::Control::AccessPoint::Capabilities)
00184 Q_DECLARE_OPERATORS_FOR_FLAGS(Solid::Control::AccessPoint::WpaFlags)
00185 #endif // SOLID_CONTROL_WIRELESSAP_H
00186 

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal