]> git.sesse.net Git - ccbs/blob - bigscreen/fetch_current_tournament.h
Start gettextifying Perl scripts (and thus titles) as well.
[ccbs] / bigscreen / fetch_current_tournament.h
1 #ifndef _FETCH_CURRENT_TOURNAMENT_H
2 #define _FETCH_CURRENT_TOURNAMENT_H 1
3
4 #include <pqxx/transactor>
5 #include "widestring.h"
6
7 class Tournament {
8 public:
9         int id;
10         widestring name;
11 };
12
13 /* A transactor that fetches the current tournament and some information about it. */
14 class FetchCurrentTournament : public pqxx::transactor<> {
15 private:
16         Tournament *tourn;
17
18 public:
19         FetchCurrentTournament(Tournament *tourn);
20         void operator() (pqxx::transaction<> &t);
21 };
22
23 #endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */