#include <ban.hpp>

Classes | |
| struct | error |
Public Member Functions | |
| banned (const std::string &ip, const time_t end_time, const std::string &reason, const std::string &who_banned=who_banned_default_, const std::string &group="", const std::string &nick="") | |
| banned (const config &) | |
| void | read (const config &) |
| void | write (config &) const |
| time_t | get_end_time () const |
| std::string | get_human_end_time () const |
| std::string | get_human_start_time () const |
| std::string | get_reason () const |
| std::string | get_ip () const |
| std::string | get_group () const |
| std::string | get_who_banned () const |
| std::string | get_nick () const |
| bool | match_group (const std::string &group) const |
| bool | match_ip (const ip_mask &ip) const |
| bool | match_ipmask (const ip_mask &ip) const |
| unsigned int | get_mask_ip (unsigned int) const |
| unsigned int | get_int_ip () const |
| unsigned int | mask () const |
| bool | operator> (const banned &b) const |
Static Public Member Functions | |
| static std::string | get_human_time (const time_t &) |
| static banned_ptr | create_dummy (const std::string &ip) |
Private Member Functions | |
| banned (const std::string &ip) | |
Private Attributes | |
| unsigned int | ip_ |
| unsigned int | mask_ |
| std::string | ip_text_ |
| time_t | end_time_ |
| time_t | start_time_ |
| std::string | reason_ |
| std::string | who_banned_ |
| std::string | group_ |
| std::string | nick_ |
Static Private Attributes | |
| static const std::string | who_banned_default_ = "system" |
Definition at line 59 of file ban.hpp.
| wesnothd::banned::banned | ( | const std::string & | ip | ) | [private] |
| wesnothd::banned::banned | ( | const std::string & | ip, | |
| const time_t | end_time, | |||
| const std::string & | reason, | |||
| const std::string & | who_banned = who_banned_default_, |
|||
| const std::string & | group = "", |
|||
| const std::string & | nick = "" | |||
| ) |
| banned_ptr wesnothd::banned::create_dummy | ( | const std::string & | ip | ) | [static] |
| time_t wesnothd::banned::get_end_time | ( | ) | const [inline] |
| std::string wesnothd::banned::get_group | ( | ) | const [inline] |
| std::string wesnothd::banned::get_human_start_time | ( | ) | const |
| static std::string wesnothd::banned::get_human_time | ( | const time_t & | ) | [static] |
| unsigned int wesnothd::banned::get_int_ip | ( | ) | const [inline] |
| std::string wesnothd::banned::get_ip | ( | ) | const [inline] |
| unsigned int wesnothd::banned::get_mask_ip | ( | unsigned int | mask | ) | const |
| std::string wesnothd::banned::get_nick | ( | ) | const [inline] |
| std::string wesnothd::banned::get_reason | ( | ) | const [inline] |
| std::string wesnothd::banned::get_who_banned | ( | ) | const [inline] |
Definition at line 95 of file ban.hpp.
References who_banned_.
| unsigned int wesnothd::banned::mask | ( | ) | const [inline] |
| bool wesnothd::banned::match_group | ( | const std::string & | group | ) | const [inline] |
| bool wesnothd::banned::match_ip | ( | const ip_mask & | ip | ) | const |
| bool wesnothd::banned::match_ipmask | ( | const ip_mask & | ip | ) | const |
time_t wesnothd::banned::end_time_ [private] |
Definition at line 63 of file ban.hpp.
Referenced by get_end_time(), and get_mask_ip().
std::string wesnothd::banned::group_ [private] |
Definition at line 67 of file ban.hpp.
Referenced by get_group(), and match_group().
unsigned int wesnothd::banned::ip_ [private] |
Definition at line 60 of file ban.hpp.
Referenced by get_int_ip(), match_ip(), and wesnothd::ban_manager::read().
std::string wesnothd::banned::ip_text_ [private] |
unsigned int wesnothd::banned::mask_ [private] |
Definition at line 61 of file ban.hpp.
Referenced by mask(), match_ip(), and wesnothd::ban_manager::read().
std::string wesnothd::banned::nick_ [private] |
Definition at line 68 of file ban.hpp.
Referenced by get_nick().
std::string wesnothd::banned::reason_ [private] |
Definition at line 65 of file ban.hpp.
Referenced by get_reason().
time_t wesnothd::banned::start_time_ [private] |
std::string wesnothd::banned::who_banned_ [private] |
Definition at line 66 of file ban.hpp.
Referenced by get_who_banned().
const std::string wesnothd::banned::who_banned_default_ = "system" [static, private] |
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |