// Zoe AIM Away Message RSS Feed Generator // // Seth King and Douglas Thrift // // $Id$ #ifndef _Collector_hpp_ #define _Collector_hpp_ #include "Zoe.hpp" class Collector { private: const ext::String& login; ext::String& password; const std::set& buddies; const Database& database; bool start, prompted; _H collector; net::Oscar::BuddyTool* buddy; net::Oscar::IcbmTool* icbm; net::Oscar::InfoTool* info; int collect(); void prompt(); void status(const net::Oscar::UserInfo& user); void receive(const ext::String& buddy, const ext::String& message); public: Collector(const ext::String& login, ext::String& password, const std::set& buddies, const Database& database, bool start); ~Collector() { if (start) collector->Join(); } }; #endif // _Collector_hpp_