Ref T270, improved setup/logger handling

* utility functions to enable logging
* logger access and access to log messages
This commit is contained in:
Klaus Basan
2018-05-18 00:06:42 +02:00
parent e3465f432c
commit a3a62919fc
6 changed files with 59 additions and 16 deletions

View File

@@ -57,6 +57,24 @@ namespace BlackMisc
return callsigns;
}
bool IInterpolationSetupProvider::setInterpolationMode(const QString &modeAsString, const CCallsign &callsign)
{
CInterpolationAndRenderingSetupPerCallsign setup = this->getInterpolationSetupPerCallsignOrDefault(callsign);
if (!setup.setInterpolatorMode(modeAsString)) { return false; }
// changed value
return this->setInterpolationSetupPerCallsign(setup, callsign, true);
}
bool IInterpolationSetupProvider::setLogInterpolation(bool log, const CCallsign &callsign)
{
CInterpolationAndRenderingSetupPerCallsign setup = this->getInterpolationSetupPerCallsignOrDefault(callsign);
if (!setup.setLogInterpolation(log)) { return false; }
// changed value
return this->setInterpolationSetupPerCallsign(setup, callsign, true);
}
bool IInterpolationSetupProvider::setInterpolationSetupGlobal(const CInterpolationAndRenderingSetupGlobal &setup)
{
{