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

SolidModules

networkinterface.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_NETWORKINTERFACE_H
00022 #define NM07_NETWORKINTERFACE_H
00023 
00024 #include "solid/control/solid_control_export.h"
00025 #include "solid/control/networkinterface.h"
00026 #include "solid/control/ifaces/networkinterface.h"
00027 
00028 class NMNetworkInterfacePrivate;
00029 class NMNetworkManager;
00030 
00031 class KDE_EXPORT NMNetworkInterface : public QObject, virtual public Solid::Control::Ifaces::NetworkInterface
00032 {
00033 Q_OBJECT
00034 Q_DECLARE_PRIVATE(NMNetworkInterface)
00035 Q_INTERFACES(Solid::Control::Ifaces::NetworkInterface)
00036 
00037 Q_PROPERTY(QString uni READ uni WRITE setUni)
00038 Q_PROPERTY(QString interfaceName READ interfaceName WRITE setInterfaceName)
00039 Q_PROPERTY(QString driver READ driver WRITE setDriver)
00040 Q_PROPERTY(QVariant genericCapabilities READ capabilitiesV WRITE setCapabilitiesV)
00041 Q_PROPERTY(int ipV4Address READ ipV4Address)
00042 Q_PROPERTY(bool managed READ managed WRITE setManaged)
00043 
00044 //Q_PROPERTY(Solid::Control::IPv4Config ipV4Config READ ipV4Config WRITE setIpV4Config)
00045 Q_PROPERTY(Solid::Control::NetworkInterface::ConnectionState connectionState READ connectionState WRITE setConnectionState)
00046 Q_FLAGS(Solid::Control::NetworkInterface::Capabilities)
00047 
00048 public:
00049     NMNetworkInterface( const QString & path, NMNetworkManager * manager, QObject * parent );
00050     NMNetworkInterface( NMNetworkInterfacePrivate &dd, NMNetworkManager * manager, QObject * parent );
00051     ~NMNetworkInterface();
00052     QString uni() const;
00053     void setUni(const QVariant&);
00054     QString interfaceName() const;
00055     void setInterfaceName(const QVariant&);
00056     QString driver() const;
00057     void setDriver(const QVariant&);
00058     int ipV4Address() const;
00059     Solid::Control::IPv4Config ipV4Config() const;
00060     bool isActive() const;
00061     Solid::Control::NetworkInterface::ConnectionState connectionState() const;
00062     void setConnectionState(const QVariant&);
00063     int designSpeed() const;
00064     bool isLinkUp() const;
00065     Solid::Control::NetworkInterface::Capabilities capabilities() const;
00066     void setCapabilities(const QVariant&);
00067     QVariant capabilitiesV() const;
00068     void setCapabilitiesV(const QVariant&);
00069     bool managed() const;
00070     void setManaged(const QVariant&);
00071 
00072 Q_SIGNALS:
00073     void ipDetailsChanged();
00074     //void linkUpChanged(bool linkActivated);
00075     void connectionStateChanged(int state);
00076 protected Q_SLOTS:
00077     void stateChanged(uint);
00078 private:
00079     void init();
00080     Solid::Control::NetworkInterface::Capabilities convertCapabilities(uint theirCaps);
00081     Solid::Control::NetworkInterface::ConnectionState convertState(uint theirState);
00082 protected:
00083     NMNetworkInterfacePrivate * d_ptr;
00084 };
00085 
00086 #endif
00087 

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