]> git.sesse.net Git - ccbs/blob - bigscreen/top5chosenscreen.h
af2df73d2c5687b32842455138f09837922d1e5d
[ccbs] / bigscreen / top5chosenscreen.h
1 #ifndef _TOP5CHOSENSCREEN_H
2 #define _TOP5CHOSENSCREEN_H 1
3
4 #include <set>
5 #include <pqxx/connection>
6
7 #include "screen.h"
8 #include "flagtrigger.h"
9 #include "fetch_top_chosen_songs_for_tournament.h"
10
11 /* A screen class showing a group in the tournament */
12 class Top5ChosenScreen : public GenericScreen {
13 private:
14         pqxx::connection &conn;
15         unsigned tournament;
16         FlagTrigger scores_changed;
17         bool valid;
18         std::set<TopChosen> seen_topchosen;
19         
20 public:
21         Top5ChosenScreen(pqxx::connection &conn, unsigned tournament);
22         virtual ~Top5ChosenScreen();
23
24         bool check_invalidated();
25         void draw(unsigned char *buf);
26 };
27
28 #endif /* !defined(_TOP5CHOSENSCREEN_H) */