2 #define _GROUPSCREEN_H 1
5 #include <pqxx/connection>
10 #include "flagtrigger.h"
14 /* A screen class showing a group in the tournament */
15 class GroupScreen : public GenericScreen {
17 unsigned tournament, round, parallel, machine, num_machines;
18 FlagTrigger scores_changed;
19 pqxx::connection &conn;
21 struct timeval last_updated;
22 std::vector<TextDefer> last_text;
25 GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines);
26 virtual ~GroupScreen();
28 bool check_invalidated();
29 void draw(unsigned char *buf);
33 #endif /* !defined(_GROUPSCREEN_H) */