Let each screen get width and height in as a parameter on draw() instead of hardcodin...
[ccbs] / bigscreen / top10scorescreen.h
index 9e8f3c0..439bfeb 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,14 +15,15 @@ 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);
        virtual ~Top10ScoreScreen();
 
        bool check_invalidated();
-       void draw(unsigned char *buf);
+       void draw(unsigned char *buf, unsigned width, unsigned height);
+       int get_priority();
 };
 
 #endif /* !defined(_TOP10SCORESCREEN_H) */