12 |
|
class Poller : public Contactor |
13 |
|
{ |
14 |
|
private: |
15 |
+ |
string file; |
16 |
+ |
struct Find |
17 |
+ |
{ |
18 |
+ |
unsigned reply; |
19 |
+ |
unsigned news; |
20 |
+ |
unsigned sig; |
21 |
+ |
unsigned search; |
22 |
+ |
unsigned link; |
23 |
+ |
unsigned browse; |
24 |
+ |
unsigned other; |
25 |
+ |
vector<string> approved; |
26 |
+ |
vector<string> approve; |
27 |
+ |
} |
28 |
+ |
find; |
29 |
+ |
struct Help |
30 |
+ |
{ |
31 |
+ |
unsigned solved; |
32 |
+ |
unsigned note; |
33 |
+ |
unsigned link; |
34 |
+ |
unsigned news; |
35 |
+ |
unsigned lazy; |
36 |
+ |
} |
37 |
+ |
help; |
38 |
+ |
struct Improve |
39 |
+ |
{ |
40 |
+ |
unsigned nothing; |
41 |
+ |
unsigned links; |
42 |
+ |
unsigned suggest; |
43 |
+ |
vector<string> approved; |
44 |
+ |
vector<string> approve; |
45 |
+ |
} |
46 |
+ |
improve; |
47 |
+ |
void load(); |
48 |
+ |
void save(); |
49 |
|
public: |
50 |
|
Poller(); |
51 |
|
~Poller() {} |
52 |
< |
void poll(bool nodelete); |
52 |
> |
void poll(bool nodelete, const string& file); |
53 |
|
}; |
54 |
|
|
55 |
|
#endif // _Poller_h_ |