SolidModules
wirelessnetworkinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NM07_WIRELESSNETWORKINTERFACE_H
00022 #define NM07_WIRELESSNETWORKINTERFACE_H
00023
00024 #include "networkinterface.h"
00025
00026 #include "solid/control/ifaces/wirelessnetworkinterface.h"
00027
00028 #include <QDBusObjectPath>
00029 #include <kdemacros.h>
00030 #include "dbus/generic-types.h"
00031
00032 class NMNetworkManager;
00033 class NMWirelessNetworkInterfacePrivate;
00034
00035 class KDE_EXPORT NMWirelessNetworkInterface : public NMNetworkInterface, virtual public Solid::Control::Ifaces::WirelessNetworkInterface
00036 {
00037 Q_OBJECT
00038 Q_DECLARE_PRIVATE(NMWirelessNetworkInterface)
00039 Q_INTERFACES(Solid::Control::Ifaces::WirelessNetworkInterface)
00040
00041 public:
00042 NMWirelessNetworkInterface(const QString & path, NMNetworkManager * manager, QObject * parent);
00043 ~NMWirelessNetworkInterface();
00044 MacAddressList accessPoints() const;
00045 QString activeAccessPoint() const;
00046 QString hardwareAddress() const;
00047 Solid::Control::WirelessNetworkInterface::OperationMode mode() const;
00048 int bitRate() const;
00049 Solid::Control::WirelessNetworkInterface::Capabilities wirelessCapabilities() const;
00050 QObject * createAccessPoint(const QString & uni);
00051
00052 static Solid::Control::WirelessNetworkInterface::OperationMode convertOperationMode(uint);
00053 static Solid::Control::WirelessNetworkInterface::Capabilities convertCapabilities(uint);
00054 protected Q_SLOTS:
00055 void wirelessPropertiesChanged(const QVariantMap &);
00056 void accessPointAdded(const QDBusObjectPath &);
00057 void accessPointRemoved(const QDBusObjectPath &);
00058 Q_SIGNALS:
00059 void bitRateChanged(int bitrate);
00060 void activeAccessPointChanged(const QString &);
00061 void modeChanged(Solid::Control::WirelessNetworkInterface::OperationMode);
00062 void accessPointAppeared(const QString &);
00063 void accessPointDisappeared(const QString &);
00064 };
00065
00066 #endif //NM07_WIRELESSNETWORKINTERFACE_H
00067