Add classes SinglePoolStrategy, DonateStrategy, IStrategy, IStrategyListener.
This commit is contained in:
parent
b2d26eb019
commit
bd8776b7ee
11 changed files with 414 additions and 108 deletions
|
@ -31,13 +31,15 @@
|
|||
|
||||
#include "interfaces/IClientListener.h"
|
||||
#include "interfaces/IJobResultListener.h"
|
||||
#include "interfaces/IStrategyListener.h"
|
||||
|
||||
|
||||
class IStrategy;
|
||||
class Options;
|
||||
class Url;
|
||||
|
||||
|
||||
class Network : public IClientListener, public IJobResultListener
|
||||
class Network : public IClientListener, public IJobResultListener, public IStrategyListener
|
||||
{
|
||||
public:
|
||||
Network(const Options *options);
|
||||
|
@ -59,15 +61,11 @@ private:
|
|||
void startDonate();
|
||||
void stopDonate();
|
||||
|
||||
static void onTimer(uv_timer_t *handle);
|
||||
|
||||
bool m_donate;
|
||||
bool m_donateActive;
|
||||
char *m_agent;
|
||||
const Options *m_options;
|
||||
int m_pool;
|
||||
std::vector<Client*> m_pools;
|
||||
uint64_t m_diff;
|
||||
uv_timer_t m_timer;
|
||||
IStrategy *m_donate;
|
||||
IStrategy *m_strategy;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue