]> git.sesse.net Git - ccbs/blobdiff - bigscreen/top10scorescreen.h
Add the framework for a top 10 screen.
[ccbs] / bigscreen / top10scorescreen.h
diff --git a/bigscreen/top10scorescreen.h b/bigscreen/top10scorescreen.h
new file mode 100644 (file)
index 0000000..9e8f3c0
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef _TOP10SCORESCREEN_H
+#define _TOP10SCORESCREEN_H 1
+
+#include <vector>
+#include <pqxx/connection>
+#include <time.h>
+#include <sys/time.h>
+
+#include "screen.h"
+#include "flagtrigger.h"
+#include "fonts.h"
+
+/* A screen class showing a group in the tournament */
+class Top10ScoreScreen : public GenericScreen {
+private:
+       pqxx::connection &conn;
+       unsigned tournament;
+       FlagTrigger scores_changed;
+       bool valid;
+       std::vector<TextDefer> last_text;
+       
+public:
+       Top10ScoreScreen(pqxx::connection &conn, unsigned tournament);
+       virtual ~Top10ScoreScreen();
+
+       bool check_invalidated();
+       void draw(unsigned char *buf);
+};
+
+#endif /* !defined(_TOP10SCORESCREEN_H) */