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

Comparing trunk/Rss.cpp (file contents):
Revision 48 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 "Rss.hpp"
8  
9 < Rss::Rss(const Buddy& buddy, const std::vector<AwayMessage>& messages, const Stamp& stamp)
9 > Rss::Rss(const Buddy& buddy, const ext::String& display, const std::vector<AwayMessage>& messages, const Stamp& stamp)
10   {
11          api::FileOutputStream fout(buddy.getRss() != "-" ? buddy.getRss() : "/dev/null");
12          xml::TextWriter rss(buddy.getRss() != "-" ? fout : api::Cout.GetStream());
# Line 17 | Line 17 | Rss::Rss(const Buddy& buddy, const std::
17          xml::ScopeElement channel(rss, "channel");
18  
19          rss.OpenElement("title");
20 <        rss.OutputText(ext::String(buddy) + "'s Away Messages");
20 >        rss.OutputText(display + "'s Away Messages");
21          rss.CloseElement();
22          rss.OpenElement("link");
23          rss.OutputText(buddy.getLink());
24          rss.CloseElement();
25          rss.OpenElement("description");
26 <        rss.OutputText(ext::String(buddy) + "'s AIM Away Messages from the past 30 "
26 >        rss.OutputText(display + "'s AIM Away Messages from the past 30 "
27                  "days.");
28          rss.CloseElement();
29          rss.OpenElement("lastBuildDate");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines