7 |
|
#ifndef _Collector_hpp_ |
8 |
|
#define _Collector_hpp_ |
9 |
|
|
10 |
< |
#include "AwayMessage.hpp" |
10 |
> |
#include "Zoe.hpp" |
11 |
|
|
12 |
|
class Collector |
13 |
|
{ |
15 |
|
const ext::String& login; |
16 |
|
ext::String& password; |
17 |
|
const std::set<Buddy>& buddies; |
18 |
+ |
const Database& database; |
19 |
|
bool start, prompted; |
20 |
|
api::Thread collector; |
21 |
|
net::Oscar::BuddyTool* buddy; |
25 |
|
void reply(const Buddy& buddy, const ext::String& message); |
26 |
|
public: |
27 |
|
Collector(const ext::String& login, ext::String& password, const |
28 |
< |
std::set<Buddy>& buddies, bool start); |
28 |
> |
std::set<Buddy>& buddies, const Database& database, bool start); |
29 |
|
~Collector() { if (start) collector.Join(); } |
30 |
|
// |
31 |
|
}; |