Solid
networking.h
Go to the documentation of this file.
51 };
60 };
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.
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.