1 #ifndef __STGCONFIG_H__
2 #define __STGCONFIG_H__
6 #include "base_plugin.h"
8 #include "main_thread.h"
10 #define PLUGIN_VERSION "stgconfig v.2.0"
23 class STGCONFIG2 : public BASE_PLUGIN
27 virtual ~STGCONFIG2();
29 void SetUsers(USERS * u) { users = u; };
30 void SetTariffs(TARIFFS * t) { tariffs = t; };
31 void SetAdmins(ADMINS * a) { admins = a; };
32 void SetStore(BASE_STORE * s) { store = s; };
33 void SetTraffcounter(TRAFFCOUNTER *) {};
34 void SetStgSettings(const SETTINGS * s) { stgSettings = s; };
35 void SetSettings(const MODULE_SETTINGS & s) { modSettings = s; };
40 int Reload() { return 0; };
43 const std::string & GetStrError() const { return errorStr; };
44 const std::string GetVersion() const { return PLUGIN_VERSION; };
45 uint16_t GetStartPosition() const { return 220; };
46 uint16_t GetStopPosition() const { return 220; };
53 const SETTINGS * stgSettings;
54 MODULE_SETTINGS modSettings;
58 mutable std::string errorStr;
60 boost::thread * thread;
64 extern "C" BASE_PLUGIN * GetPlugin();