// Zoe AIM Away Message RSS Feed Generator // // Seth King and Douglas Thrift // // $Id$ #ifndef _Collector_hpp_ #define _Collector_hpp_ #include "AwayMessage.hpp" class Collector { private: const ext::String& login; ext::String& password; bool start; api::Thread collector; static net::Oscar::BuddyTool* buddy; static net::Oscar::IcbmTool* icbm; int collect(const std::set& buddies); void prompt(); static void reply(const ext::String& login, const ext::String& reply); public: Collector(const ext::String& login, ext::String& password, const std::set& buddies, bool start); ~Collector() { if (start) collector.Join(); } // }; #endif // _Collector_hpp_