X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fgroupscreen.h;h=1bff23fdb57607009fe3e3def8a1a0083ceb08ad;hp=2d0e81b608c68cc686208a26a912734bdf062fac;hb=9c22e166f4d25f2d80766de9baab56efd9d952b0;hpb=22ef1e003f53437829039885c5aedf20a22423d9 diff --git a/bigscreen/groupscreen.h b/bigscreen/groupscreen.h index 2d0e81b..1bff23f 100644 --- a/bigscreen/groupscreen.h +++ b/bigscreen/groupscreen.h @@ -1,26 +1,33 @@ #ifndef _GROUPSCREEN_H #define _GROUPSCREEN_H 1 +#include #include +#include +#include #include "screen.h" #include "flagtrigger.h" #include "group.h" +#include "fonts.h" /* A screen class showing a group in the tournament */ class GroupScreen : public GenericScreen { private: - unsigned tournament, round, parallel; + unsigned tournament, round, parallel, machine, num_machines; FlagTrigger scores_changed; pqxx::connection &conn; bool valid; + struct timeval last_updated; + std::vector last_text; public: - GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel); + GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines); virtual ~GroupScreen(); bool check_invalidated(); void draw(unsigned char *buf); + int get_priority(); }; #endif /* !defined(_GROUPSCREEN_H) */