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