Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Preferences Class Reference

#include <preferences.hh>

List of all members.

Static Public Member Functions

void init (void)
void kill (void)
bool open (const char *)
bool load (void)
void add_deny_rule (const char *, const char *, const char *)
void add_allow_rule (const char *, const char *, const char *)
void add_score (const char *, int, const char *, const char *)
int neg_allows (void)
int neg_denies (void)
void set_rc_file (const char *)
string rc_file (void)
void set_log_file (const char *)
string log_file (void)
void set_verbose_level (int)
int verbose_level (void)
void set_headers_file (const char *)
string headers_file (void)
void set_default_case (const char *)
int default_case (void)
void set_reg_type (const char *)
int reg_type (void)
void set_server (const char *)
void set_usr (const char *)
void set_passwd (const char *)
void set_protocol (const char *)
void set_connection (unsigned int=POSIX_SOCKETS) __attribute__((unused))
void set_port (unsigned int)
unsigned int time_out (void)
void set_time_out (unsigned int)
bool delete_duplicates (void)
void set_del_duplicates (const char *)
int max_size_allow (void)
void set_max_size_allow (int)
int max_size_deny (void)
void set_max_size_deny (int)
Size_score max_size_score (void)
void set_max_size_score (int, int)
int highscore (void)
void set_highscore (int)
bool normal (void)
void set_normal (const char *)
bool test_mode (void)
void set_test_mode (const char *)
int maxlength (void)
void set_maxlength (int)
bool return_status (void)
void set_return_status (bool)
vector< Account > * accounts (void)
vector< Filter > * allow_filters (void)
vector< Filter > * deny_filters (void)
vector< Score > * score_filters (void)

Static Protected Attributes

ifstream prefs_stream
vector< Filterallows
vector< Filterdenies
vector< Scorescores
vector< Accountaccnts
Account cur_account
string prefs_file_name
string log_file_name
string headers_file_name
int icase
bool norm
bool test
bool show_headers
bool del_duplicates
bool ret_status
int high_score
unsigned time_out_val
int max_size
Size_score size_score
int max_size_friends
int max_line_length
int rreg_type
int verbosity
int conn_type
int negative_allows
int negative_denies
int negative_scores
bool verbosity_changed
bool test_changed


Member Function Documentation

vector< Account > * Preferences::accounts void   )  [static]
 

void Preferences::add_allow_rule const char *  ,
const char *  ,
const char * 
[static]
 

void Preferences::add_deny_rule const char *  ,
const char *  ,
const char * 
[static]
 

void Preferences::add_score const char *  ,
int  ,
const char *  ,
const char * 
[static]
 

vector< Filter > * Preferences::allow_filters void   )  [static]
 

int Preferences::default_case void   )  [static]
 

bool Preferences::delete_duplicates void   )  [static]
 

vector< Filter > * Preferences::deny_filters void   )  [static]
 

string Preferences::headers_file void   )  [static]
 

int Preferences::highscore void   )  [static]
 

void Preferences::init void   )  [static]
 

void Preferences::kill void   )  [static]
 

bool Preferences::load void   )  [static]
 

string Preferences::log_file void   )  [static]
 

int Preferences::max_size_allow void   )  [static]
 

int Preferences::max_size_deny void   )  [static]
 

Size_score Preferences::max_size_score void   )  [static]
 

int Preferences::maxlength void   )  [static]
 

int Preferences::neg_allows void   )  [static]
 

int Preferences::neg_denies void   )  [static]
 

bool Preferences::normal void   )  [static]
 

bool Preferences::open const char *   )  [static]
 

string Preferences::rc_file void   )  [static]
 

int Preferences::reg_type void   )  [static]
 

bool Preferences::return_status void   )  [static]
 

vector< Score > * Preferences::score_filters void   )  [static]
 

void Preferences::set_connection unsigned  int = POSIX_SOCKETS  )  [static]
 

void Preferences::set_default_case const char *   )  [static]
 

void Preferences::set_del_duplicates const char *   )  [static]
 

void Preferences::set_headers_file const char *   )  [static]
 

void Preferences::set_highscore int   )  [static]
 

void Preferences::set_log_file const char *   )  [static]
 

void Preferences::set_max_size_allow int   )  [static]
 

void Preferences::set_max_size_deny int   )  [static]
 

void Preferences::set_max_size_score int  ,
int 
[static]
 

void Preferences::set_maxlength int   )  [static]
 

void Preferences::set_normal const char *   )  [static]
 

void Preferences::set_passwd const char *   )  [static]
 

void Preferences::set_port unsigned  int  )  [static]
 

void Preferences::set_protocol const char *   )  [static]
 

void Preferences::set_rc_file const char *   )  [static]
 

void Preferences::set_reg_type const char *   )  [static]
 

void Preferences::set_return_status bool   )  [static]
 

void Preferences::set_server const char *   )  [static]
 

void Preferences::set_test_mode const char *   )  [static]
 

void Preferences::set_time_out unsigned  int  )  [static]
 

void Preferences::set_usr const char *   )  [static]
 

void Preferences::set_verbose_level int   )  [static]
 

bool Preferences::test_mode void   )  [static]
 

unsigned int Preferences::time_out void   )  [static]
 

int Preferences::verbose_level void   )  [static]
 


Member Data Documentation

vector<Account> Preferences::accnts [static, protected]
 

vector<Filter> Preferences::allows [static, protected]
 

int Preferences::conn_type [static, protected]
 

Account Preferences::cur_account [static, protected]
 

bool Preferences::del_duplicates [static, protected]
 

vector<Filter> Preferences::denies [static, protected]
 

string Preferences::headers_file_name [static, protected]
 

int Preferences::high_score [static, protected]
 

int Preferences::icase [static, protected]
 

string Preferences::log_file_name [static, protected]
 

int Preferences::max_line_length [static, protected]
 

int Preferences::max_size [static, protected]
 

int Preferences::max_size_friends [static, protected]
 

int Preferences::negative_allows [static, protected]
 

int Preferences::negative_denies [static, protected]
 

int Preferences::negative_scores [static, protected]
 

bool Preferences::norm [static, protected]
 

string Preferences::prefs_file_name [static, protected]
 

ifstream Preferences::prefs_stream [static, protected]
 

bool Preferences::ret_status [static, protected]
 

int Preferences::rreg_type [static, protected]
 

vector<Score> Preferences::scores [static, protected]
 

bool Preferences::show_headers [static, protected]
 

Size_score Preferences::size_score [static, protected]
 

bool Preferences::test [static, protected]
 

bool Preferences::test_changed [static, protected]
 

unsigned Preferences::time_out_val [static, protected]
 

int Preferences::verbosity [static, protected]
 

bool Preferences::verbosity_changed [static, protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Nov 27 14:29:56 2004 for mailfilter by doxygen 1.3.8