X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/5c19a000ed76d49fae019ed50955a1a530d161f0..87bf949d1f8b8a86716c5880244df95b39f67708:/include/stg/settings.h diff --git a/include/stg/settings.h b/include/stg/settings.h index 16714be3..a20ce03f 100644 --- a/include/stg/settings.h +++ b/include/stg/settings.h @@ -17,31 +17,37 @@ /* * Author : Maxim Mamontov */ - -#ifndef SETTINGS_H -#define SETTINGS_H +#pragma once #include +#include + +namespace STG +{ + +struct Settings { + virtual ~Settings() = default; -class SETTINGS { -public: - virtual const std::string & GetDirName(size_t num) const = 0; - virtual const std::string & GetScriptsDir() const = 0; - virtual unsigned GetDetailStatWritePeriod() const = 0; - virtual unsigned GetStatWritePeriod() const = 0; - virtual unsigned GetDayFee() const = 0; - virtual bool GetFullFee() const = 0; - virtual unsigned GetDayResetTraff() const = 0; - virtual bool GetSpreadFee() const = 0; - virtual bool GetFreeMbAllowInet() const = 0; - virtual bool GetDayFeeIsLastDay() const = 0; - virtual bool GetWriteFreeMbTraffCost() const = 0; - virtual bool GetShowFeeInCash() const = 0; - virtual unsigned GetMessageTimeout() const = 0; - virtual unsigned GetFeeChargeType() const = 0; - virtual const std::string & GetMonitorDir() const = 0; - virtual bool GetMonitoring() const = 0; + virtual const std::string& GetDirName(size_t num) const = 0; + virtual const std::string& GetScriptsDir() const = 0; + virtual unsigned GetDetailStatWritePeriod() const = 0; + virtual unsigned GetStatWritePeriod() const = 0; + virtual unsigned GetDayFee() const = 0; + virtual bool GetFullFee() const = 0; + virtual unsigned GetDayResetTraff() const = 0; + virtual bool GetSpreadFee() const = 0; + virtual bool GetFreeMbAllowInet() const = 0; + virtual bool GetDayFeeIsLastDay() const = 0; + virtual bool GetWriteFreeMbTraffCost() const = 0; + virtual bool GetShowFeeInCash() const = 0; + virtual unsigned GetMessageTimeout() const = 0; + virtual unsigned GetFeeChargeType() const = 0; + virtual bool GetReconnectOnTariffChange() const = 0; + virtual const std::string& GetMonitorDir() const = 0; + virtual bool GetMonitoring() const = 0; + virtual const std::vector& GetScriptParams() const = 0; + virtual bool GetDisableSessionLog() const = 0; + virtual const std::vector& GetFilterParamsLog() const = 0; }; -//----------------------------------------------------------------------------- -#endif +}