mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #444 Use CAircraftMatcher to match a model and send it to xbus
In case the model name is empty, xbus falls back to its former behaviour and lets libxplanemp do the matching. If aircraft matcher does provide a model this will be used instead. Until model mapping database is ready, a dummy provider has been added. Hence CAircraftMatcher will always return a default model.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b28634e586
commit
1ac89d477f
@@ -42,6 +42,20 @@ namespace BlackMisc
|
||||
protected:
|
||||
BlackMisc::Network::CAircraftMappingList m_mappings; //!< Mappings
|
||||
};
|
||||
|
||||
//! Model mappings dummy
|
||||
class BLACKMISC_EXPORT CModelMappingsProviderDummy : public IModelMappingsProvider
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
CModelMappingsProviderDummy(QObject *parent = nullptr) : IModelMappingsProvider(parent) {}
|
||||
|
||||
//! Destructor
|
||||
virtual ~CModelMappingsProviderDummy() {}
|
||||
|
||||
//! Load data
|
||||
virtual bool read() override { return true; }
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user