Solid
networking.cpp
Go to the documentation of this file.
38 QDBusServiceWatcher *watcher = new QDBusServiceWatcher("org.kde.kded", QDBusConnection::sessionBus(),
62 //connect( iface, SIGNAL(statusChanged(uint)), globalNetworkManager, SIGNAL(statusChanged(Networking::Status)) );
121void Solid::NetworkingPrivate::serviceOwnerChanged( const QString & name, const QString & oldOwner, const QString & newOwner )
Definition: networking_p.h:39
void serviceStatusChanged(bool status)
Definition: networking.cpp:90
This object emits signals, for use if your application requires notification of changes to networking...
Definition: networking.h:98
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.