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 25 by douglas, 2004-07-17T16:29:02-07:00 vs.
Revision 51 by douglas, 2004-08-23T15:03:41-07:00

# Line 15 | Line 15 | private:
15          ext::String message;
16          Stamp stamp;
17   public:
18        AwayMessage(const ext::String& message, const Stamp& stamp) :
19                message(message), stamp(stamp) {}
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) {}
22          const Stamp& getStamp() const { return stamp; }
23 <        operator const ext::String&() const; // %n, %d, etc.
23 >        ext::String getLink(const Buddy& buddy) const;
24 >        ext::String getTag(const Buddy& buddy) const;
25 >        bool operator<(const AwayMessage& message) const { return stamp < message.stamp; }
26 >        bool operator>(const AwayMessage& message) const { return stamp > message.stamp; }
27 >        operator ext::String() const;
28   };
29  
30 + inline std::ostream& operator<<(std::ostream& sout, const AwayMessage& message)
31 + {
32 +        return sout << ext::String(message);
33 + }
34 +
35   #endif // _AwayMessage_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines