summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-11-07 23:00:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-02-06 23:37:11 +0900
commitbd468a3703ac47e559a945ed7e1afbc082bcaddf (patch)
treebed86bd067318fe9d979d7ff2ce4dfc2e2d2e542
parent975d1ed9c79d8693447120c92fea47d5af624476 (diff)
downloadtdelibs-bd468a3703ac47e559a945ed7e1afbc082bcaddf.tar.gz
tdelibs-bd468a3703ac47e559a945ed7e1afbc082bcaddf.zip
Fixed FTBFS caused by previous commit.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--tdecore/tdehw/tderootsystemdevice.cpp8
-rw-r--r--tdecore/tdehw/tderootsystemdevice.h10
2 files changed, 18 insertions, 0 deletions
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
@@ -97,6 +97,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
*/
unsigned long diskSpaceNeededForHibernation();