1 |
douglas |
13 |
// Zoe AIM Away Message RSS Feed Generator |
2 |
|
|
// |
3 |
|
|
// Seth King and Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// $Id$ |
6 |
|
|
|
7 |
|
|
#ifndef _Collector_hpp_ |
8 |
|
|
#define _Collector_hpp_ |
9 |
|
|
|
10 |
|
|
#include "AwayMessage.hpp" |
11 |
|
|
|
12 |
|
|
class Collector |
13 |
|
|
{ |
14 |
|
|
private: |
15 |
douglas |
15 |
const ext::String& login; |
16 |
|
|
ext::String& password; |
17 |
|
|
bool start; |
18 |
|
|
api::Thread collector; |
19 |
|
|
int collect(const std::set<Buddy>& buddies); |
20 |
|
|
void prompt(); |
21 |
douglas |
13 |
public: |
22 |
douglas |
15 |
Collector(const ext::String& login, ext::String& password, const |
23 |
|
|
std::set<Buddy>& buddies, bool start); |
24 |
|
|
~Collector() { if (start) collector.Join(); } |
25 |
douglas |
13 |
// |
26 |
|
|
}; |
27 |
|
|
|
28 |
|
|
#endif // _Collector_hpp_ |