]> git.sesse.net Git - ccbs/blobdiff - bigscreen/top10scorescreen.h
Actually fetch and display the top 10 scores.
[ccbs] / bigscreen / top10scorescreen.h
index 9e8f3c07b6313807901ad0bcecc10cfc38de8572..143c291a97da62303f66cc7c2c01f38d017fcb14 100644 (file)
@@ -1,14 +1,12 @@
 #ifndef _TOP10SCORESCREEN_H
 #define _TOP10SCORESCREEN_H 1
 
-#include <vector>
+#include <set>
 #include <pqxx/connection>
-#include <time.h>
-#include <sys/time.h>
 
 #include "screen.h"
 #include "flagtrigger.h"
-#include "fonts.h"
+#include "fetch_top_scores_for_tournament.h"
 
 /* A screen class showing a group in the tournament */
 class Top10ScoreScreen : public GenericScreen {
@@ -17,7 +15,7 @@ private:
        unsigned tournament;
        FlagTrigger scores_changed;
        bool valid;
-       std::vector<TextDefer> last_text;
+       std::set<TopScore> seen_topscore;
        
 public:
        Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);