3 #include "base_plugin.h"
8 extern "C" BASE_PLUGIN * GetPlugin();
12 //-----------------------------------------------------------------------------
13 class XR_CONFIG_SETTINGS
17 virtual ~XR_CONFIG_SETTINGS(){};
18 const string & GetStrError() const;
19 int ParseSettings(const MODULE_SETTINGS & s);
26 //-----------------------------------------------------------------------------
27 class XR_CONFIG :public BASE_PLUGIN
31 virtual ~XR_CONFIG(){};
33 void SetUsers(USERS * u);
34 void SetTariffs(TARIFFS * t);
35 void SetAdmins(ADMINS * a);
36 void SetStore(BASE_STORE * s);
37 void SetTraffcounter(TRAFFCOUNTER * tc){};
38 void SetStgSettings(const SETTINGS * s);
39 void SetSettings(const MODULE_SETTINGS & s);
44 int Reload() { return 0; };
47 const string & GetStrError() const;
48 const string GetVersion() const;
49 uint16_t GetStartPosition() const;
50 uint16_t GetStopPosition() const;
55 int SetUserCash(const string & admLogin, const string & usrLogin, double cash) const;
57 static void * Run(void *);
58 mutable string errorStr;
59 XR_CONFIG_SETTINGS xrConfigSettings;
70 MODULE_SETTINGS settings;
71 const SETTINGS * stgSettings;
73 //-----------------------------------------------------------------------------