X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Fgroupscreen.h;h=21ab17248e2bb4ab54056e9778d12a63f3d422a2;hp=c794f60465904d2070c2976f9b9fba95130379ae;hb=876c65c3f4f828a54fa8041f5d68e3c4cae1d463;hpb=8970b43d021e65f07ed4d279185c5062b4f9ee4a diff --git a/bigscreen/groupscreen.h b/bigscreen/groupscreen.h index c794f60..21ab172 100644 --- a/bigscreen/groupscreen.h +++ b/bigscreen/groupscreen.h @@ -1,18 +1,29 @@ #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 Screen { +class GroupScreen : public GenericScreen { private: - unsigned tournament; + unsigned tournament, round, parallel, machine, num_machines; FlagTrigger scores_changed; - + pqxx::connection &conn; + bool valid; + struct timeval last_updated; + std::vector last_text; public: - Screen(unsigned tournament); + 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);