The Battle for Wesnoth  1.15.3+dev
ban_check.hpp
Go to the documentation of this file.
1 /*
2  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
16 #include "mariadb++/result_set.hpp"
17 
18 #include "rs_base.hpp"
19 
20 class ban_check : public rs_base
21 {
22  public:
23  ban_check();
24  void read(mariadb::result_set_ref rslt);
25  long get_ban_type();
26  int get_ban_duration();
27  int get_user_id();
29 
30  private:
31  long ban_type;
33  int user_id;
35 };
int user_id
Definition: ban_check.hpp:33
std::shared_ptr< result_set > result_set_ref
Definition: result_set.hpp:219
int get_ban_duration()
void read(mariadb::result_set_ref rslt)
std::string email
Definition: ban_check.hpp:34
std::string get_email()
int ban_duration
Definition: ban_check.hpp:32
long get_ban_type()
int get_user_id()
long ban_type
Definition: ban_check.hpp:31