mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T515, functions for matcher setting/getting disabled models
This commit is contained in:
committed by
Mat Sutcliffe
parent
da92f3885c
commit
faddf40ba7
@@ -265,6 +265,13 @@ namespace BlackCore
|
||||
m_aircraftMatcher.disableModelsForMatching(removedModels, incremental);
|
||||
}
|
||||
|
||||
CAircraftModelList CContextSimulator::getDisabledModelsForMatching() const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return CAircraftModelList(); }
|
||||
return m_aircraftMatcher.getDisabledModelsForMatching();
|
||||
}
|
||||
|
||||
void CContextSimulator::restoreDisabledModels()
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||
@@ -272,6 +279,12 @@ namespace BlackCore
|
||||
m_aircraftMatcher.restoreDisabledModels();
|
||||
}
|
||||
|
||||
bool CContextSimulator::triggerModelSetValidation(const CSimulatorInfo &simulator)
|
||||
{
|
||||
if (!m_validator) { return false; }
|
||||
return m_validator->triggerValidation(simulator);
|
||||
}
|
||||
|
||||
CAircraftModelList CContextSimulator::getModelSetModelsStartingWith(const QString &modelString) const
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << modelString; }
|
||||
|
||||
Reference in New Issue
Block a user