ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/AwayMessage.hpp
(Generate patch)

Comparing trunk/AwayMessage.hpp (file contents):
Revision 27 by douglas, 2004-07-17T19:21:04-07:00 vs.
Revision 34 by douglas, 2004-07-20T16:49:06-07:00

# Line 15 | Line 15 | private:
15          ext::String message;
16          Stamp stamp;
17   public:
18 <        AwayMessage(const Buddy& buddy, net::Oscar::InfoTool& info) :
19 <                message(info.GetAwayMessage(buddy)) {}
20 <        AwayMessage(const ext::String& message, const Stamp& stamp) :
21 <                message(message), stamp(stamp) {}
18 >        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          const Stamp& getStamp() const { return stamp; }
21 <        operator const ext::String&() const; // %n, %d, etc.
21 >        operator const ext::String&() const;
22   };
23  
24 + inline std::ostream& operator<<(std::ostream& sout, const AwayMessage& message)
25 + {
26 +        return sout << ext::String(message);
27 + }
28 +
29   #endif // _AwayMessage_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines