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

SolidModules

manager.h

Go to the documentation of this file.
00001 /*
00002 Copyright 2008 Will Stephenson <wstephenson@kde.org>
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License as
00006 published by the Free Software Foundation; either version 2 of
00007 the License or (at your option) version 3 or any later version
00008 accepted by the membership of KDE e.V. (or its successor approved
00009 by the membership of KDE e.V.), which shall act as a proxy 
00010 defined in Section 14 of version 3 of the license.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program.  If not, see <http://www.gnu.org/licenses/>.
00019 */
00020 
00021 #ifndef NM07_NETWORKMANAGER_H
00022 #define NM07_NETWORKMANAGER_H
00023 
00024 #include "solid/control/ifaces/networkmanager.h"
00025 #include <QDBusObjectPath>
00026 #include <kdemacros.h>
00027 
00028 class NMNetworkInterface;
00029 class NMNetworkManagerPrivate;
00030 
00031 class KDE_EXPORT NMNetworkManager : public Solid::Control::Ifaces::NetworkManager
00032 {
00033 Q_OBJECT
00034 Q_DECLARE_PRIVATE(NMNetworkManager)
00035 Q_INTERFACES(Solid::Control::Ifaces::NetworkManager)
00036 
00037 public:
00038     static const QString DBUS_SERVICE;
00039     static const QString DBUS_DAEMON_PATH;
00040     static const QString DBUS_USER_SETTINGS_PATH;
00041     static const QString DBUS_SYSTEM_SETTINGS_PATH;
00042 
00043     NMNetworkManager(QObject * parent, const QStringList & args);
00044     ~NMNetworkManager();
00045     Solid::Networking::Status status() const;
00046     QStringList networkInterfaces() const;
00047     QObject *createNetworkInterface(const QString &uni);
00048     bool isNetworkingEnabled() const;
00049     bool isWirelessEnabled() const;
00050     bool isWirelessHardwareEnabled() const;
00051     void activateConnection(const QString & interfaceUni, const QString & connectionUni, const QVariantMap & connectionParameters);
00052     void deactivateConnection(const QString & activeConnection);
00053     QStringList activeConnections() const;
00054 public Q_SLOTS:
00055     void setNetworkingEnabled(bool enabled);
00056     void setWirelessEnabled(bool enabled);
00057 
00058 Q_SIGNALS:
00059     void statusChanged(Solid::Networking::Status status);
00060     void networkInterfaceAdded(const QString & uni);
00061     void networkInterfaceRemoved(const QString & uni);
00062     void wirelessEnabledChanged(bool);
00063     void networkingEnabledChanged(bool);
00064     void activeConnectionsChanged();
00065 
00066 protected Q_SLOTS:
00067     void deviceAdded(const QDBusObjectPath &state);
00068     void deviceRemoved(const QDBusObjectPath &state);
00069     void stateChanged(uint state);
00070     void propertiesChanged(const QVariantMap &properties);
00071     void nameOwnerChanged(QString, QString, QString);
00072 private:
00073     static Solid::Networking::Status convertNMState(uint state);
00074 private:
00075     NMNetworkManagerPrivate * d_ptr;
00076 };
00077 
00078 #endif
00079 

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
  •   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