ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/WinXPFAQPoll/Poller.h
Revision: 121
Committed: 2003-04-01T20:21:47-08:00 (22 years, 2 months ago) by douglas
Content type: text/x-c
File size: 886 byte(s)
Log Message:
Added some more good stuff!

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