Solid
Classes | |
class | Notifier |
Enumerations | |
enum | ManagementPolicy { Manual, OnNextStatusChange, Managed } |
enum | Status { Unknown, Unconnected, Disconnecting, Connecting, Connected } |
Functions | |
SOLID_EXPORT ManagementPolicy | connectPolicy () |
SOLID_EXPORT ManagementPolicy | disconnectPolicy () |
SOLID_EXPORT Notifier * | notifier () |
SOLID_EXPORT void | setConnectPolicy (ManagementPolicy policy) |
SOLID_EXPORT void | setDisconnectPolicy (ManagementPolicy policy) |
SOLID_EXPORT Status | status () |
Detailed Description
This namespace contains all the network-related high-level methods: querying the underlying system for network availability, being notified when network availability changes (e.g.
due to interfaces appearing or disappearing).
It also allows application to specify the connection and disconnection policies that it would like to use, for the network.
Enumeration Type Documentation
This defines application policy in response to networking connect/disconnect events.
Definition at line 56 of file networking.h.
Describes the state of the networking system.
Definition at line 45 of file networking.h.
Function Documentation
Solid::Networking::ManagementPolicy Solid::Networking::connectPolicy | ( | ) |
Retrieve a policy managing the application's connect behaviour.
- Returns
- the connection policy in use
Definition at line 138 of file networking.cpp.
Solid::Networking::ManagementPolicy Solid::Networking::disconnectPolicy | ( | ) |
Retrieve a policy managing the application's disconnect behaviour.
- Returns
- the disconnection policy in use
Definition at line 148 of file networking.cpp.
Solid::Networking::Notifier * Solid::Networking::notifier | ( | ) |
Definition at line 85 of file networking.cpp.
void Solid::Networking::setConnectPolicy | ( | ManagementPolicy | policy | ) |
Set a policy to manage the application's connect behaviour.
- Parameters
-
policy the new connection policy
Definition at line 143 of file networking.cpp.
void Solid::Networking::setDisconnectPolicy | ( | ManagementPolicy | policy | ) |
Set a policy to manage the application's disconnect behaviour.
- Parameters
-
policy the new disconnection policy
Definition at line 153 of file networking.cpp.
Solid::Networking::Status Solid::Networking::status | ( | ) |
Get the current networking status If the result is Unknown, the backend may be unconfigured or otherwise in a state where it cannot report useful networking status Solid::Networking::Status.
Definition at line 80 of file networking.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.