Solid
Solid::Networking Namespace Reference
This class allow to query the underlying system 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. More...
Classes | |
class | Notifier |
This object emits signals, for use if your application requires notification of changes to networking. More... | |
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 class allow to query the underlying system 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.It's the unique entry point for network management. Applications should use it to find network interfaces, or to be notified about network related changes.
Note that it's implemented as a singleton and encapsulates the backend logic.
Enumeration Type Documentation
This defines application policy in response to networking connect/disconnect events.
- Enumerator:
Definition at line 56 of file networking.h.
Describes the state of the networking system.
- Enumerator:
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 119 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 129 of file networking.cpp.
Solid::Networking::Notifier * Solid::Networking::notifier | ( | ) |
Definition at line 65 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 124 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 134 of file networking.cpp.
Solid::Networking::Status Solid::Networking::status | ( | ) |