X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=bigscreen%2Ftop5chosenscreen.h;fp=bigscreen%2Ftop5chosenscreen.h;h=af2df73d2c5687b32842455138f09837922d1e5d;hp=0000000000000000000000000000000000000000;hb=723136532e3bb8b318b595b9eeef031275d5c72e;hpb=d80bb106f1f7779664efeac8d8786f929610fad5 diff --git a/bigscreen/top5chosenscreen.h b/bigscreen/top5chosenscreen.h new file mode 100644 index 0000000..af2df73 --- /dev/null +++ b/bigscreen/top5chosenscreen.h @@ -0,0 +1,28 @@ +#ifndef _TOP5CHOSENSCREEN_H +#define _TOP5CHOSENSCREEN_H 1 + +#include +#include + +#include "screen.h" +#include "flagtrigger.h" +#include "fetch_top_chosen_songs_for_tournament.h" + +/* A screen class showing a group in the tournament */ +class Top5ChosenScreen : public GenericScreen { +private: + pqxx::connection &conn; + unsigned tournament; + FlagTrigger scores_changed; + bool valid; + std::set seen_topchosen; + +public: + Top5ChosenScreen(pqxx::connection &conn, unsigned tournament); + virtual ~Top5ChosenScreen(); + + bool check_invalidated(); + void draw(unsigned char *buf); +}; + +#endif /* !defined(_TOP5CHOSENSCREEN_H) */