Changeset View
Changeset View
Standalone View
Standalone View
daemon/actions/bundled/suspendsession.h
Context not available. | |||||
49 | LogoutDialogMode = 16, | 49 | LogoutDialogMode = 16, | ||
---|---|---|---|---|---|
50 | LockScreenMode = 32, | 50 | LockScreenMode = 32, | ||
51 | TurnOffScreenMode = 64, | 51 | TurnOffScreenMode = 64, | ||
52 | ToggleScreenOnOffMode = 128, | 52 | ToggleScreenOnOffMode = 128 | ||
53 | SuspendThenHibernateMode = 256 | | |||
54 | }; | 53 | }; | ||
55 | 54 | | |||
56 | explicit SuspendSession(QObject *parent); | 55 | explicit SuspendSession(QObject *parent); | ||
Context not available. | |||||
69 | void suspendToRam(); | 68 | void suspendToRam(); | ||
70 | void suspendToDisk(); | 69 | void suspendToDisk(); | ||
71 | void suspendHybrid(); | 70 | void suspendHybrid(); | ||
72 | void suspendThenHibernate(); | | |||
73 | 71 | | |||
74 | Q_SIGNALS: | 72 | Q_SIGNALS: | ||
75 | void aboutToSuspend(); | 73 | void aboutToSuspend(); | ||
Context not available. | |||||
79 | void triggerSuspendSession(uint action); | 77 | void triggerSuspendSession(uint action); | ||
80 | 78 | | |||
81 | private: | 79 | private: | ||
80 | bool m_suspendThenHibernateEnabled = false; | ||||
82 | int m_idleTime = 0; | 81 | int m_idleTime = 0; | ||
83 | uint m_autoType; | 82 | uint m_autoType; | ||
84 | QVariantMap m_savedArgs; | 83 | QVariantMap m_savedArgs; | ||
Context not available. |