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 |
34 |
AwayMessage(const Buddy& buddy, net::Oscar::InfoTool& info) : message(info.GetAwayMessage(buddy)) {} |
19 |
|
|
AwayMessage(const ext::String& message, const Stamp& stamp) : message(message), stamp(stamp) {} |
20 |
douglas |
25 |
const Stamp& getStamp() const { return stamp; } |
21 |
douglas |
30 |
operator const ext::String&() const; |
22 |
douglas |
13 |
}; |
23 |
|
|
|
24 |
douglas |
31 |
inline std::ostream& operator<<(std::ostream& sout, const AwayMessage& message) |
25 |
|
|
{ |
26 |
|
|
return sout << ext::String(message); |
27 |
|
|
} |
28 |
|
|
|
29 |
douglas |
13 |
#endif // _AwayMessage_hpp_ |