1 #ifndef __STGCONFIG_H__
2 #define __STGCONFIG_H__
8 #include "main_thread.h"
10 #define PLUGIN_VERSION "stgconfig v.2.0"
23 class STGCONFIG2 : public PLUGIN {
26 virtual ~STGCONFIG2();
28 void SetUsers(USERS * u) { users = u; }
29 void SetTariffs(TARIFFS * t) { tariffs = t; }
30 void SetAdmins(ADMINS * a) { admins = a; }
31 void SetStore(STORE * s) { store = s; }
32 void SetStgSettings(const SETTINGS * s) { stgSettings = s; }
33 void SetSettings(const MODULE_SETTINGS & s) { modSettings = s; }
38 int Reload() { return 0; }
41 const std::string & GetStrError() const { return errorStr; }
42 const std::string GetVersion() const { return PLUGIN_VERSION; }
43 uint16_t GetStartPosition() const { return 220; }
44 uint16_t GetStopPosition() const { return 220; }
51 const SETTINGS * stgSettings;
52 MODULE_SETTINGS modSettings;
56 mutable std::string errorStr;
58 boost::thread * thread;
62 extern "C" PLUGIN * GetPlugin();