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 |
douglas |
20 |
const std::set<Buddy>& buddies; |
18 |
douglas |
18 |
bool start, prompted; |
19 |
douglas |
15 |
api::Thread collector; |
20 |
douglas |
17 |
net::Oscar::BuddyTool* buddy; |
21 |
|
|
net::Oscar::IcbmTool* icbm; |
22 |
douglas |
20 |
int collect(); |
23 |
douglas |
15 |
void prompt(); |
24 |
douglas |
20 |
void reply(const Buddy& buddy, const ext::String& message); |
25 |
douglas |
13 |
public: |
26 |
douglas |
15 |
Collector(const ext::String& login, ext::String& password, const |
27 |
|
|
std::set<Buddy>& buddies, bool start); |
28 |
|
|
~Collector() { if (start) collector.Join(); } |
29 |
douglas |
13 |
// |
30 |
|
|
}; |
31 |
|
|
|
32 |
|
|
#endif // _Collector_hpp_ |