7 |
|
#ifndef _Collector_hpp_ |
8 |
|
#define _Collector_hpp_ |
9 |
|
|
10 |
< |
#include "AwayMessage.hpp" |
10 |
> |
#include "Zoe.hpp" |
11 |
|
|
12 |
|
class Collector |
13 |
|
{ |
14 |
|
private: |
15 |
|
const ext::String& login; |
16 |
|
ext::String& password; |
17 |
< |
bool start; |
17 |
> |
const std::set<Buddy>& buddies; |
18 |
> |
const Database& database; |
19 |
> |
bool start, prompted; |
20 |
|
api::Thread collector; |
21 |
< |
static net::Oscar::BuddyTool* buddy; |
22 |
< |
static net::Oscar::IcbmTool* icbm; |
23 |
< |
int collect(const std::set<Buddy>& buddies); |
21 |
> |
net::Oscar::BuddyTool* buddy; |
22 |
> |
net::Oscar::IcbmTool* icbm; |
23 |
> |
net::Oscar::InfoTool* info; |
24 |
> |
int collect(); |
25 |
|
void prompt(); |
26 |
< |
static void reply(const ext::String& login, const ext::String& reply); |
26 |
> |
void status(const net::Oscar::UserInfo& user); |
27 |
> |
void receive(const ext::String& buddy, const ext::String& message); |
28 |
|
public: |
29 |
|
Collector(const ext::String& login, ext::String& password, const |
30 |
< |
std::set<Buddy>& buddies, bool start); |
30 |
> |
std::set<Buddy>& buddies, const Database& database, bool start); |
31 |
|
~Collector() { if (start) collector.Join(); } |
28 |
– |
// |
32 |
|
}; |
33 |
|
|
34 |
|
#endif // _Collector_hpp_ |