GroupScreen now checks the "last updated" information.
[ccbs] / bigscreen / groupscreen.h
1 #ifndef _GROUPSCREEN_H
2 #define _GROUPSCREEN_H 1
3
4 #include <pqxx/connection>
5 #include <time.h>
6 #include <sys/time.h>
7
8 #include "screen.h"
9 #include "flagtrigger.h"
10 #include "group.h"
11
12 /* A screen class showing a group in the tournament */
13 class GroupScreen : public GenericScreen {
14 private:
15         unsigned tournament, round, parallel;
16         FlagTrigger scores_changed;
17         pqxx::connection &conn;
18         bool valid;
19         struct timeval last_updated;
20
21 public:
22         GroupScreen(pqxx::connection &conn, unsigned tournament, unsigned round, unsigned parallel);
23         virtual ~GroupScreen();
24
25         bool check_invalidated();
26         void draw(unsigned char *buf);
27 };
28
29 #endif /* !defined(_GROUPSCREEN_H) */