ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/AwayMessage.hpp
Revision: 31
Committed: 2004-07-20T00:11:56-07:00 (20 years, 11 months ago) by douglas
File size: 683 byte(s)
Log Message:
Ooh, pretty colors, and hourly updates, maybe.

File Contents

# User Rev Content
1 douglas 13 // Zoe AIM Away Message RSS Feed Generator
2     //
3     // Seth King and Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _AwayMessage_hpp_
8     #define _AwayMessage_hpp_
9    
10 douglas 25 #include "Stamp.hpp"
11 douglas 13
12     class AwayMessage
13     {
14     private:
15     ext::String message;
16 douglas 25 Stamp stamp;
17 douglas 13 public:
18 douglas 27 AwayMessage(const Buddy& buddy, net::Oscar::InfoTool& info) :
19     message(info.GetAwayMessage(buddy)) {}
20 douglas 25 AwayMessage(const ext::String& message, const Stamp& stamp) :
21     message(message), stamp(stamp) {}
22     const Stamp& getStamp() const { return stamp; }
23 douglas 30 operator const ext::String&() const;
24 douglas 13 };
25    
26 douglas 31 inline std::ostream& operator<<(std::ostream& sout, const AwayMessage& message)
27     {
28     return sout << ext::String(message);
29     }
30    
31 douglas 13 #endif // _AwayMessage_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id