#include "admins.h"
#include "users.h"
#include "tariffs.h"
+#include "services.h"
+#include "corporations.h"
class TRAFFCOUNTER;
class SETTINGS;
class PLUGIN : private NONCOPYABLE {
public:
- virtual void SetUsers(USERS * u) = 0;
- virtual void SetTariffs(TARIFFS * t) = 0;
- virtual void SetAdmins(ADMINS * a) = 0;
- virtual void SetTraffcounter(TRAFFCOUNTER * tc) = 0;
- virtual void SetStore(STORE * st) = 0;
- virtual void SetStgSettings(const SETTINGS * s) = 0;
- virtual void SetSettings(const MODULE_SETTINGS & s) = 0;
+ virtual void SetUsers(USERS *) {}
+ virtual void SetTariffs(TARIFFS *) {}
+ virtual void SetAdmins(ADMINS *) {}
+ virtual void SetServices(SERVICES *) {}
+ virtual void SetCorporations(CORPORATIONS *) {}
+ virtual void SetTraffcounter(TRAFFCOUNTER *) {}
+ virtual void SetStore(STORE *) {}
+ virtual void SetStgSettings(const SETTINGS *) {}
+ virtual void SetSettings(const MODULE_SETTINGS &) {}
virtual int ParseSettings() = 0;
virtual int Start() = 0;
virtual ~AUTH_AO(){};
void SetUsers(USERS * u) { users = u; }
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
virtual ~AUTH_IA();
void SetUsers(USERS * u) { users = u; }
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
void SetStgSettings(const SETTINGS * s) { stgSettings = s; }
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
virtual ~AUTH_STRESS() {}
void SetUsers(USERS * u);
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
DEBUG_CAP();
virtual ~DEBUG_CAP() {}
- void SetUsers(USERS * u) {}
- void SetTariffs(TARIFFS * t) {}
- void SetAdmins(ADMINS * a) {}
void SetTraffcounter(TRAFFCOUNTER * tc);
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
int Reload() { return 0; }
int ParseSettings() { return 0; }
- void SetSettings(const MODULE_SETTINGS & s) {}
bool IsRunning();
const string & GetStrError() const;
const string GetVersion() const;
NF_CAP();
~NF_CAP();
- void SetUsers(USERS *) {}
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
DIVERT_CAP();
virtual ~DIVERT_CAP() {}
- void SetUsers(USERS *) {}
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
BPF_CAP();
virtual ~BPF_CAP() {}
- void SetUsers(USERS *) {}
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
ETHER_CAP();
virtual ~ETHER_CAP() {}
- void SetUsers(USERS *) {}
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
int Reload() { return 0; }
bool IsRunning() { return isRunning; }
- void SetSettings(const MODULE_SETTINGS &) {}
int ParseSettings() { return 0; }
const std::string & GetStrError() const { return errorStr; }
const std::string GetVersion() const;
IPQ_CAP();
virtual ~IPQ_CAP() {}
- void SetUsers(USERS *) {}
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
void SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
int Start();
int Stop();
int Reload() { return 0; }
bool IsRunning() { return isRunning; }
- void SetSettings(const MODULE_SETTINGS &) {}
int ParseSettings() { return 0; }
const std::string & GetStrError() const { return errorStr; }
const std::string GetVersion() const;
void SetTariffs(TARIFFS * t) { tariffs = t; }
void SetAdmins(ADMINS * a) { admins = a; }
void SetStore(STORE * s) { store = s; }
- void SetTraffcounter(TRAFFCOUNTER *) {}
void SetStgSettings(const SETTINGS * s);
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
void SetTariffs(TARIFFS * t) { tariffs = t; }
void SetAdmins(ADMINS * a) { admins = a; }
void SetStore(STORE * s) { store = s; }
- void SetTraffcounter(TRAFFCOUNTER *) {}
void SetStgSettings(const SETTINGS * s) { stgSettings = s; }
void SetSettings(const MODULE_SETTINGS & s) { modSettings = s; }
int ParseSettings();
void SetTariffs(TARIFFS * t) { tariffs = t; }
void SetAdmins(ADMINS * a) { admins = a; }
void SetStore(STORE * s) { store = s; }
- void SetTraffcounter(TRAFFCOUNTER *) {}
void SetStgSettings(const SETTINGS * s) { stgSettings = s; }
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
void SetTariffs(TARIFFS * t) { tariffs = t; }
void SetAdmins(ADMINS * a) { admins = a; }
void SetStore(STORE * s) { store = s; }
- void SetTraffcounter(TRAFFCOUNTER *) {}
void SetStgSettings(const SETTINGS * s) { stgConfigSettings = s; }
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
void SetTariffs(TARIFFS * t);
void SetAdmins(ADMINS * a);
void SetStore(BASE_STORE * s);
- void SetTraffcounter(TRAFFCOUNTER * tc){};
void SetStgSettings(const SETTINGS * s);
void SetSettings(const MODULE_SETTINGS & s);
int ParseSettings();
virtual ~PING();
void SetUsers(USERS * u);
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
void SetSettings(const MODULE_SETTINGS & s);
int ParseSettings();
virtual ~RADIUS() {};
void SetUsers(USERS * u);
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
void SetStore(STORE * );
void SetStgSettings(const SETTINGS * s);
void SetSettings(const MODULE_SETTINGS & s);
virtual ~REMOTE_SCRIPT();
void SetUsers(USERS * u) { users = u; }
- void SetTariffs(TARIFFS *) {}
- void SetAdmins(ADMINS *) {}
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
void SetAdmins(ADMINS * a) { admins = a; }
void SetServices(SERVICES * s) { services = s; }
void SetCorporations(CORPORATIONS * c) { corporations = c; }
- void SetTraffcounter(TRAFFCOUNTER *) {}
- void SetStore(STORE *) {}
- void SetStgSettings(const SETTINGS *) {}
void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
int ParseSettings();
USERSTAT();
~USERSTAT();
- virtual void SetUsers(USERS * u) { users = u; };
- virtual void SetTariffs(TARIFFS * t) {};
- virtual void SetAdmins(ADMINS * a) {};
- virtual void SetTraffcounter(TRAFFCOUNTER * tc) {};
- virtual void SetStore(BASE_STORE * st) { store = st; };
- virtual void SetStgSettings(const SETTINGS * s) {};
- virtual void SetSettings(const MODULE_SETTINGS & s) { settings = s; };
+ virtual void SetUsers(USERS * u) { users = u; }
+ virtual void SetStore(BASE_STORE * st) { store = st; }
+ virtual void SetSettings(const MODULE_SETTINGS & s) { settings = s; }
virtual int ParseSettings();
virtual int Start();
virtual int Stop();
- virtual bool IsRunning() { return isRunning; };
- virtual const string & GetStrError() const { return errorStr; };
- virtual const string GetVersion() const { return version; };
- virtual uint16_t GetStartPosition() const { return 0; };
- virtual uint16_t GetStopPosition() const { return 0; };
+ virtual bool IsRunning() { return isRunning; }
+ virtual const string & GetStrError() const { return errorStr; }
+ virtual const string GetVersion() const { return version; }
+ virtual uint16_t GetStartPosition() const { return 0; }
+ virtual uint16_t GetStopPosition() const { return 0; }
private:
struct IsDone : public unary_function<DataThread, bool>
{
- bool operator()(const DataThread & info) { return info.IsDone(); };
+ bool operator()(const DataThread & info) { return info.IsDone(); }
};
struct ToLower : public unary_function<char, char>
{