• 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     Copyright (C) 2006-2007 Kevin Ottens <ervin@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 SOLID_CONTROL_NETWORKMANAGER
00022 #define SOLID_CONTROL_NETWORKMANAGER
00023 
00024 #include <QtCore/QObject>
00025 #include <QtCore/QVariant>
00026 
00027 #include <solid/networking.h>
00028 #include "solid_control_export.h"
00029 
00030 namespace Solid
00031 {
00032 namespace Control
00033 {
00034     namespace Ifaces
00035     {
00036         class NetworkManager;
00037     }
00038     class Network;
00039     class NetworkInterface;
00040     typedef QList<NetworkInterface*> NetworkInterfaceList;
00041         
00052     namespace NetworkManager
00053     {
00057         SOLIDCONTROL_EXPORT Solid::Networking::Status status();
00064         SOLIDCONTROL_EXPORT NetworkInterfaceList networkInterfaces();
00065 
00073         SOLIDCONTROL_EXPORT NetworkInterface * findNetworkInterface(const QString &uni);
00074 
00082         SOLIDCONTROL_EXPORT bool isNetworkingEnabled();
00083 
00089         SOLIDCONTROL_EXPORT bool isWirelessEnabled();
00090 
00091 
00097         SOLIDCONTROL_EXPORT void setNetworkingEnabled(bool enabled);
00098 
00106         SOLIDCONTROL_EXPORT bool isWirelessHardwareEnabled();
00107 
00113         SOLIDCONTROL_EXPORT void setWirelessEnabled(bool enabled);
00114 
00121         SOLIDCONTROL_EXPORT void activateConnection(const QString & deviceUni, const QString & connectionUni,
00122                 const QVariantMap & connectionParameters );
00127         SOLIDCONTROL_EXPORT void deactivateConnection(const QString & activeConnectionUni);
00128 
00129         class SOLIDCONTROL_EXPORT Notifier : public QObject
00130         {
00131             Q_OBJECT
00132         Q_SIGNALS:
00136             void statusChanged(Solid::Networking::Status status);
00142             void networkInterfaceAdded(const QString &uni);
00143 
00149             void networkInterfaceRemoved(const QString &uni);
00153             void wirelessEnabledChanged(bool enabled);
00157             void wirelessHardwareEnabledChanged(bool enabled);
00158         };
00159 
00160         SOLIDCONTROL_EXPORT Notifier *notifier();
00161     }
00162 
00163 } // Control
00164 } // Solid
00165 
00166 #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