ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/WinXPFAQPoll/Poller.h
Revision: 119
Committed: 2003-04-01T14:49:17-08:00 (22 years, 2 months ago) by douglas
Content type: text/x-c
File size: 772 byte(s)
Log Message:
Added and implemented Poller::load() function.

File Contents

# Content
1 // Windows XP FAQ Poll
2 //
3 // Douglas Thrift
4 //
5 // Poller.h
6
7 #ifndef _Poller_h_
8 #define _Poller_h_
9
10 #include "Contactor.h"
11
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, const string& file);
53 };
54
55 #endif // _Poller_h_