9e8f3c07b6313807901ad0bcecc10cfc38de8572
[ccbs] / bigscreen / top10scorescreen.h
1 #ifndef _TOP10SCORESCREEN_H
2 #define _TOP10SCORESCREEN_H 1
3
4 #include <vector>
5 #include <pqxx/connection>
6 #include <time.h>
7 #include <sys/time.h>
8
9 #include "screen.h"
10 #include "flagtrigger.h"
11 #include "fonts.h"
12
13 /* A screen class showing a group in the tournament */
14 class Top10ScoreScreen : public GenericScreen {
15 private:
16         pqxx::connection &conn;
17         unsigned tournament;
18         FlagTrigger scores_changed;
19         bool valid;
20         std::vector<TextDefer> last_text;
21         
22 public:
23         Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
24         virtual ~Top10ScoreScreen();
25
26         bool check_invalidated();
27         void draw(unsigned char *buf);
28 };
29
30 #endif /* !defined(_TOP10SCORESCREEN_H) */