Changeset View
Changeset View
Standalone View
Standalone View
daemon/backends/upower/powerdevilupowerbackend.cpp
Context not available. | |||||
316 | canHybridSleep.waitForFinished(); | 316 | canHybridSleep.waitForFinished(); | ||
---|---|---|---|---|---|
317 | if (canHybridSleep.isValid() && (canHybridSleep.value() == QLatin1String("yes") || canHybridSleep.value() == QLatin1String("challenge"))) | 317 | if (canHybridSleep.isValid() && (canHybridSleep.value() == QLatin1String("yes") || canHybridSleep.value() == QLatin1String("challenge"))) | ||
318 | supported |= HybridSuspend; | 318 | supported |= HybridSuspend; | ||
319 | | ||||
320 | QDBusPendingReply<QString> canSuspendThenHibernate = m_login1Interface.data()->asyncCall("CanSuspendThenHibernate"); | ||||
321 | canSuspendThenHibernate.waitForFinished(); | ||||
322 | if (canSuspendThenHibernate.isValid() && (canSuspendThenHibernate.value() == QLatin1String("yes") || canSuspendThenHibernate.value() == QLatin1String("challenge"))) | ||||
323 | supported |= SuspendThenHibernate; | ||||
319 | } | 324 | } | ||
320 | 325 | | |||
321 | /* There's a chance we're using ConsoleKit rather than ConsoleKit2 as the | 326 | /* There's a chance we're using ConsoleKit rather than ConsoleKit2 as the | ||
Context not available. |