diff options
Diffstat (limited to 'gui/blanktimer.hpp')
-rw-r--r-- | gui/blanktimer.hpp | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/gui/blanktimer.hpp b/gui/blanktimer.hpp index 60d5b1b42..01c1dfb0c 100644 --- a/gui/blanktimer.hpp +++ b/gui/blanktimer.hpp @@ -24,31 +24,35 @@ using namespace std; -class blanktimer { - public: - blanktimer(void); - int setTimerThread(void); - void resetTimerAndUnblank(void); - void setTime(int newtime); - bool IsScreenOff(); - - private: - void setConBlank(int blank); - void setTimer(void); - timespec getTimer(void); - int getBrightness(void); - int setBrightness(int brightness); - int setBlankTimer(void); - int setClockTimer(void); - typedef int (blanktimer::*ThreadPtr)(void); - typedef void* (*PThreadPtr)(void*); - pthread_mutex_t conblankmutex; - pthread_mutex_t timermutex; - int conblank; - timespec btimer; - unsigned long long sleepTimer; - int orig_brightness; - bool screenoff; +class blanktimer +{ +public: + blanktimer(void); + + int setTimerThread(void); + void resetTimerAndUnblank(void); + void setTime(int newtime); + bool IsScreenOff(); + +private: + typedef int (blanktimer::*ThreadPtr)(void); + typedef void* (*PThreadPtr)(void*); + + void setConBlank(int blank); + void setTimer(void); + timespec getTimer(void); + int getBrightness(void); + int setBrightness(int brightness); + int setBlankTimer(void); + int setClockTimer(void); + + pthread_mutex_t conblankmutex; + pthread_mutex_t timermutex; + int conblank; + timespec btimer; + unsigned long long sleepTimer; + int orig_brightness; + bool screenoff; }; extern blanktimer blankTimer; |