From bd468a3703ac47e559a945ed7e1afbc082bcaddf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 7 Nov 2018 23:00:05 +0900 Subject: Fixed FTBFS caused by previous commit. Signed-off-by: Michele Calgaro --- tdecore/tdehw/tderootsystemdevice.cpp | 8 ++++++++ tdecore/tdehw/tderootsystemdevice.h | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/tdecore/tdehw/tderootsystemdevice.cpp b/tdecore/tdehw/tderootsystemdevice.cpp index 1e097ca90..bbbd63b10 100644 --- a/tdecore/tdehw/tderootsystemdevice.cpp +++ b/tdecore/tdehw/tderootsystemdevice.cpp @@ -63,10 +63,18 @@ void TDERootSystemDevice::internalSetPowerStates(TDESystemPowerStateList ps) { m_powerStates = ps; } +TDESystemHibernationMethodList TDERootSystemDevice::hibernationMethods() { + return m_hibernationMethods; +} + void TDERootSystemDevice::internalSetHibernationMethods(TDESystemHibernationMethodList hm) { m_hibernationMethods = hm; } +TDESystemHibernationMethod::TDESystemHibernationMethod TDERootSystemDevice::hibernationMethod() { + return m_hibernationMethod; +} + void TDERootSystemDevice::internalSetHibernationMethod(TDESystemHibernationMethod::TDESystemHibernationMethod hm) { m_hibernationMethod = hm; } diff --git a/tdecore/tdehw/tderootsystemdevice.h b/tdecore/tdehw/tderootsystemdevice.h index e74d2dcf1..bea0bbac7 100644 --- a/tdecore/tdehw/tderootsystemdevice.h +++ b/tdecore/tdehw/tderootsystemdevice.h @@ -96,6 +96,16 @@ class TDECORE_EXPORT TDERootSystemDevice : public TDEGenericDevice */ TDESystemPowerStateList powerStates(); + /** + * @return a TDESystemHibernationMethodList with all available hibernation methods + */ + TDESystemHibernationMethodList hibernationMethods(); + + /** + * @return a TDESystemHibernationMethod::TDESystemHibernationMethod with the current hibernation method + */ + TDESystemHibernationMethod::TDESystemHibernationMethod hibernationMethod(); + /** * @return an unsigned long with the number of bytes required to hibernate */ -- cgit v1.2.1