1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:32:20 +03:00
gmenu2x/src/clock.h

27 lines
364 B
C
Raw Normal View History

2013-07-22 06:54:09 +03:00
#ifndef __CLOCK_H__
#define __CLOCK_H__
#include <string>
#include <SDL.h>
class Clock {
public:
Clock();
2013-07-22 06:54:09 +03:00
~Clock();
std::string getTime(bool is24 = true);
class Forwarder;
friend Forwarder;
2013-07-22 06:54:09 +03:00
private:
void addTimer(int timeout);
unsigned int update();
unsigned int clockCallback();
2013-07-22 06:54:09 +03:00
SDL_TimerID timer;
int minutes, hours;
};
#endif /* __CLOCK_H__ */