Go to the documentation of this file.
19 #ifndef PREFERENCES_HH
20 #define PREFERENCES_HH
75 bool open (
const char*);
77 void add_deny_rule (
const char*,
80 void add_allow_rule (
const char*,
83 void add_score (
const char*,
87 int neg_allows (
void);
88 int neg_denies (
void);
89 void set_rc_file (
const char*);
90 string rc_file (
void);
91 void set_log_file (
const char*);
92 string log_file (
void);
93 void set_verbose_level (
int);
94 int verbose_level (
void);
95 void set_headers_file (
const char*);
96 string headers_file (
void);
97 void set_default_case (
const char*);
98 int default_case (
void);
99 void set_reg_type (
const char*);
101 void set_server (
const char*);
102 void set_usr (
const char*);
103 void set_passwd (
const char*);
104 void set_protocol (
const char*);
105 void set_connection (
unsigned int = POSIX_SOCKETS)
106 __attribute__ ((unused));
107 void set_port (
unsigned int);
108 unsigned int time_out (
void);
109 void set_time_out (
unsigned int);
110 bool delete_duplicates (
void);
111 void set_del_duplicates(
const char*);
112 int max_size_allow (
void);
113 void set_max_size_allow(
int);
114 int max_size_deny (
void);
115 void set_max_size_deny (
int);
117 void set_max_size_score(
int,
int);
118 int highscore (
void);
119 void set_highscore (
int);
121 void set_normal (
const char*);
122 bool test_mode (
void);
123 void set_test_mode (
const char*);
124 int maxlength (
void);
125 void set_maxlength (
int);
126 bool ignore_time_stamp ();
127 void set_ignore_time_stamp (
bool =
true);
128 bool return_status (
void);
129 void set_return_status (
bool);
130 vector<Account>* accounts (
void);
131 vector<Filter>* allow_filters (
void);
132 vector<Filter>* deny_filters (
void);
133 vector<Score>* score_filters (
void);
int negative_scores
Definition: preferences.hh:63
bool test_changed
Definition: preferences.hh:68
vector< Account > accnts
Definition: preferences.hh:40
string log_file_name
Definition: preferences.hh:43
vector< Score > scores
Definition: preferences.hh:39
int max_line_length
Definition: preferences.hh:57
bool verbosity_changed
Definition: preferences.hh:67
vector< Filter > allows
Definition: preferences.hh:37
ifstream prefs_stream
Definition: preferences.hh:36
Definition: preferences.hh:33
vector< Filter > denies
Definition: preferences.hh:38
int negative_denies
Definition: preferences.hh:62
int max_size_friends
Definition: preferences.hh:56
int rreg_type
Definition: preferences.hh:58
string prefs_file_name
Definition: preferences.hh:42
int conn_type
Definition: preferences.hh:60
int negative_allows
Definition: preferences.hh:61
bool norm
Definition: preferences.hh:46
bool show_headers
Definition: preferences.hh:48
bool test
Definition: preferences.hh:47
unsigned time_out_val
Definition: preferences.hh:53
Definition: account.hh:32
bool ret_status
Definition: preferences.hh:50
bool del_duplicates
Definition: preferences.hh:49
int verbosity
Definition: preferences.hh:59
Size_score size_score
Definition: preferences.hh:55
bool _ignore_time_stamp
Definition: preferences.hh:51
int max_size
Definition: preferences.hh:54
Account cur_account
Definition: preferences.hh:41
int icase
Definition: preferences.hh:45
string headers_file_name
Definition: preferences.hh:44
int high_score
Definition: preferences.hh:52