Solid
powermanagement.cpp
Go to the documentation of this file.
62 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.kde.Solid.PowerManagement"))) {
65 if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QLatin1String("org.freedesktop.PowerManagement"))) {
88 void Solid::PowerManagement::requestSleep(SleepState state, QObject *receiver, const char *member)
145 QDBusMessage message = QDBusMessage::createMethodCall(QLatin1String("org.freedesktop.ScreenSaver"),
174 QDBusMessage message = QDBusMessage::createMethodCall(QLatin1String("org.freedesktop.ScreenSaver"),
264 QDBusMessage call = QDBusMessage::createMethodCall(QLatin1String("org.kde.Solid.PowerManagement"),
SOLID_EXPORT void requestSleep(SleepState state, QObject *receiver, const char *member)
Requests that the system go to sleep.
Definition: powermanagement.cpp:88
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 bool appShouldConserveResources()
Retrieves a high level indication of how applications should behave according to the power management...
Definition: powermanagement.cpp:78
bool isValid() const
QDBusConnection sessionBus()
~PowerManagementPrivate()
Definition: powermanagement.cpp:70
void slotPowerSaveStatusChanged(bool newState)
Definition: powermanagement.cpp:233
bool disconnect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
void slotCanHybridSuspendChanged(bool newState)
Definition: powermanagement.cpp:220
SOLID_EXPORT QSet< SleepState > supportedSleepStates()
Retrieves the set of suspend methods supported by the system.
Definition: powermanagement.cpp:83
T1 value() const
void waitForFinished()
void slotCanHibernateChanged(bool newState)
Definition: powermanagement.cpp:207
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
bool isValid() const
void slotCanSuspendChanged(bool newState)
Definition: powermanagement.cpp:194
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
QDBusPendingCall asyncCall(const QDBusMessage &message, int timeout) const
void slotServiceRegistered(const QString &serviceName)
Definition: powermanagement.cpp:243
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
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
void slotServiceUnregistered(const QString &serviceName)
Definition: powermanagement.cpp:283
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
QString applicationName()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.