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

libsolidcontrol

FakeNetworkInterface Class Reference

#include <fakenetworkinterface.h>

Inheritance diagram for FakeNetworkInterface:

Inheritance graph
[legend]

List of all members.


Signals

void activeChanged (bool)
void connectionStateChanged (int)
void ipDetailsChanged ()
void linkUpChanged (bool)

Public Member Functions

void activate (const QString &connectionUni, const QString &extra_connection_parameter=QString())
Solid::Control::NetworkInterface::Capabilities capabilities () const
Solid::Control::NetworkInterface::ConnectionState connectionState () const
void deactivate ()
int designSpeed () const
QString driver () const
 FakeNetworkInterface (const QMap< QString, QVariant > &propertyMap, QObject *parent=0)
QString interfaceName () const
Solid::Control::IPv4Config ipV4Config () const
bool isActive () const
QString uni () const
virtual ~FakeNetworkInterface ()

Protected Attributes

QString mActiveConnection
QMap< QString, QVariant > mPropertyMap

Detailed Description

Definition at line 33 of file fakenetworkinterface.h.


Constructor & Destructor Documentation

FakeNetworkInterface::FakeNetworkInterface ( const QMap< QString, QVariant > &  propertyMap,
QObject *  parent = 0 
)

Definition at line 26 of file fakenetworkinterface.cpp.

FakeNetworkInterface::~FakeNetworkInterface (  )  [virtual]

Definition at line 31 of file fakenetworkinterface.cpp.


Member Function Documentation

void FakeNetworkInterface::activate ( const QString &  connectionUni,
const QString &  extra_connection_parameter = QString() 
)

Definition at line 99 of file fakenetworkinterface.cpp.

void FakeNetworkInterface::activeChanged ( bool   )  [signal]

Solid::Control::NetworkInterface::Capabilities FakeNetworkInterface::capabilities (  )  const [virtual]

Retrieves the capabilities supported by this device.

Returns:
the capabilities of the device
See also:
Solid::Control::NetworkInterface::Capabilities

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 87 of file fakenetworkinterface.cpp.

Solid::Control::NetworkInterface::ConnectionState FakeNetworkInterface::connectionState (  )  const [virtual]

Retrieves the current state of the network connection held by this device.

It's a high level view of the connection. It's user oriented so technically it provides states coming from different layers.

Returns:
the current connection state
See also:
Solid::Control::NetworkInterface::ConnectionState

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 56 of file fakenetworkinterface.cpp.

void FakeNetworkInterface::connectionStateChanged ( int  state  )  [virtual, signal]

This signal is emitted when the device's connection state changed.

For example, if the device was disconnected and started to activate

Parameters:
state the new state of the connection
See also:
Solid::Control::NetworkInterface::ConnectionState

Implements Solid::Control::Ifaces::NetworkInterface.

void FakeNetworkInterface::deactivate (  ) 

Definition at line 104 of file fakenetworkinterface.cpp.

int FakeNetworkInterface::designSpeed (  )  const [virtual]

Retrieves the maximum speed as reported by the device.

Note that it's a design related information and that the device might not reach this maximum.

Returns:
the device maximum speed

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 82 of file fakenetworkinterface.cpp.

QString FakeNetworkInterface::driver (  )  const [virtual]

Handle for the system driver controlling this network interface.

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 47 of file fakenetworkinterface.cpp.

QString FakeNetworkInterface::interfaceName (  )  const [virtual]

The system name for the network interface.

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 42 of file fakenetworkinterface.cpp.

void FakeNetworkInterface::ipDetailsChanged (  )  [virtual, signal]

This signal is emitted when the settings of this network have changed.

Implements Solid::Control::Ifaces::NetworkInterface.

Solid::Control::IPv4Config FakeNetworkInterface::ipV4Config (  )  const [virtual]

Access the network configuration for this object.

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 110 of file fakenetworkinterface.cpp.

bool FakeNetworkInterface::isActive (  )  const [virtual]

Retrieves the activation status of this network interface.

Returns:
true if this network interface is active, false otherwise

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 51 of file fakenetworkinterface.cpp.

void FakeNetworkInterface::linkUpChanged ( bool   )  [signal]

QString FakeNetworkInterface::uni (  )  const [virtual]

Retrieves the Unique Network Identifier (UNI) of the Network.

This identifier is unique for each network and network interface in the system.

Returns:
the Unique Network Identifier of the current network

Implements Solid::Control::Ifaces::NetworkInterface.

Definition at line 36 of file fakenetworkinterface.cpp.


Member Data Documentation

QString FakeNetworkInterface::mActiveConnection [protected]

Definition at line 61 of file fakenetworkinterface.h.

QMap<QString, QVariant> FakeNetworkInterface::mPropertyMap [protected]

Definition at line 62 of file fakenetworkinterface.h.


The documentation for this class was generated from the following files:
  • fakenetworkinterface.h
  • fakenetworkinterface.cpp

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