diff options
author | Simon Rettberg | 2018-10-11 14:57:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-10-11 14:57:46 +0200 |
commit | 59d61e258c59dc695783e0b9adc419de2b174e75 (patch) | |
tree | e2acde9f594b69b0c04fa5b8b7568d52ec3a1705 /src/screensaver.h | |
download | bwlp-screensaver-59d61e258c59dc695783e0b9adc419de2b174e75.tar.gz bwlp-screensaver-59d61e258c59dc695783e0b9adc419de2b174e75.tar.xz bwlp-screensaver-59d61e258c59dc695783e0b9adc419de2b174e75.zip |
Initial commit
Diffstat (limited to 'src/screensaver.h')
-rw-r--r-- | src/screensaver.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/screensaver.h b/src/screensaver.h new file mode 100644 index 0000000..88cc992 --- /dev/null +++ b/src/screensaver.h @@ -0,0 +1,33 @@ +#ifndef SCREENSAVER_H_ +#define SCREENSAVER_H_ + +namespace ScreenSaver { + + /** + * Whether we want to allow 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 forceScreenOn(); + + /** + * Whether the screen is locked (requires password). + * false if screen saver is not active, or doesn't + * require password for unlocking. + */ + bool isLocked(); + +} + +#endif /* SCREENSAVER_H_ */ |