mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Ref T515, further utility functions to validate models
This commit is contained in:
committed by
Mat Sutcliffe
parent
bb9b5e8e97
commit
de680f4fcd
@@ -281,6 +281,14 @@ namespace BlackMisc
|
||||
//! \return number of elements removed
|
||||
int removeByAircraftAndAirline(const Aviation::CAircraftIcaoCode &aircraftIcao, const Aviation::CAirlineIcaoCode &airline);
|
||||
|
||||
//! Remove if NOT FS family model, ie. FSX/P3D/FS9
|
||||
//! \return number of elements removed
|
||||
int removeIfNotFsFamily();
|
||||
|
||||
//! Remove those models of a particular file, but not in the given set
|
||||
//! \remark mostly used for FSX/FS9/P3D consolidation
|
||||
CAircraftModelList removeIfFileButNotInSet(const QString &fileName, const QSet<QString> &modelStrings);
|
||||
|
||||
//! Replace or add based on model string
|
||||
//! \return element removed?
|
||||
bool replaceOrAddModelWithString(const CAircraftModel &addOrReplaceModel, Qt::CaseSensitivity sensitivity);
|
||||
@@ -372,6 +380,9 @@ namespace BlackMisc
|
||||
//! All combined types
|
||||
QSet<QString> getCombinedTypes() const;
|
||||
|
||||
//! All file names
|
||||
QSet<QString> getAllFileNames() const;
|
||||
|
||||
//! All combined types as string
|
||||
QString getCombinedTypesAsString(const QString &separator = ", ") const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user