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

Comparing trunk/Buddy.hpp (file contents):
Revision 20 by douglas, 2004-07-16T00:41:53-07:00 vs.
Revision 21 by douglas, 2004-07-16T23:37:41-07:00

# Line 13 | Line 13 | class Buddy
13   {
14   private:
15          ext::String login, rss;
16 +        ext::Uuid id;
17   public:
18          Buddy(const ext::String& login, const ext::String& rss = "") :
19 <                login(net::Oscar::collapse(login)), rss(rss) {}
19 >                login(net::Oscar::collapse(login)), rss(rss.IsEmpty() ? login + ".rss" :
20 >                rss) {}
21          ~Buddy() {}
22 +        const ext::Uuid& getId() const { return id; }
23 +        void setId(const ext::Uuid& id) { this->id = id; }
24          bool operator==(const Buddy& buddy) const { return login == buddy.login; }
25          bool operator<(const Buddy& buddy) const { return login < buddy.login; }
26          operator const ext::String&() const { return login; }
27 + // friends:
28 +        friend std::ostream& operator<<(std::ostream& sout, const Buddy& buddy);
29   };
30  
31   #endif // _Buddy_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines