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) |
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 |
|
} |