]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_needs_update.h
Fetch the list of auxilliary screens.
[ccbs] / bigscreen / fetch_needs_update.h
1 #ifndef _FETCH_NEEDS_UPDATE_H
2 #define _FETCH_NEEDS_UPDATE_H 1
3
4 #include <pqxx/transactor>
5 #include <time.h>
6 #include <sys/time.h>
7
8 /* A transactor that fetches when a given round was last updated. */
9 class FetchNeedsUpdate : public pqxx::transactor<> {
10 private:
11         struct timeval last_updated;
12         unsigned tournament, round, parallel;
13         bool *result;
14
15 public:
16         FetchNeedsUpdate(struct timeval last_updated, unsigned tournament, unsigned round, unsigned parallel, bool *result);
17         void operator() (pqxx::transaction<> &t);
18 };
19
20 #endif /* !defined(_FETCH_NEEDS_UPDATE_H) */