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()); |
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"); |