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

libsolidcontrol

networkmanager.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006 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 Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018 */
00019 
00020 #ifndef SOLID_IFACES_NETWORKMANAGER
00021 #define SOLID_IFACES_NETWORKMANAGER
00022 
00023 #include <QtCore/QObject>
00024 #include <solid/networking.h>
00025 #include "../solid_control_export.h"
00026 #include "../networkmanager.h"
00027 
00028 namespace Solid
00029 {
00030 namespace Control
00031 {
00032 namespace Ifaces
00033 {
00042     class SOLIDCONTROLIFACES_EXPORT NetworkManager : public QObject
00043     {
00044         Q_OBJECT
00045     public:
00051         NetworkManager(QObject * parent = 0);
00055         virtual ~NetworkManager();
00056 
00060         virtual Solid::Networking::Status status() const = 0;
00061 
00068         virtual QStringList networkInterfaces() const = 0;
00069 
00076         virtual QObject *createNetworkInterface(const QString &uni) = 0;
00077 
00083         virtual bool isNetworkingEnabled() const = 0;
00084 
00090         virtual bool isWirelessEnabled() const = 0;
00091 
00099         virtual bool isWirelessHardwareEnabled() const = 0;
00100 
00101         virtual void activateConnection(const QString & interfaceUni, const QString & connectionUni, const QVariantMap & connectionParameters ) = 0;
00102 
00103         virtual void deactivateConnection(const QString & activeConnection) = 0;
00104 
00105     public Q_SLOTS:
00111         virtual void setNetworkingEnabled(bool enabled) = 0;
00112 
00118         virtual void setWirelessEnabled(bool enabled) = 0;
00119 
00120     Q_SIGNALS:
00124         void statusChanged(Solid::Networking::Status status);
00125 
00131         void networkInterfaceAdded(const QString  & uni);
00132 
00138         void networkInterfaceRemoved(const QString  & uni);
00139 
00143         void wirelessEnabledChanged(bool enabled);
00144 
00148         void wirelessHardwareEnabledChanged(bool enabled);
00149     };
00150 
00151 } // Ifaces
00152 
00153 } // Control
00154 
00155 } // Solid
00156 
00157 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::NetworkManager, "org.kde.Solid.Control.Ifaces.NetworkManager/0.1")
00158 
00159 #endif

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