]> git.stg.codes - stg.git/blob - tests/testsettings.h
Start replacing notifiers with subscriptions.
[stg.git] / tests / testsettings.h
1 #pragma once
2
3 #include "stg/settings.h"
4
5 class TestSettings : public STG::Settings
6 {
7     public:
8         TestSettings() { m_filterParamsLog.push_back("*"); }
9
10         const std::string&  GetDirName(size_t) const override { return m_dirName; }
11         const std::string&  GetScriptsDir() const override { return m_scriptsDir; }
12         unsigned            GetDetailStatWritePeriod() const override { return 10; }
13         unsigned            GetStatWritePeriod() const override { return 10; }
14         unsigned            GetDayFee() const override { return 0; }
15         bool                GetFullFee() const override { return false; }
16         unsigned            GetDayResetTraff() const override { return 0; }
17         bool                GetSpreadFee() const override { return false; }
18         bool                GetFreeMbAllowInet() const override { return false; }
19         bool                GetDayFeeIsLastDay() const override { return false; }
20         bool                GetWriteFreeMbTraffCost() const override { return false; }
21         bool                GetShowFeeInCash() const override { return false; }
22         unsigned            GetMessageTimeout() const override { return 0; }
23         unsigned            GetFeeChargeType() const override { return 0; }
24         bool                GetReconnectOnTariffChange() const override { return false; }
25         const std::string&  GetMonitorDir() const override { return m_monitorDir; }
26         bool                GetMonitoring() const override { return false; }
27         const std::vector<std::string>& GetScriptParams() const override { return m_scriptParams; }
28         bool                GetDisableSessionLog() const override { return false; }
29         const std::vector<std::string>& GetFilterParamsLog() const override { return m_filterParamsLog; }
30
31     private:
32         std::string m_dirName;
33         std::string m_scriptsDir;
34         std::string m_monitorDir;
35         std::vector<std::string> m_scriptParams;
36         std::vector<std::string> m_filterParamsLog;
37 };