Solid::Networking
Classes | |
class | Notifier |
Enumerations | |
enum | ManagementPolicy { Manual, OnNextStatusChange, Managed } |
enum | Status { Unknown, Unconnected, Disconnecting, Connecting, Connected } |
Functions | |
ManagementPolicy | connectPolicy () |
ManagementPolicy | disconnectPolicy () |
Notifier * | notifier () |
void | setConnectPolicy (ManagementPolicy policy) |
void | setDisconnectPolicy (ManagementPolicy policy) |
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.
- Deprecated:
- since 5.0, use QNetworkConfiguration instead
Enumeration Type Documentation
◆ ManagementPolicy
This defines application policy in response to networking connect/disconnect events.
Definition at line 58 of file networking.h.
◆ Status
Describes the state of the networking system.
Definition at line 47 of file networking.h.
Function Documentation
◆ connectPolicy()
Solid::Networking::ManagementPolicy Solid::Networking::connectPolicy | ( | ) |
Retrieve a policy managing the application's connect behaviour.
- Returns
- the connection policy in use
Definition at line 50 of file networking.cpp.
◆ disconnectPolicy()
Solid::Networking::ManagementPolicy Solid::Networking::disconnectPolicy | ( | ) |
Retrieve a policy managing the application's disconnect behaviour.
- Returns
- the disconnection policy in use
Definition at line 60 of file networking.cpp.
◆ setConnectPolicy()
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 55 of file networking.cpp.
◆ setDisconnectPolicy()
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 65 of file networking.cpp.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:43:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.