not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / solid / networkmanager-0.6 / NetworkManager-wirelessnetwork.h
blobc4c3fe6c5aaa71832c5a4cc01450477a5fcd5797
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
3 Copyright (C) 2008 Pino Toscano <pino@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
21 #ifndef NETWORKMANAGER_WIRELESSNETWORK_H
22 #define NETWORKMANAGER_WIRELESSNETWORK_H
24 #include <solid/control/ifaces/wirelessnetworkinterface.h>
25 #include <solid/control/wirelessnetworkinterface.h>
27 #include "NetworkManager-networkinterface.h"
29 class NMWirelessNetworkPrivate;
31 class NMWirelessNetwork : public NMNetworkInterface, virtual public Solid::Control::Ifaces::WirelessNetworkInterface
33 Q_OBJECT
34 Q_INTERFACES(Solid::Control::Ifaces::WirelessNetworkInterface)
35 public:
36 NMWirelessNetwork(const QString & networkPath);
37 virtual ~NMWirelessNetwork();
38 int bitRate() const;
39 Solid::Control::WirelessNetworkInterface::Capabilities wirelessCapabilities() const;
40 Solid::Control::WirelessNetworkInterface::OperationMode mode() const;
41 void setSignalStrength(const QDBusObjectPath & netPath, int strength);
42 void setBitrate(int rate);
43 MacAddressList accessPoints() const;
44 QString activeAccessPoint() const;
45 QString hardwareAddress() const;
46 QObject * createAccessPoint(const QString & uni);
47 /* reimp */ bool activateConnection(const QString & connectionUni, const QVariantMap & connectionParameters);
48 /* reimp */ bool deactivateConnection();
49 Q_SIGNALS:
50 void bitRateChanged(int bitrate);
51 void activeAccessPointChanged(const QString &);
52 void modeChanged(Solid::Control::WirelessNetworkInterface::OperationMode);
53 void accessPointAppeared(const QString &);
54 void accessPointDisappeared(const QString &);
55 private:
56 Q_DECLARE_PRIVATE(NMWirelessNetwork)
57 Q_DISABLE_COPY(NMWirelessNetwork)
60 #endif