not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / solid / networkmanager-0.6 / NetworkManager-networkmanager.h
blob1435688e7dcc08fd1b365dbc1355dd82dd4576b5
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_NETWORK_MANAGER_H
22 #define NETWORKMANAGER_NETWORK_MANAGER_H
24 #include <solid/control/ifaces/networkmanager.h>
26 class QDBusObjectPath;
27 typedef class QList<QVariant> QVariantList;
29 class NMNetworkManagerPrivate;
30 class NMNetworkManager : public Solid::Control::Ifaces::NetworkManager
32 Q_INTERFACES(Solid::Control::Ifaces::NetworkManager)
33 Q_OBJECT
34 public:
35 NMNetworkManager(QObject * parent, const QVariantList & args);
36 virtual ~NMNetworkManager();
37 Solid::Networking::Status status() const;
38 QStringList networkInterfaces() const;
39 QObject * createNetworkInterface(const QString &);
40 void activateConnection(const QString & interfaceUni, const QString & connectionUni, const QVariantMap & connectionParameters);
41 void deactivateConnection(const QString & activeConnection);
43 bool isNetworkingEnabled() const;
44 bool isWirelessEnabled() const;
45 bool isWirelessHardwareEnabled() const;
46 QStringList activeConnections() const;
47 public Q_SLOTS:
48 void setWirelessEnabled(bool);
49 void setNetworkingEnabled(bool);
50 protected Q_SLOTS:
51 void stateChanged(uint);
52 void receivedDeviceAdded(const QDBusObjectPath &);
53 void receivedDeviceRemoved(const QDBusObjectPath &);
54 void deviceStrengthChanged(const QDBusObjectPath &, int strength);
55 void networkStrengthChanged(const QDBusObjectPath &, const QDBusObjectPath &,int);
56 void wirelessNetworkAppeared(const QDBusObjectPath &, const QDBusObjectPath &);
57 void wirelessNetworkDisappeared(const QDBusObjectPath &, const QDBusObjectPath &);
58 void deviceActivationStageChanged(const QDBusObjectPath &, uint);
59 void carrierOn(const QDBusObjectPath &);
60 void carrierOff(const QDBusObjectPath &);
61 void nowActive(const QDBusObjectPath &);
62 void noLongerActive(const QDBusObjectPath &);
63 void activating(const QDBusObjectPath &);
64 void activationFailed(const QDBusObjectPath &);
65 void wirelessEnabled(bool, bool);
66 void nameOwnerChanged(const QString &, const QString &, const QString &);
67 private:
68 NMNetworkManagerPrivate * d;
71 #endif