libsolidcontrol
Solid::Control::Ifaces::NetworkManager Class Reference
#include <networkmanager.h>

Detailed Description
This class specifies the interface a backend will have to implement in order to be used in the system.A network manager allow to query the underlying platform to discover the available network interfaces and reachable network. It has also the responsibility to notify when a network interface or a network appear or disappear.
Definition at line 42 of file ifaces/networkmanager.h.
Public Slots | |
virtual void | setNetworkingEnabled (bool enabled)=0 |
virtual void | setWirelessEnabled (bool enabled)=0 |
Signals | |
void | networkInterfaceAdded (const QString &uni) |
void | networkInterfaceRemoved (const QString &uni) |
void | statusChanged (Solid::Networking::Status status) |
void | wirelessEnabledChanged (bool enabled) |
void | wirelessHardwareEnabledChanged (bool enabled) |
Public Member Functions | |
virtual void | activateConnection (const QString &interfaceUni, const QString &connectionUni, const QVariantMap &connectionParameters)=0 |
virtual QObject * | createNetworkInterface (const QString &uni)=0 |
virtual void | deactivateConnection (const QString &activeConnection)=0 |
virtual bool | isNetworkingEnabled () const =0 |
virtual bool | isWirelessEnabled () const =0 |
virtual bool | isWirelessHardwareEnabled () const =0 |
virtual QStringList | networkInterfaces () const =0 |
NetworkManager (QObject *parent=0) | |
virtual Solid::Networking::Status | status () const =0 |
virtual | ~NetworkManager () |
Constructor & Destructor Documentation
Solid::Control::Ifaces::NetworkManager::NetworkManager | ( | QObject * | parent = 0 |
) |
Constructs a NetworkManager.
- Parameters:
-
parent the parent object
Definition at line 22 of file ifaces/networkmanager.cpp.
Solid::Control::Ifaces::NetworkManager::~NetworkManager | ( | ) | [virtual] |
Member Function Documentation
virtual void Solid::Control::Ifaces::NetworkManager::activateConnection | ( | const QString & | interfaceUni, | |
const QString & | connectionUni, | |||
const QVariantMap & | connectionParameters | |||
) | [pure virtual] |
Implemented in FakeNetworkManager.
virtual QObject* Solid::Control::Ifaces::NetworkManager::createNetworkInterface | ( | const QString & | uni | ) | [pure 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
Implemented in FakeNetworkManager.
virtual void Solid::Control::Ifaces::NetworkManager::deactivateConnection | ( | const QString & | activeConnection | ) | [pure virtual] |
Implemented in FakeNetworkManager.
virtual bool Solid::Control::Ifaces::NetworkManager::isNetworkingEnabled | ( | ) | const [pure virtual] |
Retrieves the activation status of networking (as a whole) in the system.
- Returns:
- true if this networking is enabled, false otherwise
Implemented in FakeNetworkManager.
virtual bool Solid::Control::Ifaces::NetworkManager::isWirelessEnabled | ( | ) | const [pure virtual] |
Retrieves the activation status of wireless networking in the system.
- Returns:
- true if this wireless networking is enabled, false otherwise
Implemented in FakeNetworkManager.
virtual bool Solid::Control::Ifaces::NetworkManager::isWirelessHardwareEnabled | ( | ) | const [pure 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
Implemented in FakeNetworkManager.
void Solid::Control::Ifaces::NetworkManager::networkInterfaceAdded | ( | const QString & | uni | ) | [signal] |
This signal is emitted when a new network interface is available.
- Parameters:
-
uni the network interface identifier
void Solid::Control::Ifaces::NetworkManager::networkInterfaceRemoved | ( | const QString & | uni | ) | [signal] |
This signal is emitted when a network interface is not available anymore.
- Parameters:
-
uni the network interface identifier
virtual QStringList Solid::Control::Ifaces::NetworkManager::networkInterfaces | ( | ) | const [pure 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
Implemented in FakeNetworkManager.
virtual void Solid::Control::Ifaces::NetworkManager::setNetworkingEnabled | ( | bool | enabled | ) | [pure virtual, slot] |
Activates or deactivates networking (as a whole).
- Parameters:
-
enabled true to activate networking, false otherwise
Implemented in FakeNetworkManager.
virtual void Solid::Control::Ifaces::NetworkManager::setWirelessEnabled | ( | bool | enabled | ) | [pure virtual, slot] |
Activates or deactivates wireless networking.
- Parameters:
-
enabled true to activate wireless networking, false otherwise
Implemented in FakeNetworkManager.
virtual Solid::Networking::Status Solid::Control::Ifaces::NetworkManager::status | ( | ) | const [pure virtual] |
void Solid::Control::Ifaces::NetworkManager::statusChanged | ( | Solid::Networking::Status | status | ) | [signal] |
This signal is emitted when the system's connection state changes.
void Solid::Control::Ifaces::NetworkManager::wirelessEnabledChanged | ( | bool | enabled | ) | [signal] |
This signal is emitted when the status of the wireless changed.
void Solid::Control::Ifaces::NetworkManager::wirelessHardwareEnabledChanged | ( | bool | enabled | ) | [signal] |
This signal is emitted when the status of the wireless hardware changed.
The documentation for this class was generated from the following files: