mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T270, improved setup/logger handling
* utility functions to enable logging * logger access and access to log messages
This commit is contained in:
@@ -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)
|
||||
{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user