5 class TestStore : public STG::Store
10 int GetUsersList(std::vector<std::string>* /*usersList*/) const override { return 0; }
11 int AddUser(const std::string& /*login*/) const override { return 0; }
12 int DelUser(const std::string& /*login*/) const override { return 0; }
13 int SaveUserStat(const STG::UserStat& /*stat*/, const std::string& /*login*/) const override { return 0; }
14 int SaveUserConf(const STG::UserConf& /*conf*/, const std::string& /*login*/) const override { return 0; }
15 int RestoreUserStat(STG::UserStat* /*stat*/, const std::string& /*login*/) const override { return 0; }
16 int RestoreUserConf(STG::UserConf* /*conf*/, const std::string& /*login*/) const override { return 0; }
18 int WriteUserChgLog(const std::string& /*login*/,
19 const std::string& /*admLogin*/,
21 const std::string& /*paramName*/,
22 const std::string& /*oldValue*/,
23 const std::string& /*newValue*/,
24 const std::string& /*message*/) const override { return 0; }
26 int WriteUserConnect(const std::string& /*login*/, uint32_t /*ip*/) const override { return 0; }
28 int WriteUserDisconnect(const std::string& /*login*/,
29 const STG::DirTraff& /*up*/,
30 const STG::DirTraff& /*down*/,
31 const STG::DirTraff& /*sessionUp*/,
32 const STG::DirTraff& /*sessionDown*/,
35 const std::string& /*reason*/) const override { return 0; }
37 int WriteDetailedStat(const STG::TraffStat& /*statTree*/,
39 const std::string& /*login*/) const override { return 0; }
41 int AddMessage(STG::Message* /*msg*/, const std::string& /*login*/) const override { return 0; }
42 int EditMessage(const STG::Message& /*msg*/, const std::string& /*login*/) const override { return 0; }
43 int GetMessage(uint64_t /*id*/, STG::Message* /*msg*/, const std::string& /*login*/) const override { return 0; }
44 int DelMessage(uint64_t /*id*/, const std::string& /*login*/) const override { return 0; }
45 int GetMessageHdrs(std::vector<STG::Message::Header>* /*hdrsList*/, const std::string& /*login*/) const override { return 0; }
47 int SaveMonthStat(const STG::UserStat& /*stat*/, int /*month*/, int /*year*/, const std::string& /*login*/) const override { return 0; }
49 int GetAdminsList(std::vector<std::string>* /*adminsList*/) const override { return 0; }
50 int SaveAdmin(const STG::AdminConf& /*ac*/) const override { return 0; }
51 int RestoreAdmin(STG::AdminConf* /*ac*/, const std::string& /*login*/) const override { return 0; }
52 int AddAdmin(const std::string& /*login*/) const override { return 0; }
53 int DelAdmin(const std::string& /*login*/) const override { return 0; }
55 int GetTariffsList(std::vector<std::string>* /*tariffsList*/) const override { return 0; }
56 int AddTariff(const std::string& /*name*/) const override { return 0; }
57 int DelTariff(const std::string& /*name*/) const override { return 0; }
58 int SaveTariff(const STG::TariffData& /*td*/, const std::string& /*tariffName*/) const override { return 0; }
59 int RestoreTariff(STG::TariffData* /*td*/, const std::string& /*tariffName*/) const override { return 0; }
61 int GetCorpsList(std::vector<std::string>* /*corpsList*/) const override { return 0; }
62 int SaveCorp(const STG::CorpConf& /*cc*/) const override { return 0; }
63 int RestoreCorp(STG::CorpConf* /*cc*/, const std::string& /*name*/) const override { return 0; }
64 int AddCorp(const std::string& /*name*/) const override { return 0; }
65 int DelCorp(const std::string& /*name*/) const override { return 0; }
67 int GetServicesList(std::vector<std::string>* /*corpsList*/) const override { return 0; }
68 int SaveService(const STG::ServiceConf& /*sc*/) const override { return 0; }
69 int RestoreService(STG::ServiceConf* /*sc*/, const std::string& /*name*/) const override { return 0; }
70 int AddService(const std::string& /*name*/) const override { return 0; }
71 int DelService(const std::string& /*name*/) const override { return 0; }
73 void SetSettings(const STG::ModuleSettings& /*s*/) override {}
74 int ParseSettings() override { return 0; }
75 const std::string& GetStrError() const override { return m_errorStr; }
76 const std::string& GetVersion() const override { return m_version; }
79 std::string m_errorStr;
80 std::string m_version;