]> git.sesse.net Git - ccbs/blob - bigscreen/groupscreen.h
Adjust the fade time back to 0.5 again, after the "starting fade time" fix.
[ccbs] / bigscreen / groupscreen.h
1 #ifndef _GROUPSCREEN_H
2 #define _GROUPSCREEN_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 "group.h"
12 #include "fonts.h"
13
14 /* A screen class showing a group in the tournament */
15 class GroupScreen : public GenericScreen {
16 private:
17         unsigned tournament, round, parallel;
18         FlagTrigger scores_changed;
19         pqxx::connection &conn;
20         bool valid;
21         struct timeval last_updated;
22         std::vector<TextDefer> last_text;
23
24 public:
25         GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
26         virtual ~GroupScreen();
27
28         bool check_invalidated();
29         void draw(unsigned char *buf);
30 };
31
32 #endif /* !defined(_GROUPSCREEN_H) */