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

# User Rev Content
1 douglas 104 // 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 douglas 121 #include <sstream>
12 douglas 104
13     class Poller : public Contactor
14     {
15     private:
16 douglas 119 string file;
17 douglas 118 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 douglas 121 queue<unsigned> messages;
49 douglas 119 void load();
50     void save();
51 douglas 121 void ballots();
52     void ballot(unsigned message);
53     void approvals();
54 douglas 104 public:
55     Poller();
56     ~Poller() {}
57 douglas 118 void poll(bool nodelete, const string& file);
58 douglas 104 };
59    
60     #endif // _Poller_h_