8 #include "stg/plugin.h"
 
  10 #include "configproto.h"
 
  12 extern "C" PLUGIN * GetPlugin();
 
  16 class STG_CONFIG_SETTINGS {
 
  18                     STG_CONFIG_SETTINGS();
 
  19     virtual         ~STG_CONFIG_SETTINGS() {}
 
  20     const std::string & GetStrError() const;
 
  21     int             ParseSettings(const MODULE_SETTINGS & s);
 
  22     uint16_t        GetPort() const;
 
  27 //-----------------------------------------------------------------------------
 
  28 class STG_CONFIG :public PLUGIN {
 
  31     virtual ~STG_CONFIG(){};
 
  33     void                SetUsers(USERS * u);
 
  34     void                SetTariffs(TARIFFS * t);
 
  35     void                SetAdmins(ADMINS * a);
 
  36     void                SetStore(STORE * s);
 
  37     void                SetTraffcounter(TRAFFCOUNTER *) {}
 
  38     void                SetStgSettings(const SETTINGS * s);
 
  39     void                SetSettings(const MODULE_SETTINGS & s);
 
  44     int                 Reload() { return 0; }
 
  47     const std::string & GetStrError() const;
 
  48     const std::string   GetVersion() const;
 
  49     uint16_t            GetStartPosition() const;
 
  50     uint16_t            GetStopPosition() const;
 
  53     static void *       Run(void *);
 
  54     mutable std::string errorStr;
 
  55     STG_CONFIG_SETTINGS stgConfigSettings;
 
  64     MODULE_SETTINGS     settings;
 
  65     const SETTINGS *    stgSettings;
 
  67 //-----------------------------------------------------------------------------