#ifndef __infoclock__ #define __infoclock__ #include #include #include #include "gui/color.h" #include class CInfoClock { private: CFrameBuffer * frameBuffer; pthread_t thrTimer; void paintTime( bool show_dot); int time_offset, digit_offset, digit_h; int x, y, clock_x; static void CleanUpProc(void* arg); static void* TimerProc(void *arg); public: CInfoClock(bool noVolume=false); ~CInfoClock(); static CInfoClock* getInstance(bool noVolume=false); void Init(bool noVolume=false); void StartClock(); void StopClock(); void ClearDisplay(); int time_width, time_height; }; #endif