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

Comparing trunk/Publisher.cpp (file contents):
Revision 24 by douglas, 2004-07-17T01:08:00-07:00 vs.
Revision 25 by douglas, 2004-07-17T16:29:02-07:00

# Line 5 | Line 5
5   // $Id$
6  
7   #include "Publisher.hpp"
8 + #include "Rss.hpp"
9  
10   Publisher::Publisher(const std::set<Buddy>& buddies, const Database& database,
11          bool start) : buddies(buddies), database(database), start(start)
# Line 20 | Line 21 | int Publisher::publish()
21          cerr << bright << green << "Publisher::publish()\n" << reset;
22  
23          // publish
24 +
25 +        Buddy buddy(*buddies.find(ext::String("douglaswth")));
26 +        std::vector<AwayMessage> messages;
27 +
28 +        messages.push_back(AwayMessage("<font size=3>Ice Cream!</font> :-D",
29 +                ext::String("Sat, 17 Jul 2004 20:45:32 GMT")));
30 +        messages.push_back(AwayMessage(ext::String("<font size=3>Apparently, I hav")
31 +                + "e left my computer, isn't that strange?</font> :-P", ext::String('S')
32 +                + "at, 17 Jul 2004 21:39:13 GMT"));
33 +
34 +        Rss rss(buddy, messages);
35   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines