]> git.stg.codes - stg.git/blobdiff - include/stg/settings.h
Reduced scopes plus graceful connection shutdown.
[stg.git] / include / stg / settings.h
index 385439881a5f194b0f453775556f7d335065673a..170f71cada5dc1f3edfbe0c475830ebdcd1ec214 100644 (file)
 class SETTINGS {
 public:
     virtual ~SETTINGS() {}
-    virtual const            std::string & GetDirName(size_t num) const = 0;
-    virtual const            std::string & GetScriptsDir() const = 0;
-    virtual unsigned                       GetDetailStatWritePeriod() const = 0;
-    virtual unsigned                       GetStatWritePeriod() const = 0;
-    virtual unsigned                       GetDayFee() const = 0;
-    virtual bool                           GetFullFee() const = 0;
-    virtual unsigned                       GetDayResetTraff() const = 0;
-    virtual bool                           GetSpreadFee() const = 0;
-    virtual bool                           GetFreeMbAllowInet() const = 0;
-    virtual bool                           GetDayFeeIsLastDay() const = 0;
-    virtual bool                           GetWriteFreeMbTraffCost() const = 0;
-    virtual bool                           GetShowFeeInCash() const = 0;
-    virtual unsigned                       GetMessageTimeout() const = 0;
-    virtual unsigned                       GetFeeChargeType() const = 0;
-    virtual bool                           GetReconnectOnTariffChange() const = 0;
-    virtual const            std::string & GetMonitorDir() const = 0;
-    virtual bool                           GetMonitoring() const = 0;
+    virtual const std::string &              GetDirName(size_t num) const = 0;
+    virtual const std::string &              GetScriptsDir() const = 0;
+    virtual unsigned                         GetDetailStatWritePeriod() const = 0;
+    virtual unsigned                         GetStatWritePeriod() const = 0;
+    virtual unsigned                         GetDayFee() const = 0;
+    virtual bool                             GetFullFee() const = 0;
+    virtual unsigned                         GetDayResetTraff() const = 0;
+    virtual bool                             GetSpreadFee() const = 0;
+    virtual bool                             GetFreeMbAllowInet() const = 0;
+    virtual bool                             GetDayFeeIsLastDay() const = 0;
+    virtual bool                             GetWriteFreeMbTraffCost() const = 0;
+    virtual bool                             GetShowFeeInCash() const = 0;
+    virtual unsigned                         GetMessageTimeout() const = 0;
+    virtual unsigned                         GetFeeChargeType() const = 0;
+    virtual bool                             GetReconnectOnTariffChange() const = 0;
+    virtual const std::string &              GetMonitorDir() const = 0;
+    virtual bool                             GetMonitoring() const = 0;
     virtual const std::vector<std::string> & GetScriptParams() const = 0;
 };
 //-----------------------------------------------------------------------------