// Zoe AIM Away Message RSS Feed Generator // // Seth King and Douglas Thrift // // $Id$ #include "Publisher.hpp" #include "Rss.hpp" Publisher::Publisher(const std::set& buddies, const Database& database, bool start) : buddies(buddies), database(database), start(start) { if (start) { publisher.Spawn(etl::Bind<0>(&Publisher::publish, this)); } } int Publisher::publish() { cerr << bright << green << "Publisher::publish()\n" << reset; // publish Buddy buddy(*buddies.find(ext::String("douglaswth"))); std::vector messages; messages.push_back(AwayMessage("Ice Cream! :-D", ext::String("Sat, 17 Jul 2004 20:45:32 GMT"))); messages.push_back(AwayMessage(ext::String("Apparently, I hav") + "e left my computer, isn't that strange? :-P", ext::String('S') + "at, 17 Jul 2004 21:39:13 GMT")); Rss rss(buddy, messages); }