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

libsolidcontrol

fakenetworkinterface.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006,2008 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 FAKE_NETWORK_INTERFACE_H
00021 #define FAKE_NETWORK_INTERFACE_H
00022 
00023 #include <QString>
00024 #include <QVariant>
00025 
00026 #include <kdemacros.h>
00027 
00028 #include <solid/control/ifaces/networkinterface.h>
00029 #include <solid/control/networkipv4config.h>
00030 
00031 using namespace Solid::Control::Ifaces;
00032 
00033 class KDE_EXPORT FakeNetworkInterface : public QObject, virtual public Solid::Control::Ifaces::NetworkInterface
00034 {
00035     friend class FakeNetworkManager;
00036     Q_OBJECT
00037     Q_INTERFACES(Solid::Control::Ifaces::NetworkInterface)
00038 public:
00039         FakeNetworkInterface(const QMap<QString, QVariant>  & propertyMap,
00040                           QObject *parent = 0);
00041         virtual ~FakeNetworkInterface();
00042         QString uni() const;
00043         QString interfaceName() const;
00044         QString driver() const;
00045         bool isActive() const;
00046         Solid::Control::IPv4Config ipV4Config() const;
00047         Solid::Control::NetworkInterface::ConnectionState connectionState() const;
00048         int designSpeed() const;
00049         Solid::Control::NetworkInterface::Capabilities capabilities() const;
00050         void activate(const QString & connectionUni, const QString & extra_connection_parameter = QString() );
00051         void deactivate();
00052     Q_SIGNALS:
00053         void ipDetailsChanged();
00054         void activeChanged(bool);
00055         void linkUpChanged(bool);
00056         void connectionStateChanged(int /*NetworkStatus::ConnectionState */);
00057 
00058     protected:
00059         /* These methods are operations that are carried out by the manager
00060            In a real backend they would be events coming up from the network layer */
00061         QString mActiveConnection;
00062         QMap<QString, QVariant> mPropertyMap;
00063 };
00064 
00065 #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