blob: 88cc99290dd8149a12f8577c153065488760ad27 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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_ */
|