// Windows XP FAQ Poll // // Douglas Thrift // // Poller.h #ifndef _Poller_h_ #define _Poller_h_ #include "Contactor.h" class Poller : public Contactor { private: string file; struct Find { unsigned reply; unsigned news; unsigned sig; unsigned search; unsigned link; unsigned browse; unsigned other; vector approved; vector approve; vector disapprove; } find; struct Help { unsigned solved; unsigned note; unsigned link; unsigned news; unsigned lazy; } help; struct Improve { unsigned nothing; unsigned links; unsigned suggest; vector approved; vector approve; vector disapprove; } improve; queue messages; vector > submits; void load(); void save(); void ballots(); void ballot(unsigned message); void submit(const string& type, const string& text); void approvals(); short approval(const string& type, const string& text); public: Poller(); ~Poller(); void poll(bool nodelete, const string& file, bool approve); }; #endif // _Poller_h_