ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/WinXPFAQPoll/Poller.h
Revision: 123
Committed: 2003-04-02T18:10:51-08:00 (22 years, 2 months ago) by douglas
Content type: text/x-c
File size: 953 byte(s)
Log Message:
Got voting stuff working, needed to make some changes to IMAPHandler.

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 queue<unsigned> messages;
48 void load();
49 void save();
50 void ballots();
51 void ballot(unsigned message);
52 void submit(const string& type, const string& text);
53 void approvals();
54 void approval(unsigned message);
55 public:
56 Poller();
57 ~Poller();
58 void poll(bool nodelete, const string& file);
59 };
60
61 #endif // _Poller_h_