Solid
powermanagement.cpp
Go to the documentation of this file.
62 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.kde.Solid.PowerManagement"))) {
88void Solid::PowerManagement::requestSleep(SleepState state, QObject *receiver, const char *member)
QDBusServiceWatcher serviceWatcher
Definition powermanagement_p.h:60
OrgFreedesktopPowerManagementInhibitInterface inhibitIface
Definition powermanagement_p.h:59
void slotCanHibernateChanged(bool newState)
Definition powermanagement.cpp:207
void slotServiceRegistered(const QString &serviceName)
Definition powermanagement.cpp:243
@ ChangeScreenSettings
Definition powermanagement_p.h:42
OrgFreedesktopPowerManagementInterface managerIface
Definition powermanagement_p.h:57
void slotServiceUnregistered(const QString &serviceName)
Definition powermanagement.cpp:283
void slotCanHybridSuspendChanged(bool newState)
Definition powermanagement.cpp:220
void slotCanSuspendChanged(bool newState)
Definition powermanagement.cpp:194
QSet< Solid::PowerManagement::SleepState > supportedSleepStates
Definition powermanagement_p.h:63
OrgKdeSolidPowerManagementPolicyAgentInterface policyAgentIface
Definition powermanagement_p.h:58
void slotPowerSaveStatusChanged(bool newState)
Definition powermanagement.cpp:233
PowerManagementPrivate()
Definition powermanagement.cpp:31
~PowerManagementPrivate()
Definition powermanagement.cpp:70
void appShouldConserveResourcesChanged(bool newState)
This signal is emitted when the AC adapter is plugged or unplugged.
void resumingFromSuspend()
This signal is emitted whenever the system is resuming from suspend.
SOLID_EXPORT bool appShouldConserveResources()
Retrieves a high level indication of how applications should behave according to the power management...
Definition powermanagement.cpp:78
SOLID_EXPORT bool stopSuppressingScreenPowerManagement(int cookie)
Tell the power management that a particular screen power management suppression is no longer needed.
Definition powermanagement.cpp:168
SOLID_EXPORT int beginSuppressingSleep(const QString &reason=QString())
Tell the power management subsystem to suppress automatic system sleep until further notice.
Definition powermanagement.cpp:109
SOLID_EXPORT void requestSleep(SleepState state, QObject *receiver, const char *member)
Requests that the system go to sleep.
Definition powermanagement.cpp:88
SOLID_EXPORT int beginSuppressingScreenPowerManagement(const QString &reason=QString())
Tell the power management subsystem to suppress automatic screen power management until further notic...
Definition powermanagement.cpp:137
SOLID_EXPORT bool stopSuppressingSleep(int cookie)
Tell the power management that a particular sleep suppression is no longer needed.
Definition powermanagement.cpp:127
SOLID_EXPORT Notifier * notifier()
Definition powermanagement.cpp:189
SOLID_EXPORT QSet< SleepState > supportedSleepStates()
Retrieves the set of suspend methods supported by the system.
Definition powermanagement.cpp:83
Definition acadapter.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 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 Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.