3 #include "base_plugin.h"
4 //#include "common_settings.h"
6 //#include "configproto.h"
10 extern "C" BASE_PLUGIN * GetPlugin();
14 //-----------------------------------------------------------------------------
15 class XR_CONFIG_SETTINGS
19 virtual ~XR_CONFIG_SETTINGS(){};
20 const string & GetStrError() const;
21 int ParseSettings(const MODULE_SETTINGS & s);
25 int ParseIntInRange(const string & str, int min, int max, int * val);
29 //-----------------------------------------------------------------------------
30 class XR_CONFIG :public BASE_PLUGIN
34 virtual ~XR_CONFIG(){};
36 void SetUsers(USERS * u);
37 void SetTariffs(TARIFFS * t);
38 void SetAdmins(ADMINS * a);
39 void SetStore(BASE_STORE * s);
40 void SetTraffcounter(TRAFFCOUNTER * tc){};
41 void SetStgSettings(const SETTINGS * s);
42 void SetSettings(const MODULE_SETTINGS & s);
47 int Reload() { return 0; };
50 const string & GetStrError() const;
51 const string GetVersion() const;
52 uint16_t GetStartPosition() const;
53 uint16_t GetStopPosition() const;
58 int SetUserCash(const string & admLogin, const string & usrLogin, double cash) const;
60 static void * Run(void *);
61 mutable string errorStr;
62 XR_CONFIG_SETTINGS xrConfigSettings;
73 MODULE_SETTINGS settings;
74 const SETTINGS * stgSettings;
76 //-----------------------------------------------------------------------------