]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.h
Add a better framework for showing what's changed.
[ccbs] / bigscreen / groupscreen.h
index c794f60465904d2070c2976f9b9fba95130379ae..3d24403443e6aa0b957a02ee9aa73abd3f3fdd5f 100644 (file)
@@ -1,18 +1,29 @@
 #ifndef _GROUPSCREEN_H
 #define _GROUPSCREEN_H 1
 
+#include <vector>
+#include <pqxx/connection>
+#include <time.h>
+#include <sys/time.h>
+
+#include "screen.h"
 #include "flagtrigger.h"
 #include "group.h"
+#include "fonts.h"
 
 /* A screen class showing a group in the tournament */
-class GroupScreen : public Screen {
+class GroupScreen : public GenericScreen {
 private:
-       unsigned tournament;
+       unsigned tournament, round, parallel;
        FlagTrigger scores_changed;
-       
+       pqxx::connection &conn;
+       bool valid;
+       struct timeval last_updated;
+       std::vector<TextDefer> last_text;
 
 public:
-       Screen(unsigned tournament);
+       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
+       virtual ~GroupScreen();
 
        bool check_invalidated();
        void draw(unsigned char *buf);