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

Comparing trunk/Atom.cpp (file contents):
Revision 46 by douglas, 2004-08-16T18:52:59-07:00 vs.
Revision 49 by douglas, 2004-08-19T16:44:47-07:00

# Line 6 | Line 6
6  
7   #include "Atom.hpp"
8  
9 < Atom::Atom(const Buddy& buddy, const std::vector<AwayMessage>& messages, const Stamp& stamp)
9 > Atom::Atom(const Buddy& buddy, const ext::String& display, const std::vector<AwayMessage>& messages, const Stamp& stamp)
10   {
11          api::FileOutputStream fout(buddy.getAtom() != "-" ? buddy.getAtom() : "/dev/null");
12          xml::TextWriter atom(buddy.getAtom() != "-" ? fout : api::Cout.GetStream());
# Line 16 | Line 16 | Atom::Atom(const Buddy& buddy, const std
16          atom.SetAttribute("xmlns", "http://purl.org/atom/ns#");
17          atom.OpenElement("title");
18          atom.SetAttribute("mode", "escaped");
19 <        atom.OutputText(ext::String(buddy) + "'s Away Messages");
19 >        atom.OutputText(display + "'s Away Messages");
20          atom.CloseElement();
21          atom.OpenElement("link");
22          atom.SetAttribute("rel", "alternate");
# Line 35 | Line 35 | Atom::Atom(const Buddy& buddy, const std
35          atom.CloseElement();
36          atom.OpenElement("tagline");
37          atom.SetAttribute("mode", "escaped");
38 <        atom.OutputText(ext::String(buddy) + "'s AIM Away Messages from the past 30"
39 <                " days.");
38 >        atom.OutputText(display + "'s AIM Away Messages from the past 30 days.");
39          atom.CloseElement();
40          atom.OpenElement("generator");
41          atom.SetAttribute("url", Zoe::generator(Zoe::url));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines