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

libsolidcontrol

FakeNetworkManager Class Reference

#include <fakenetworkmanager.h>

Inheritance diagram for FakeNetworkManager:

Inheritance graph
[legend]

List of all members.


Public Slots

void setNetworkingEnabled (bool)
void setWirelessEnabled (bool)

Public Member Functions

void activateConnection (const QString &interfaceUni, const QString &connectionUni, const QVariantMap &connectionParameters)
QStringList activeConnections () const
QStringList activeNetworkInterfaces () const
QObject * createNetworkInterface (const QString &)
void deactivateConnection (const QString &activeConnection)
 FakeNetworkManager (QObject *parent, const QStringList &args, const QString &xmlFile)
 FakeNetworkManager (QObject *parent, const QStringList &args)
bool isNetworkingEnabled () const
bool isWirelessEnabled () const
bool isWirelessHardwareEnabled () const
QStringList networkInterfaces () const
Solid::Networking::Status status () const
virtual ~FakeNetworkManager ()

Detailed Description

Definition at line 41 of file fakenetworkmanager.h.


Constructor & Destructor Documentation

FakeNetworkManager::FakeNetworkManager ( QObject *  parent,
const QStringList &  args 
)

Definition at line 32 of file fakenetworkmanager.cpp.

FakeNetworkManager::FakeNetworkManager ( QObject *  parent,
const QStringList &  args,
const QString &  xmlFile 
)

Definition at line 44 of file fakenetworkmanager.cpp.

FakeNetworkManager::~FakeNetworkManager (  )  [virtual]

Definition at line 58 of file fakenetworkmanager.cpp.


Member Function Documentation

void FakeNetworkManager::activateConnection ( const QString &  interfaceUni,
const QString &  connectionUni,
const QVariantMap &  connectionParameters 
) [virtual]

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 268 of file fakenetworkmanager.cpp.

QStringList FakeNetworkManager::activeConnections (  )  const [virtual]

Access the list of active connection UNIs.

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 279 of file fakenetworkmanager.cpp.

QStringList FakeNetworkManager::activeNetworkInterfaces (  )  const

Definition at line 72 of file fakenetworkmanager.cpp.

QObject * FakeNetworkManager::createNetworkInterface ( const QString &  uni  )  [virtual]

Instantiates a new NetworkInterface object from this backend given its UNI.

Parameters:
uni the identifier of the network interface instantiated
Returns:
a new NetworkInterface object if there's a device having the given UNI, 0 otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 86 of file fakenetworkmanager.cpp.

void FakeNetworkManager::deactivateConnection ( const QString &  activeConnection  )  [virtual]

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 274 of file fakenetworkmanager.cpp.

bool FakeNetworkManager::isNetworkingEnabled (  )  const [virtual]

Retrieves the activation status of networking (as a whole) in the system.

Returns:
true if this networking is enabled, false otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 99 of file fakenetworkmanager.cpp.

bool FakeNetworkManager::isWirelessEnabled (  )  const [virtual]

Retrieves the activation status of wireless networking in the system.

Returns:
true if this wireless networking is enabled, false otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 94 of file fakenetworkmanager.cpp.

bool FakeNetworkManager::isWirelessHardwareEnabled (  )  const [virtual]

Retrieves the status of wireless hardware in the system.

This is typically controlled by a physical switch so there is no way to set this in software.

Since:
KDE 4.1
Returns:
true if this wireless networking is enabled, false otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 112 of file fakenetworkmanager.cpp.

QStringList FakeNetworkManager::networkInterfaces (  )  const [virtual]

Retrieves the list of all the network interfaces Unique Network Identifiers (UNIs) in the system.

It includes both hardware and virtual devices.

Returns:
the list of network interfaces available in this system

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 67 of file fakenetworkmanager.cpp.

void FakeNetworkManager::setNetworkingEnabled ( bool  enabled  )  [virtual, slot]

Activates or deactivates networking (as a whole).

Parameters:
enabled true to activate networking, false otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 122 of file fakenetworkmanager.cpp.

void FakeNetworkManager::setWirelessEnabled ( bool  enabled  )  [virtual, slot]

Activates or deactivates wireless networking.

Parameters:
enabled true to activate wireless networking, false otherwise

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 117 of file fakenetworkmanager.cpp.

Solid::Networking::Status FakeNetworkManager::status (  )  const [virtual]

Get the manager connection state.

Implements Solid::Control::Ifaces::NetworkManager.

Definition at line 62 of file fakenetworkmanager.cpp.


The documentation for this class was generated from the following files:
  • fakenetworkmanager.h
  • fakenetworkmanager.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