- const std::string & login) const = 0;
-
- virtual int AddMessage(STG_MSG * msg, const std::string & login) const = 0;
- virtual int EditMessage(const STG_MSG & msg, const std::string & login) const = 0;
- virtual int GetMessage(uint64_t id, STG_MSG * msg, const std::string & login) const = 0;
- virtual int DelMessage(uint64_t id, const std::string & login) const = 0;
- virtual int GetMessageHdrs(std::vector<STG_MSG_HDR> * hdrsList, const std::string & login) const = 0;
-
- virtual int SaveMonthStat(const USER_STAT & stat, int month, int year, const std::string & login) const = 0;
-
- virtual int GetAdminsList(std::vector<std::string> * adminsList) const = 0;
- virtual int SaveAdmin(const ADMIN_CONF & ac) const = 0;
- virtual int RestoreAdmin(ADMIN_CONF * ac, const std::string & login) const = 0;
- virtual int AddAdmin(const std::string & login) const = 0;
- virtual int DelAdmin(const std::string & login) const = 0;
-
- virtual int GetTariffsList(std::vector<std::string> * tariffsList) const = 0;
- virtual int AddTariff(const std::string & name) const = 0;
- virtual int DelTariff(const std::string & name) const = 0;
- virtual int SaveTariff(const TARIFF_DATA & td, const std::string & tariffName) const = 0;
- virtual int RestoreTariff(TARIFF_DATA * td, const std::string & tariffName) const = 0;
-
- virtual int GetCorpsList(std::vector<std::string> * corpsList) const = 0;
- virtual int SaveCorp(const CORP_CONF & cc) const = 0;
- virtual int RestoreCorp(CORP_CONF * cc, const std::string & name) const = 0;
- virtual int AddCorp(const std::string & name) const = 0;
- virtual int DelCorp(const std::string & name) const = 0;
-
- virtual int GetServicesList(std::vector<std::string> * corpsList) const = 0;
- virtual int SaveService(const SERVICE_CONF & sc) const = 0;
- virtual int RestoreService(SERVICE_CONF * sc, const std::string & name) const = 0;
- virtual int AddService(const std::string & name) const = 0;
- virtual int DelService(const std::string & name) const = 0;
-
- virtual void SetSettings(const MODULE_SETTINGS & s) = 0;
+ const std::string& login) const = 0;
+
+ virtual int AddMessage(Message* msg, const std::string& login) const = 0;
+ virtual int EditMessage(const Message& msg, const std::string& login) const = 0;
+ virtual int GetMessage(uint64_t id, Message* msg, const std::string& login) const = 0;
+ virtual int DelMessage(uint64_t id, const std::string& login) const = 0;
+ virtual int GetMessageHdrs(std::vector<Message::Header>* hdrsList, const std::string& login) const = 0;
+
+ virtual int SaveMonthStat(const UserStat& stat, int month, int year, const std::string& login) const = 0;
+
+ virtual int GetAdminsList(std::vector<std::string>* adminsList) const = 0;
+ virtual int SaveAdmin(const AdminConf& ac) const = 0;
+ virtual int RestoreAdmin(AdminConf* ac, const std::string& login) const = 0;
+ virtual int AddAdmin(const std::string& login) const = 0;
+ virtual int DelAdmin(const std::string& login) const = 0;
+
+ virtual int GetTariffsList(std::vector<std::string>* tariffsList) const = 0;
+ virtual int AddTariff(const std::string& name) const = 0;
+ virtual int DelTariff(const std::string& name) const = 0;
+ virtual int SaveTariff(const TariffData& td, const std::string& tariffName) const = 0;
+ virtual int RestoreTariff(TariffData* td, const std::string& tariffName) const = 0;
+
+ virtual int GetCorpsList(std::vector<std::string>* corpsList) const = 0;
+ virtual int SaveCorp(const CorpConf& cc) const = 0;
+ virtual int RestoreCorp(CorpConf* cc, const std::string& name) const = 0;
+ virtual int AddCorp(const std::string& name) const = 0;
+ virtual int DelCorp(const std::string& name) const = 0;
+
+ virtual int GetServicesList(std::vector<std::string>* corpsList) const = 0;
+ virtual int SaveService(const ServiceConf& sc) const = 0;
+ virtual int RestoreService(ServiceConf* sc, const std::string& name) const = 0;
+ virtual int AddService(const std::string& name) const = 0;
+ virtual int DelService(const std::string& name) const = 0;
+
+ virtual void SetSettings(const ModuleSettings& s) = 0;