X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/41ef27bc78218657d477a8f4334dede5d09ab38d..1e8eb98d30459399902534082c88b94bb26bb2e3:/include/stg/tariffs.h?ds=sidebyside diff --git a/include/stg/tariffs.h b/include/stg/tariffs.h index 8c098c8b..51179d2f 100644 --- a/include/stg/tariffs.h +++ b/include/stg/tariffs.h @@ -22,7 +22,9 @@ #define TARIFFS_H #include -#include +#include + +#include "notifer.h" class ADMIN; class TARIFF; @@ -30,15 +32,23 @@ struct TARIFF_DATA; class TARIFFS { public: - virtual int ReadTariffs () = 0; + virtual ~TARIFFS() {} + virtual int ReadTariffs () = 0; virtual const TARIFF * FindByName(const std::string & name) const = 0; virtual const TARIFF * GetNoTariff() const = 0; - virtual int GetTariffsNum() const = 0; - virtual int Del(const std::string & name, const ADMIN * admin) = 0; - virtual int Add(const std::string & name, const ADMIN * admin) = 0; - virtual int Chg(const TARIFF_DATA & td, const ADMIN * admin) = 0; + virtual int Del(const std::string & name, const ADMIN * admin) = 0; + virtual int Add(const std::string & name, const ADMIN * admin) = 0; + virtual int Chg(const TARIFF_DATA & td, const ADMIN * admin) = 0; + + virtual void AddNotifierAdd(NOTIFIER_BASE * notifier) = 0; + virtual void DelNotifierAdd(NOTIFIER_BASE * notifier) = 0; + + virtual void AddNotifierDel(NOTIFIER_BASE * notifier) = 0; + virtual void DelNotifierDel(NOTIFIER_BASE * notifier) = 0; + + virtual void GetTariffsData(std::vector * tdl) const = 0; - virtual void GetTariffsData(std::list * tdl) = 0; + virtual size_t Count() const = 0; virtual const std::string & GetStrError() const = 0; };