summaryrefslogtreecommitdiffstats
path: root/gui/blanktimer.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui/blanktimer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/blanktimer.hpp b/gui/blanktimer.hpp
index 5e617901f..fe7b77c17 100644
--- a/gui/blanktimer.hpp
+++ b/gui/blanktimer.hpp
@@ -37,11 +37,15 @@ public:
// call this when an input event is received or when an operation is finished
void resetTimerAndUnblank();
+ // call this when power button is pressed
+ void toggleBlank(void);
+
bool isScreenOff();
private:
void setTimer(void);
string getBrightness(void);
+ void blank(void);
pthread_mutex_t mutex;
enum State { kOn = 0, kDim = 1, kOff = 2, kBlanked = 3 };