summaryrefslogtreecommitdiffstats
path: root/src/server/util/platform/screensaver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/util/platform/screensaver.h')
-rw-r--r--src/server/util/platform/screensaver.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/server/util/platform/screensaver.h b/src/server/util/platform/screensaver.h
new file mode 100644
index 0000000..d62f9e1
--- /dev/null
+++ b/src/server/util/platform/screensaver.h
@@ -0,0 +1,26 @@
+#ifndef SCREENSAVER_H_
+#define SCREENSAVER_H_
+
+namespace ScreenSaver {
+
+ /**
+ * Whether we want to allow the screen saver
+ * to activate or the screen to enter standby.
+ * Note: If the screen is already in standby,
+ * this will not power it on again, or disable
+ * the screen saver, so to be safe, you might
+ * want to call forceOn() too.
+ * @param allow true to allow ss/standby
+ */
+ void allowSaverAndStandby(bool allow);
+
+ /**
+ * Disable the screen saver (only if password
+ * locking is disabled!), power screen on if
+ * it's in standby.
+ */
+ void forceUnlockAndScreenOn();
+
+}
+
+#endif /* SCREENSAVER_H_ */