]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.h
Make the bigscreen application support running groups on multiple machines.
[ccbs] / bigscreen / groupscreen.h
index 2d0e81b608c68cc686208a26a912734bdf062fac..21ab17248e2bb4ab54056e9778d12a63f3d422a2 100644 (file)
@@ -1,22 +1,28 @@
 #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 GenericScreen {
 private:
-       unsigned tournament, round, parallel;
+       unsigned tournament, round, parallel, machine, num_machines;
        FlagTrigger scores_changed;
        pqxx::connection &conn;
        bool valid;
+       struct timeval last_updated;
+       std::vector<TextDefer> last_text;
 
 public:
-       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
+       GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel, unsigned machine, unsigned num_machines);
        virtual ~GroupScreen();
 
        bool check_invalidated();