]> git.sesse.net Git - ccbs/blob - bigscreen/top10scorescreen.h
Combined patch (sorry): fix URL, fix points awarded.
[ccbs] / bigscreen / top10scorescreen.h
1 #ifndef _TOP10SCORESCREEN_H
2 #define _TOP10SCORESCREEN_H 1
3
4 #include <set>
5 #include <pqxx/connection>
6
7 #include "screen.h"
8 #include "flagtrigger.h"
9 #include "fetch_top_scores_for_tournament.h"
10
11 /* A screen class showing a group in the tournament */
12 class Top10ScoreScreen : public GenericScreen {
13 private:
14         pqxx::connection &conn;
15         unsigned tournament;
16         FlagTrigger scores_changed;
17         bool valid;
18         std::set<TopScore> seen_topscore;
19         
20 public:
21         Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
22         virtual ~Top10ScoreScreen();
23
24         bool check_invalidated();
25         void draw(unsigned char *buf, unsigned width, unsigned height);
26         int get_priority();
27 };
28
29 #endif /* !defined(_TOP10SCORESCREEN_H) */