]> git.stg.codes - stg.git/blobdiff - include/stg/tariff.h
Merge remote-tracking branch 'origin/stg-2.409' into ticket37
[stg.git] / include / stg / tariff.h
index 147cd0de922c24ed6c5353e2f0b276f5491bf792..9bd9973eaa5cedebbe33f91b236e3a1df3de1995 100644 (file)
@@ -67,12 +67,13 @@ public:
     virtual int64_t GetTraffByType(uint64_t up, uint64_t down) const = 0;
     virtual int     GetThreshold(int dir) const = 0;
     virtual const TARIFF_DATA & GetTariffData() const = 0;
     virtual int64_t GetTraffByType(uint64_t up, uint64_t down) const = 0;
     virtual int     GetThreshold(int dir) const = 0;
     virtual const TARIFF_DATA & GetTariffData() const = 0;
+    virtual std::string TariffChangeIsAllowed(const TARIFF & to) const = 0;
 };
 
 inline
 };
 
 inline
-std::string TARIFF::ChangePolicyToString(TARIFF::CHANGE_POLICY change_policy)
+std::string TARIFF::ChangePolicyToString(TARIFF::CHANGE_POLICY changePolicy)
 {
 {
-switch (change_policy)
+switch (changePolicy)
     {
     case ALLOW: return "allow";
     case TO_CHEAP: return "to_cheap";
     {
     case ALLOW: return "allow";
     case TO_CHEAP: return "to_cheap";