Solid
networking.h
Go to the documentation of this file.
This object emits signals, for use if your application requires notification of changes to networking...
Definition networking.h:98
void shouldDisconnect()
Signals that the system's network has become disconnected, so receivers should adjust application sta...
void shouldConnect()
Signals that the system's network has become connected, so receivers should connect their sockets,...
void statusChanged(Solid::Networking::Status status)
Signals that the network status has changed.
This namespace contains all the network-related high-level methods: querying the underlying system fo...
Definition networking.h:41
ManagementPolicy
This defines application policy in response to networking connect/disconnect events.
Definition networking.h:56
@ OnNextStatusChange
the app should connect or disconnect the next time the network changes status, thereafter Manual
Definition networking.h:58
@ Manual
Manual - the app should only disconnect when the user does so manually.
Definition networking.h:57
@ Managed
the app should connect or disconnect whenever the KConnectionManager reports a state change
Definition networking.h:59
SOLID_EXPORT ManagementPolicy connectPolicy()
Retrieve a policy managing the application's connect behaviour.
Definition networking.cpp:138
SOLID_EXPORT ManagementPolicy disconnectPolicy()
Retrieve a policy managing the application's disconnect behaviour.
Definition networking.cpp:148
SOLID_EXPORT Status status()
Get the current networking status If the result is Unknown, the backend may be unconfigured or otherw...
Definition networking.cpp:80
SOLID_EXPORT void setConnectPolicy(ManagementPolicy policy)
Set a policy to manage the application's connect behaviour.
Definition networking.cpp:143
@ Unknown
the networking system is not active or unable to report its status - proceed with caution
Definition networking.h:46
SOLID_EXPORT void setDisconnectPolicy(ManagementPolicy policy)
Set a policy to manage the application's disconnect behaviour.
Definition networking.cpp:153
Definition acadapter.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.