mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #614, changed matcher so caches can be used
* provider for cached models * removed unused dummy * renamed getDatastoreModels
This commit is contained in:
@@ -18,9 +18,20 @@ namespace BlackMisc
|
||||
{
|
||||
IModelMappingsProvider::IModelMappingsProvider(QObject *parent) : QObject(parent) {}
|
||||
|
||||
const CAircraftModelList &IModelMappingsProvider::getDatastoreModels() const
|
||||
CachedModelSetProvider::CachedModelSetProvider(const CSimulatorInfo &simulator, QObject *parent) :
|
||||
IModelMappingsProvider(parent), m_simulator(simulator)
|
||||
{ }
|
||||
|
||||
CAircraftModelList CachedModelSetProvider::getMatchingModels() const
|
||||
{
|
||||
return m_datastoreModels;
|
||||
return this->m_modelSets.getModels(this->m_simulator);
|
||||
}
|
||||
|
||||
bool CachedModelSetProvider::read()
|
||||
{
|
||||
this->m_modelSets.syncronize(this->m_simulator);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user