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;
};
# Parameter: optional
# Values: yes, no
# Default: no
-FullFee = yes
+FullFee = no
# Allow user to see and use a full cash (yes) or hide a part of it (no)
# for the next fee charge
# Default: 0 (classic)
# FeeChargeType = 0
+# Enable or disable reconnect on tariff change
+# Parameter: optional
+# Values: yes, no
+# Default: no
+# ReconnectOnTariffChange = no
+
################################################################################
# Store module
# Configure the module that works with the database server
# Parameter: optional
# Values: yes, no
# Default: no
-FullFee = yes
+FullFee = no
# Allow user to see and use a full cash (yes) or hide a part of it (no)
# for the next fee charge
# Default: 0 (classic)
# FeeChargeType = 0
+# Enable or disable reconnect on tariff change
+# Parameter: optional
+# Values: yes, no
+# Default: no
+# ReconnectOnTariffChange = no
+
################################################################################
# Store module
# Configure the module that works with the database server
showFeeInCash(true),
messageTimeout(0),
feeChargeType(0),
+ reconnectOnTariffChange(false),
modulesSettings(),
storeModuleSettings(),
logger(GetStgLogger())
showFeeInCash(true),
messageTimeout(0),
feeChargeType(0),
+ reconnectOnTariffChange(false),
modulesSettings(),
storeModuleSettings(),
logger(GetStgLogger())
showFeeInCash(rval.showFeeInCash),
messageTimeout(rval.messageTimeout),
feeChargeType(rval.feeChargeType),
+ reconnectOnTariffChange(rval.reconnectOnTariffChange),
modulesSettings(rval.modulesSettings),
storeModuleSettings(rval.storeModuleSettings),
logger(GetStgLogger())
}
}
+ if (strcasecmp(node->getName(), "ReconnectOnTariffChange") == 0)
+ {
+ if (ParseYesNo(node->getValue(0), &reconnectOnTariffChange) != 0)
+ {
+ strError = "Incorrect ReconnectOnTariffChange value: \'" + string(node->getValue(0)) + "\'";
+ return -1;
+ }
+ }
+
if (strcasecmp(node->getName(), "DirNames") == 0)
{
const DOTCONFDocumentNode * child = node->getChildNode();
bool GetMonitoring() const { return monitoring; }
unsigned GetMessageTimeout() const { return messageTimeout * 3600 * 24; }
unsigned GetFeeChargeType() const { return feeChargeType; }
+ bool GetReconnectOnTariffChange() const { return reconnectOnTariffChange; }
const std::string & GetModulesPath() const { return modulesPath; }
const MODULE_SETTINGS & GetStoreModuleSettings() const
bool showFeeInCash;
unsigned messageTimeout;
unsigned feeChargeType;
+ bool reconnectOnTariffChange;
std::vector<MODULE_SETTINGS> modulesSettings;
MODULE_SETTINGS storeModuleSettings;