// Zoe AIM Away Message RSS Feed Generator // // Seth King and Douglas Thrift // // $Id$ #ifndef _AwayMessage_hpp_ #define _AwayMessage_hpp_ #include "Stamp.hpp" class AwayMessage { private: ext::String message; Stamp stamp; public: AwayMessage(const Buddy& buddy, net::Oscar::InfoTool& info) : message(info.GetAwayMessage(buddy)) {} AwayMessage(const ext::String& message, const Stamp& stamp) : message(message), stamp(stamp) {} const Stamp& getStamp() const { return stamp; } ext::String getLink(const Buddy& buddy) const; ext::String getTag(const Buddy& buddy) const; bool operator<(const AwayMessage& message) const { return stamp < message.stamp; } bool operator>(const AwayMessage& message) const { return stamp > message.stamp; } operator ext::String() const; }; inline ios::PrintWriter& operator<<(ios::PrintWriter& pout, const AwayMessage& message) { return pout << ext::String(message); } #endif // _AwayMessage_hpp_