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                SetStgSettings(const SETTINGS * s);
 
  38     void                SetSettings(const MODULE_SETTINGS & s);
 
  43     int                 Reload() { return 0; };
 
  46     const string      & GetStrError() const;
 
  47     const string        GetVersion() const;
 
  48     uint16_t            GetStartPosition() const;
 
  49     uint16_t            GetStopPosition() const;
 
  54     int                 SetUserCash(const string & admLogin, const string & usrLogin, double cash) const;
 
  56     static void *       Run(void *);
 
  57     mutable string      errorStr;
 
  58     XR_CONFIG_SETTINGS  xrConfigSettings;
 
  69     MODULE_SETTINGS     settings;
 
  70     const SETTINGS *    stgSettings;
 
  72 //-----------------------------------------------------------------------------