X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/762a2c91535d98ff0fa95aed91abbb5155c2e946..973e172ebe80396cbdc5a06b5bf40d706e6dae33:/projects/stargazer/settings.h diff --git a/projects/stargazer/settings.h b/projects/stargazer/settings.h index 16a9d61b..86262808 100644 --- a/projects/stargazer/settings.h +++ b/projects/stargazer/settings.h @@ -91,7 +91,7 @@ public: unsigned GetMessageTimeout() const { return messageTimeout * 3600 * 24; } const std::string & GetModulesPath() const { return modulesPath; } - const MODULE_SETTINGS & GetStoreModuleSettings() const + const MODULE_SETTINGS & GetStoreModuleSettings() const { return storeModuleSettings; } const std::vector & GetModulesSettings() const { return modulesSettings; } @@ -110,6 +110,7 @@ private: static void ErrorCallback(void * data, const char * buf); std::string strError; + //////////settings std::string modulesPath; std::string dirName[DIR_NUM]; @@ -125,14 +126,14 @@ private: int stgExecMsgKey; unsigned executersNum; bool fullFee; - unsigned dayFee; // ÄÅÎØ ÓÎÑÔÉÑ ÁÂÏÎÐÌÁÔÙ - unsigned dayResetTraff; // îÁÞÁÌÏ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ: ÄÅÎØ ÏÂÎÕÌÅÎÉÑ ÔÒÁÆÉËÁ É ÓÍÅÎÙ ÔÁÒÉÆÁ + unsigned dayFee; + unsigned dayResetTraff; bool spreadFee; bool freeMbAllowInet; - bool dayFeeIsLastDay; // áð ÓÎÉÍÁÅÔÓÑ × ËÏÎÃÅ ÍÅÓÑÃÁ (true) ÉÌÉ × ÎÁÞÁÌÅ (false) - bool writeFreeMbTraffCost; // ðÉÓÁÔØ × ÄÅÔÁÌØÎÕÀ ÓÔÁÔÉÓÔÉËÕ ÓÔÏÉÍÏÓÔØ ÔÒÁÆÉËÁ, ÅÓÌÉ ÅÝÅ ÅÓÔØ ÐÒÅÄÏÐÌÁÞÅÎÎÙÊ ÔÒÁÆÉË - bool showFeeInCash; // ðÏËÁÚÙ×ÁÔØ ÐÏÌØÚÏ×ÁÔÅÌÀ áð ÎÅ ÓÞÅÔÕ É ÐÏÚ×ÏÌÑÔØ ÅÅ ÉÓÐÏÌØÚÏ×ÁÔØ - unsigned messageTimeout; // ÷ÒÅÍÑ ÖÉÚÎÉ ÎÅÏÔÐÒÁ×ÌÅÎÎÏÇÏ ÓÏÏÂÝÅÎÉÑ × ÓÅËÕÎÄÁÈ + bool dayFeeIsLastDay; + bool writeFreeMbTraffCost; + bool showFeeInCash; + unsigned messageTimeout; std::vector modulesSettings; MODULE_SETTINGS storeModuleSettings; @@ -140,4 +141,5 @@ private: STG_LOGGER & logger; }; //----------------------------------------------------------------------------- + #endif