7 |
|
#ifndef _Publisher_hpp_ |
8 |
|
#define _Publisher_hpp_ |
9 |
|
|
10 |
< |
#include "AwayMessage.hpp" |
10 |
> |
#include "Zoe.hpp" |
11 |
|
|
12 |
|
class Publisher |
13 |
|
{ |
14 |
|
private: |
15 |
+ |
const std::set<Buddy>& buddies; |
16 |
+ |
const Database& database; |
17 |
|
bool start; |
18 |
|
api::Thread publisher; |
19 |
< |
int publish(const std::set<Buddy>& buddies); |
19 |
> |
int publish(); |
20 |
|
public: |
21 |
< |
Publisher(const std::set<Buddy>& buddies, bool start); |
21 |
> |
Publisher(const std::set<Buddy>& buddies, const Database& database, bool |
22 |
> |
start); |
23 |
|
~Publisher() { if (start) publisher.Join(); } |
24 |
|
// |
25 |
|
}; |