mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T268, utilty functions for logging setup
This commit is contained in:
@@ -28,6 +28,12 @@ namespace BlackMisc
|
||||
return CInterpolationSetupList(setups.values());
|
||||
}
|
||||
|
||||
bool IInterpolationSetupProvider::hasSetupsPerCallsign() const
|
||||
{
|
||||
QReadLocker l(&m_lockSetup);
|
||||
return !m_setups.isEmpty();
|
||||
}
|
||||
|
||||
bool IInterpolationSetupProvider::setInterpolationSetupsPerCallsign(const CInterpolationSetupList &setups, bool ignoreSameAsGlobal)
|
||||
{
|
||||
const CInterpolationAndRenderingSetupGlobal gs = this->getInterpolationSetupGlobal();
|
||||
@@ -63,6 +69,13 @@ namespace BlackMisc
|
||||
return callsigns;
|
||||
}
|
||||
|
||||
bool IInterpolationSetupProvider::isLogCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
QReadLocker l(&m_lockSetup);
|
||||
if (!m_setups.contains(callsign)) { return false; }
|
||||
return m_setups[callsign].logInterpolation();
|
||||
}
|
||||
|
||||
bool IInterpolationSetupProvider::setInterpolationMode(const QString &modeAsString, const CCallsign &callsign)
|
||||
{
|
||||
CInterpolationAndRenderingSetupPerCallsign setup = this->getInterpolationSetupPerCallsignOrDefault(callsign);
|
||||
|
||||
Reference in New Issue
Block a user