]> git.sesse.net Git - ccbs/blob - bigscreen/groupscreen.h
Added split screen functionality, for showing up to four groups at a time.
[ccbs] / bigscreen / groupscreen.h
1 #ifndef _GROUPSCREEN_H
2 #define _GROUPSCREEN_H 1
3
4 #include <pqxx/connection>
5
6 #include "screen.h"
7 #include "flagtrigger.h"
8 #include "group.h"
9
10 /* A screen class showing a group in the tournament */
11 class GroupScreen : public GenericScreen {
12 private:
13         unsigned tournament, round, parallel;
14         FlagTrigger scores_changed;
15         pqxx::connection &conn;
16         bool valid;
17
18 public:
19         GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
20         virtual ~GroupScreen();
21
22         bool check_invalidated();
23         void draw(unsigned char *buf);
24 };
25
26 #endif /* !defined(_GROUPSCREEN_H) */