X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7c744ef82350aa401c61aa6f0424866a16c2ed1a..5d8864b1d5742dae434c83b66b490484f9a839fe:/include/stg/tariffs.h?ds=sidebyside diff --git a/include/stg/tariffs.h b/include/stg/tariffs.h index 515e7608..6a851c5a 100644 --- a/include/stg/tariffs.h +++ b/include/stg/tariffs.h @@ -32,6 +32,9 @@ struct TARIFF_DATA; class TARIFFS { public: + typedef std::list Tariffs; + + virtual ~TARIFFS() {} virtual int ReadTariffs () = 0; virtual const TARIFF * FindByName(const std::string & name) const = 0; virtual const TARIFF * GetNoTariff() const = 0; @@ -45,7 +48,7 @@ public: virtual void AddNotifierDel(NOTIFIER_BASE * notifier) = 0; virtual void DelNotifierDel(NOTIFIER_BASE * notifier) = 0; - virtual void GetTariffsData(std::list * tdl) = 0; + virtual void GetTariffsData(std::list * tdl) const = 0; virtual size_t Count() const = 0;