mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T472, initial version of category matcher
This commit is contained in:
committed by
Mat Sutcliffe
parent
5846860382
commit
503bbf3a26
@@ -41,7 +41,14 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
CAircraftMatcher::CAircraftMatcher(const CAircraftMatcherSetup &setup, QObject *parent) : QObject(parent), m_setup(setup)
|
||||
{ }
|
||||
{
|
||||
if (sApp && !sApp->isShuttingDown())
|
||||
{
|
||||
sApp->getWebDataServices()->synchronizeDbCaches(CEntityFlags::AircraftCategoryEntity);
|
||||
const CAircraftCategoryList categories = sApp->getWebDataServices()->getAircraftCategories();
|
||||
m_categoryMatcher.setCategories(categories);
|
||||
}
|
||||
}
|
||||
|
||||
CAircraftMatcher::CAircraftMatcher(QObject *parent) : CAircraftMatcher(CAircraftMatcherSetup(), parent)
|
||||
{ }
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "blackmisc/simulation/aircraftmatchersetup.h"
|
||||
#include "blackmisc/simulation/aircraftmodellist.h"
|
||||
#include "blackmisc/simulation/matchingstatistics.h"
|
||||
#include "blackmisc/simulation/categorymatcher.h"
|
||||
#include "blackmisc/statusmessage.h"
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/variant.h"
|
||||
@@ -309,6 +310,7 @@ namespace BlackCore
|
||||
BlackMisc::Simulation::CAircraftModelList m_disabledModels; //!< disabled models for matching
|
||||
BlackMisc::Simulation::CSimulatorInfo m_simulator; //!< simulator (optional)
|
||||
BlackMisc::Simulation::CMatchingStatistics m_statistics; //!< matching statistics
|
||||
BlackMisc::Simulation::CCategoryMatcher m_categoryMatcher; //!< the category matcher
|
||||
QString m_modelSetInfo; //!< info string
|
||||
};
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user