Changeset View
Changeset View
Standalone View
Standalone View
daemon/backends/upower/login1suspendjob.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 64 | case PowerDevil::BackendInterface::ToRam: | |||
---|---|---|---|---|---|
65 | reply = m_login1Interface->asyncCallWithArgumentList("Suspend", args); | 65 | reply = m_login1Interface->asyncCallWithArgumentList("Suspend", args); | ||
66 | break; | 66 | break; | ||
67 | case PowerDevil::BackendInterface::ToDisk: | 67 | case PowerDevil::BackendInterface::ToDisk: | ||
68 | reply = m_login1Interface->asyncCallWithArgumentList("Hibernate", args); | 68 | reply = m_login1Interface->asyncCallWithArgumentList("Hibernate", args); | ||
69 | break; | 69 | break; | ||
70 | case PowerDevil::BackendInterface::HybridSuspend: | 70 | case PowerDevil::BackendInterface::HybridSuspend: | ||
71 | reply = m_login1Interface->asyncCallWithArgumentList("HybridSleep", args); | 71 | reply = m_login1Interface->asyncCallWithArgumentList("HybridSleep", args); | ||
72 | break; | 72 | break; | ||
73 | case PowerDevil::BackendInterface::SuspendThenHibernate: | ||||
74 | reply = m_login1Interface->asyncCallWithArgumentList("SuspendThenHibernate", args); | ||||
75 | break; | ||||
73 | default: | 76 | default: | ||
74 | qCDebug(POWERDEVIL) << "Unsupported suspend method"; | 77 | qCDebug(POWERDEVIL) << "Unsupported suspend method"; | ||
75 | setError(1); | 78 | setError(1); | ||
76 | setErrorText(i18n("Unsupported suspend method")); | 79 | setErrorText(i18n("Unsupported suspend method")); | ||
77 | return; | 80 | return; | ||
78 | } | 81 | } | ||
79 | 82 | | |||
80 | QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); | 83 | QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this); | ||
Show All 20 Lines |