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

SolidModules

NetworkManager-networkmanager.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
00003     Copyright (C) 2008 Pino Toscano <pino@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 
00019 */
00020 
00021 #ifndef NETWORKMANAGER_NETWORK_MANAGER_H
00022 #define NETWORKMANAGER_NETWORK_MANAGER_H
00023 
00024 #include <solid/control/ifaces/networkmanager.h>
00025 
00026 class QDBusObjectPath;
00027 typedef class QList<QVariant> QVariantList;
00028 
00029 class NMNetworkManagerPrivate;
00030 class NMNetworkManager : public Solid::Control::Ifaces::NetworkManager
00031 {
00032 Q_INTERFACES(Solid::Control::Ifaces::NetworkManager)
00033 Q_OBJECT
00034     public:
00035         NMNetworkManager(QObject * parent, const QVariantList  & args);
00036         virtual ~NMNetworkManager();
00037         Solid::Networking::Status status() const;
00038         QStringList networkInterfaces() const;
00039         QObject * createNetworkInterface(const QString &);
00040         void activateConnection(const QString & interfaceUni, const QString & connectionUni, const QVariantMap & connectionParameters);
00041         void deactivateConnection(const QString & activeConnection);
00042 
00043         bool isNetworkingEnabled() const;
00044         bool isWirelessEnabled() const;
00045         bool isWirelessHardwareEnabled() const;
00046     public Q_SLOTS:
00047         void setWirelessEnabled(bool);
00048         void setNetworkingEnabled(bool);
00049     protected Q_SLOTS:
00050         void stateChanged(uint);
00051         void receivedDeviceAdded(const QDBusObjectPath &);
00052         void receivedDeviceRemoved(const QDBusObjectPath &);
00053         void deviceStrengthChanged(const QDBusObjectPath &, int strength);
00054         void networkStrengthChanged(const QDBusObjectPath &, const QDBusObjectPath &,int);
00055         void wirelessNetworkAppeared(const QDBusObjectPath &, const QDBusObjectPath &);
00056         void wirelessNetworkDisappeared(const QDBusObjectPath &, const QDBusObjectPath &);
00057         void deviceActivationStageChanged(const QDBusObjectPath &, uint);
00058         void carrierOn(const QDBusObjectPath &);
00059         void carrierOff(const QDBusObjectPath &);
00060         void nowActive(const QDBusObjectPath &);
00061         void noLongerActive(const QDBusObjectPath &);
00062         void activating(const QDBusObjectPath &);
00063         void activationFailed(const QDBusObjectPath &);
00064         void wirelessEnabled(bool, bool);
00065         void nameOwnerChanged(const QString &, const QString &, const QString &);
00066     private:
00067         NMNetworkManagerPrivate * d;
00068 };
00069 
00070 #endif

SolidModules

Skip menu "SolidModules"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

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