1 #ifndef __TEST_STORE_H__
2 #define __TEST_STORE_H__
6 class TEST_STORE : public STORE {
10 int GetUsersList(std::vector<std::string> * /*usersList*/) const { return 0; }
11 int AddUser(const std::string & /*login*/) const { return 0; }
12 int DelUser(const std::string & /*login*/) const { return 0; }
13 int SaveUserStat(const USER_STAT & /*stat*/, const std::string & /*login*/) const { return 0; }
14 int SaveUserConf(const USER_CONF & /*conf*/, const std::string & /*login*/) const { return 0; }
15 int RestoreUserStat(USER_STAT * /*stat*/, const std::string & /*login*/) const { return 0; }
16 int RestoreUserConf(USER_CONF * /*conf*/, const std::string & /*login*/) const { 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 { return 0; }
26 int WriteUserConnect(const std::string & /*login*/, uint32_t /*ip*/) const { return 0; }
28 int WriteUserDisconnect(const std::string & /*login*/,
29 const DIR_TRAFF & /*up*/,
30 const DIR_TRAFF & /*down*/,
31 const DIR_TRAFF & /*sessionUp*/,
32 const DIR_TRAFF & /*sessionDown*/,
35 const std::string & /*reason*/) const { return 0; }
37 int WriteDetailedStat(const TRAFF_STAT & /*statTree*/,
39 const std::string & /*login*/) const { return 0; }
41 int AddMessage(STG_MSG * /*msg*/, const std::string & /*login*/) const { return 0; }
42 int EditMessage(const STG_MSG & /*msg*/, const std::string & /*login*/) const { return 0; }
43 int GetMessage(uint64_t /*id*/, STG_MSG * /*msg*/, const std::string & /*login*/) const { return 0; }
44 int DelMessage(uint64_t /*id*/, const std::string & /*login*/) const { return 0; }
45 int GetMessageHdrs(std::vector<STG_MSG_HDR> * /*hdrsList*/, const std::string & /*login*/) const { return 0; }
47 int SaveMonthStat(const USER_STAT & /*stat*/, int /*month*/, int /*year*/, const std::string & /*login*/) const { return 0; }
49 int GetAdminsList(std::vector<std::string> * /*adminsList*/) const { return 0; }
50 int SaveAdmin(const ADMIN_CONF & /*ac*/) const { return 0; }
51 int RestoreAdmin(ADMIN_CONF * /*ac*/, const std::string & /*login*/) const { return 0; }
52 int AddAdmin(const std::string & /*login*/) const { return 0; }
53 int DelAdmin(const std::string & /*login*/) const { return 0; }
55 int GetTariffsList(std::vector<std::string> * /*tariffsList*/) const { return 0; }
56 int AddTariff(const std::string & /*name*/) const { return 0; }
57 int DelTariff(const std::string & /*name*/) const { return 0; }
58 int SaveTariff(const TARIFF_DATA & /*td*/, const std::string & /*tariffName*/) const { return 0; }
59 int RestoreTariff(TARIFF_DATA * /*td*/, const std::string & /*tariffName*/) const { return 0; }
61 int GetCorpsList(std::vector<std::string> * /*corpsList*/) const { return 0; }
62 int SaveCorp(const CORP_CONF & /*cc*/) const { return 0; }
63 int RestoreCorp(CORP_CONF * /*cc*/, const std::string & /*name*/) const { return 0; }
64 int AddCorp(const std::string & /*name*/) const { return 0; }
65 int DelCorp(const std::string & /*name*/) const { return 0; }
67 int GetServicesList(std::vector<std::string> * /*corpsList*/) const { return 0; }
68 int SaveService(const SERVICE_CONF & /*sc*/) const { return 0; }
69 int RestoreService(SERVICE_CONF * /*sc*/, const std::string & /*name*/) const { return 0; }
70 int AddService(const std::string & /*name*/) const { return 0; }
71 int DelService(const std::string & /*name*/) const { return 0; }
73 void SetSettings(const MODULE_SETTINGS & /*s*/) {}
74 int ParseSettings() { return 0; }
75 const std::string & GetStrError() const { return strError; }
76 const std::string & GetVersion() const { return version; }