• Skip to content
  • Skip to link menu
KDE 4.2 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 <QtCore/QStringList>
00025 #include <solid/networking.h>
00026 #include "../solid_control_export.h"
00027 #include "../networkmanager.h"
00028 
00029 namespace Solid
00030 {
00031 namespace Control
00032 {
00033 namespace Ifaces
00034 {
00043     class SOLIDCONTROLIFACES_EXPORT NetworkManager : public QObject
00044     {
00045         Q_OBJECT
00046     public:
00052         NetworkManager(QObject * parent = 0);
00056         virtual ~NetworkManager();
00057 
00061         virtual Solid::Networking::Status status() const = 0;
00062 
00069         virtual QStringList networkInterfaces() const = 0;
00070 
00077         virtual QObject *createNetworkInterface(const QString &uni) = 0;
00078 
00084         virtual bool isNetworkingEnabled() const = 0;
00085 
00091         virtual bool isWirelessEnabled() const = 0;
00092 
00100         virtual bool isWirelessHardwareEnabled() const = 0;
00101 
00102         virtual void activateConnection(const QString & interfaceUni, const QString & connectionUni, const QVariantMap & connectionParameters ) = 0;
00103 
00104         virtual void deactivateConnection(const QString & activeConnection) = 0;
00105 
00109         virtual QStringList activeConnections() const = 0;
00110 
00111     public Q_SLOTS:
00117         virtual void setNetworkingEnabled(bool enabled) = 0;
00118 
00124         virtual void setWirelessEnabled(bool enabled) = 0;
00125 
00126     Q_SIGNALS:
00130         void statusChanged(Solid::Networking::Status status);
00131 
00137         void networkInterfaceAdded(const QString  & uni);
00138 
00144         void networkInterfaceRemoved(const QString  & uni);
00145 
00149         void wirelessEnabledChanged(bool enabled);
00150 
00154         void wirelessHardwareEnabledChanged(bool enabled);
00155 
00159         void activeConnectionsChanged();
00160     };
00161 
00162 } // Ifaces
00163 
00164 } // Control
00165 
00166 } // Solid
00167 
00168 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::NetworkManager, "org.kde.Solid.Control.Ifaces.NetworkManager/0.1")
00169 
00170 #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
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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