swift
|
Aircraft model (used by another pilot, my models on disk) More...
Public Types | |
enum | ModelType { TypeUnknown , TypeQueriedFromNetwork , TypeFSInnData , TypeReverseLookup , TypeModelMatching , TypeModelMatchingDefaultModel , TypeDatabaseEntry , TypeManuallySet , TypeOwnSimulatorModel , TypeVPilotRuleBased , TypeTerrainProbe } |
Model type. More... | |
enum | ModelMode { Undefined = 0 , Include = 1 << 0 , Exclude = 1 << 1 , All = Include | Exclude } |
Mode, decides if a model is supposed to be used in the model set for model matching or not. The combined type "All" is meant for search operations. | |
enum | ColumnIndex { IndexModelString = CPropertyIndexRef::GlobalIndexCAircraftModel , IndexModelStringAlias , IndexAllModelStrings , IndexCallsign , IndexName , IndexDescription , IndexSimulatorInfo , IndexSimulatorInfoAsString , IndexAircraftIcaoCode , IndexLivery , IndexCG , IndexDistributor , IndexFileName , IndexFileTimestamp , IndexFileTimestampFormattedYmdhms , IndexModelType , IndexModelTypeAsString , IndexModelMode , IndexModelModeAsString , IndexSupportedParts , IndexModelModeAsIcon , IndexHasQueriedModelString , IndexMembersDbStatus } |
Supposed to be used only in filter operations. More... | |
using | MemoHelper = CMemoHelper< aviation::CAircraftIcaoCode, aviation::CLivery, CDistributor > |
Helper class used by implementation. | |
![]() | |
using | base_type = CEmpty |
Base class. | |
![]() | |
using | base_type = CEmpty |
Base class is alias of itself. | |
![]() | |
enum | ColumnIndex { IndexPixmap = 10 , IndexIcon , IndexString } |
Base class enums. | |
![]() | |
enum | ColumnIndex { IndexDbIntegerKey = CPropertyIndexRef::GlobalIndexIDatastoreInteger , IndexDbKeyAsString , IndexIsLoadedFromDb , IndexDatabaseIcon , IndexVersion , IndexEndMarker } |
Property index. More... | |
![]() | |
enum | ColumnIndex { IndexUtcTimestamp = CPropertyIndexRef::GlobalIndexITimestampBased , IndexUtcTimestampFormattedYmdhms , IndexUtcTimestampFormattedYmdhmsz , IndexUtcTimestampFormattedMdhms , IndexUtcTimestampFormattedMdhmsz , IndexUtcTimestampFormattedDhms , IndexUtcTimestampFormattedHms , IndexUtcTimestampFormattedHm , IndexMSecsSinceEpoch } |
Properties by index. | |
![]() | |
enum | ColumnIndex { IndexOrder = CPropertyIndexRef::GlobalIndexIOrderable , IndexOrderString } |
Properties by index. | |
Public Member Functions | |
CAircraftModel () | |
Default constructor. | |
CAircraftModel (const QString &model, ModelType type) | |
Constructor. | |
CAircraftModel (const QString &model, ModelType type, const aviation::CAircraftIcaoCode &icao, const aviation::CLivery &livery) | |
Constructor. | |
CAircraftModel (const QString &model, ModelType type, const QString &description, const aviation::CAircraftIcaoCode &icao, const aviation::CLivery &livery=aviation::CLivery()) | |
Constructor. | |
CAircraftModel (const QString &model, ModelType type, const CSimulatorInfo &simulator, const QString &name, const QString &description) | |
Constructor. | |
CAircraftModel (const QString &model, ModelType type, const CSimulatorInfo &simulator, const QString &name, const QString &description, const aviation::CAircraftIcaoCode &icao, const aviation::CLivery &livery=aviation::CLivery()) | |
Constructor. | |
QVariant | propertyByIndex (CPropertyIndexRef index) const |
Property by index. More... | |
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
Set property by index. More... | |
int | comparePropertyByIndex (CPropertyIndexRef index, const CAircraftModel &compareValue) const |
Compare for index. More... | |
QString | convertToQString (bool i18n=false) const |
Cast as QString. More... | |
bool | canInitializeFromFsd () const |
Can be initialized from FSD. | |
const aviation::CCallsign & | getCallsign () const |
Corresponding callsign if applicable. | |
void | setCallsign (const aviation::CCallsign &callsign) |
Corresponding callsign if applicable. | |
bool | isCallsignEmpty () const |
Callsign empty. | |
const QString & | getModelString () const |
Model key, either queried or loaded from simulator model. | |
QString | getModelStringAndDbKey () const |
Model string and DB key (if available) | |
void | setModelString (const QString &modelString) |
Model string. | |
const QString & | getModelStringAlias () const |
Model key, either queried or loaded from simulator model. | |
QString | getAllModelStringsAndAliases () const |
Get model string and aliases. | |
QString | getAllModelStringsAliasesAndDbKey () const |
Get model string and aliases. | |
void | setModelStringAlias (const QString &alias) |
Model string alias. | |
const QString & | getDescription () const |
Descriptive text. | |
void | setDescription (const QString &description) |
Descriptive text. | |
void | setQueriedModelString (const QString &model) |
Set queried model string. | |
const aviation::CAircraftIcaoCode & | getAircraftIcaoCode () const |
Aircraft ICAO code. | |
int | getEngineCount () const |
Engine count if any, -1 if no value is set. More... | |
const QString & | getAircraftIcaoCodeDesignator () const |
Aircraft ICAO code designator. | |
bool | isVtol () const |
VTOL aircraft? | |
const aviation::CAirlineIcaoCode & | getAirlineIcaoCode () const |
Airline ICAO code. | |
bool | setAirlineIcaoDesignator (const QString &designator) |
Set airline ICAO code designator. | |
const QString & | getAirlineIcaoCodeDesignator () const |
Airline ICAO code designator. | |
const QString | getAirlineIcaoCodeVDesignator () const |
Airline ICAO code designator. | |
bool | setAircraftIcaoCode (const aviation::CAircraftIcaoCode &aircraftIcaoCode) |
Set aircraft ICAO code. | |
void | setAircraftIcaoDesignator (const QString &designator) |
Set aircraft ICAO code designator. | |
void | setAircraftIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoCode, const aviation::CAirlineIcaoCode &airlineIcaoCode) |
Set ICAO codes. | |
bool | hasValidAircraftAndAirlineDesignator () const |
Valid airline and aircraft designator? | |
bool | hasAircraftDesignator () const |
Has aircraft designator? | |
bool | hasKnownAircraftDesignator () const |
Has known aircraft designator? | |
bool | hasCategory () const |
Assigned a category? | |
bool | hasAirlineDesignator () const |
Airline designator? | |
bool | hasAircraftAndAirlineDesignator () const |
Designators. | |
bool | isMilitary () const |
Military model? | |
bool | isCivilian () const |
Civilian model? | |
const aviation::CLivery & | getLivery () const |
Get livery. | |
void | setLivery (const aviation::CLivery &livery) |
Livery. | |
bool | hasLivery () const |
Livery available? | |
const CDistributor & | getDistributor () const |
Get distributor. | |
int | getDistributorOrder () const |
Get distributor`s order value. | |
void | setDistributor (const CDistributor &distributor) |
Set distributor. | |
bool | setDistributorOrder (int order) |
Set the distributor order. | |
bool | setDistributorOrder (const CDistributorList &distributors) |
Update distributor`s order attribute. | |
bool | hasDbDistributor () const |
Distributor loaded from DB. | |
bool | hasDistributor () const |
Distributor, but not necessarily loaded from DB. | |
bool | matchesDbDistributor (const CDistributor &distributor) const |
By distributor. | |
bool | matchesAnyDbDistributor (const CDistributorList &distributors) const |
By distributor. | |
const QString & | getName () const |
Name. | |
void | setName (const QString &name) |
Name. | |
const physical_quantities::CLength & | getCG () const |
Get center of gravity. | |
void | setCG (const physical_quantities::CLength &cg) |
Get center of gravity. | |
bool | hasCG () const |
CG value available? | |
const QString & | getSupportedParts () const |
Supported parts. | |
void | setSupportedParts (const QString &supportedParts) |
Supported parts. | |
ModelType | getModelType () const |
Model type. | |
bool | isTerrainProbe () const |
Terrain probe? | |
const QString & | getModelTypeAsString () const |
Model type. | |
void | setModelType (ModelType type) |
Set type. | |
ModelMode | getModelMode () const |
Model mode. | |
bool | matchesMode (simulation::CAircraftModel::ModelModeFilter mode) const |
Matches given mode? | |
const QString & | getModelModeAsString () const |
Model mode as string. | |
const CIcon & | getModelModeAsIcon () const |
Model mode as string. | |
void | setModelMode (ModelMode mode) |
Set model mode. | |
void | setModelModeAsString (const QString &mode) |
Set model mode as string. | |
CSimulatorInfo | getSimulator () const |
Simulator info. | |
void | setSimulator (const CSimulatorInfo &simulator) |
Set simulator info. | |
bool | matchesSimulator (const CSimulatorInfo &simulator) const |
Matches given simulator? | |
bool | matchesSimulatorFlag (CSimulatorInfo::Simulator simulator) const |
Matches given simulator? | |
QString | getSwiftLiveryString (bool aircraftIcao=true, bool livery=true, bool model=true) const |
swift livery string (to be sent via network) More... | |
QString | getSwiftLiveryString (const CSimulatorInfo &sim) const |
swift livery string (to be sent via network) for simulator | |
void | updateMissingParts (const CAircraftModel &otherModel, bool dbModelPriority=true) |
Update missing parts from another model. | |
void | updateByExistingDirectories (const CAircraftModel &otherModel) |
Update the directories from other model. More... | |
bool | hasQueriedModelString () const |
Queried model string? | |
bool | hasManuallySetString () const |
Model string which was manually set. | |
bool | hasModelString () const |
Non empty model string? | |
bool | hasModelStringAlias () const |
Non empty model string alias? | |
bool | hasAnyModelString () const |
Any model string or alias? | |
bool | hasDescription (bool ignoreAutoGenerated=false) const |
Description. | |
bool | hasValidSimulator () const |
Valid simulator. | |
QString | getMembersDbStatus () const |
Info, which members (Livery, Aircraft ICAO, ...) are already based on DB data. | |
bool | matchesModelString (const QString &modelString, Qt::CaseSensitivity sensitivity) const |
Matches model string? | |
bool | matchesModelStringOrAlias (const QString &modelString, Qt::CaseSensitivity sensitivity) const |
Matches model string or alias? | |
int | calculateScore (const CAircraftModel &compareModel, bool preferColorLiveries, CStatusMessageList *log=nullptr) const |
Calculate score. | |
CStatusMessageList | validate (bool withNestedObjects) const |
Validate. | |
bool | isEqualForPublishing (const CAircraftModel &dbModel, CStatusMessageList *details=nullptr) const |
Considered equal for publishing, compares if livery etc. are the same DB values. | |
QJsonObject | toMemoizedJson (MemoHelper::CMemoizer &) const |
To JSON with memoized members (used by CAircraftModelList) | |
void | convertFromMemoizedJson (const QJsonObject &json, const MemoHelper::CUnmemoizer &) |
From JSON with memoized members (used by CAircraftModelList) | |
QJsonObject | toDatabaseJson () const |
To database JSON. | |
QString | toDatabaseJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Compact) const |
To database JSON. | |
QString | asHtmlSummary (const QString &separator="<br>") const |
As a brief HTML summary (e.g. used in tooltips) | |
const QString & | getFileName () const |
File name (corresponding data for simulator, only available if representing simulator model. More... | |
QString | getFileNameLowerCase () const |
File name as lower case. | |
bool | hasFileName () const |
File name? | |
bool | matchesFileName (const QString &fileName) const |
Matching file name? | |
bool | hasExistingCorrespondingFile () const |
Does the corresponding file exist? | |
QDir | getFileDirectory () const |
Directory. | |
QString | getFileDirectoryPath () const |
Directory path if any. | |
bool | isInPath (const QString &path, Qt::CaseSensitivity cs) const |
Is the file in the give path. | |
void | setFileName (const QString &fileName) |
File name. | |
QDateTime | getFileTimestamp () const |
Get timestamp. | |
QString | getFormattedFileTimestampYmdhms () const |
File timestamp. | |
bool | hasValidFileTimestamp () const |
Valid file timestamp? | |
void | setFileTimestamp (const QDateTime ×tampUtc) |
Set file timestamp. | |
void | setFileTimestamp (qint64 timestamp) |
Set file timestamp. | |
void | setFileDetailsAndTimestamp (const QFileInfo &fileInfo) |
Set file timestamp, timestamp and file name. | |
void | normalizeFileNameForDb () |
File path for DB (absolute paths make no sense in DB) | |
void | updateLocalFileNames (const CAircraftModel &model) |
Update file names from local model. More... | |
bool | adjustLocalFileNames (const QString &newModelDir, const QString &stripModelDirIndicator={}) |
Adjust file names to a new directory. | |
CStatusMessageList | verifyModelData () const |
Verify the model data. | |
![]() | |
int | getMetaTypeId () const |
Returns the Qt meta type ID of this object. More... | |
QString | getClassName () const |
Class name. | |
bool | isA (int metaTypeId) const |
Returns true if this object is an instance of the class with the given meta type ID, or one of its subclasses. | |
![]() | |
void | marshallToDbus (QDBusArgument &arg, Tags...) const |
Marshall without begin/endStructure, for when composed within another object. | |
void | unmarshallFromDbus (const QDBusArgument &arg, Tags...) |
Unmarshall without begin/endStructure, for when composed within another object. | |
![]() | |
void | marshalToDataStream (QDataStream &stream) const |
Marshal a value to a QDataStream. | |
void | unmarshalFromDataStream (QDataStream &stream) |
Unmarshal a value from a QDataStream. | |
![]() | |
QJsonObject | toJson () const |
Cast to JSON object. | |
QString | toJsonString (QJsonDocument::JsonFormat format=QJsonDocument::Indented) const |
Convenience function JSON as string. | |
void | convertFromJson (const QJsonObject &json) |
Assign from JSON object. | |
void | convertFromJson (const QString &jsonString, bool acceptCacheFormat=false) |
Assign from JSON object string. | |
![]() | |
QString | toQString (bool i18n=false) const |
Cast as QString. | |
std::string | toStdString (bool i18n=false) const |
To std string. | |
QString | stringForStreaming () const |
String for streaming operators. | |
![]() | |
CPropertyIndexList | apply (const CPropertyIndexVariantMap &indexMap, bool skipEqualValues=false) |
Update by variant map. More... | |
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
Set property by index. | |
QVariant | propertyByIndex (CPropertyIndexRef index) const |
Property by index. | |
int | comparePropertyByIndex (CPropertyIndexRef index, const Derived &compareValue) const |
Compare for index. | |
bool | equalsPropertyByIndex (const QVariant &compareValue, CPropertyIndexRef index) const |
Is given variant equal to value of property index? | |
![]() | |
CIcons::IconIndex | toIcon () const |
As icon, not implemented by all classes. | |
![]() | |
int | getDbKey () const |
Get DB key. | |
QString | getDbKeyAsString () const |
DB key as string. | |
QJsonValue | getDbKeyAsJsonValue () const |
Key as JSON value, or null. | |
QString | getDbKeyAsStringInParentheses (const QString &prefix={}) const |
Db key in parentheses, e.g. "(3)". | |
void | setDbKey (int key) |
Set the DB key. | |
void | setDbKey (const QString &key) |
DB key passed as string. | |
bool | hasValidDbKey () const |
Has valid DB key. | |
bool | isDbEqual (const IDatastoreObjectWithIntegerKey &other) const |
Same DB key and hence equal. | |
bool | isLoadedFromDb () const |
Loaded from DB. More... | |
bool | matchesDbKeyState (db::DbKeyStateFilter filter) const |
Matches filter? | |
const CIcon & | toDatabaseIcon () const |
Database icon if this has valid key, otherwise empty. | |
![]() | |
const QString & | getVersion () const |
Version info. | |
QVersionNumber | getQVersion () const |
Version as QVersion. | |
bool | hasVersion () const |
Having a version?s. | |
void | setVersion (const QString &version) |
Version info. | |
![]() | |
QDateTime | getUtcTimestamp () const |
Get timestamp. | |
qint64 | getMSecsSinceEpoch () const |
Timestamp as ms value. | |
qint64 | getTimeDifferenceMs (qint64 compareTime) const |
Time difference in ms. | |
qint64 | getTimeDifferenceAbsMs (qint64 compareTime) const |
Time difference in ms. | |
qint64 | getTimeDifferenceToNowMs () const |
Time difference to now. | |
qint64 | getTimeDifferenceMs (const ITimestampBased &compare) const |
Time difference in ms. | |
qint64 | getAbsTimeDifferenceMs (qint64 compareTime) const |
Time difference in ms. | |
qint64 | getAbsTimeDifferenceMs (const ITimestampBased &compare) const |
Time difference in ms. | |
void | setTimestampToNull () |
Set to null. | |
void | setMSecsSinceEpoch (qint64 mSecsSinceEpoch) |
Timestamp as ms value. | |
void | setByYearMonthDayHourMinute (const QString &yyyyMMddhhmmss) |
Set by value such as "20141003231045". | |
void | setUtcTimestamp (const QDateTime ×tamp) |
Set timestamp. | |
bool | isNewerThan (const ITimestampBased &otherTimestampObj) const |
Is this newer than other? | |
bool | isNewerThan (qint64 mSecsSinceEpoch) const |
Is newer than epoch value? | |
bool | isOlderThan (const ITimestampBased &otherTimestampObj) const |
Is this older than other? | |
bool | isOlderThan (qint64 mSecsSinceEpoch) const |
Is this older than other? | |
bool | isOlderThanNowMinusOffset (int offsetMs) const |
Older than now-offset. | |
bool | isSame (const ITimestampBased &otherTimestampObj) const |
Same timestamp. | |
qint64 | msecsTo (const ITimestampBased &otherTimestampObj) const |
Time difference. | |
qint64 | absMsecsTo (const ITimestampBased &otherTimestampObj) const |
Time difference. | |
qint64 | msecsToNow () const |
Milliseconds to now. | |
void | setCurrentUtcTime () |
Set the current time as timestamp. | |
void | addMsecs (qint64 ms) |
Add the given number of milliseconds to the timestamp. | |
QString | getFormattedUtcTimestampHms () const |
As hh:mm:ss. | |
QString | getFormattedUtcTimestampHmsz () const |
As hh:mm:ss.zzz. | |
QString | getFormattedUtcTimestampHm () const |
As hh:mm. | |
QString | getFormattedUtcTimestampDhms () const |
As dd HH mm ss. | |
QString | getFormattedUtcTimestampMdhms () const |
As MM dd HH mm ss. | |
QString | getFormattedUtcTimestampMdhmsz () const |
As MM dd HH mm ss.zzz. | |
QString | getFormattedUtcTimestampYmdhms () const |
As yyyy MM dd HH mm ss. | |
QString | getFormattedUtcTimestampYmdhmsz () const |
As yyyy MM dd HH mm ss.zzz. | |
bool | hasValidTimestamp () const |
Valid timestamp? | |
![]() | |
int | getOrder () const |
Order. | |
QString | getOrderAsString () const |
Order as string. | |
void | setOrder (int order) |
Set order. | |
bool | hasValidOrder () const |
Valid order set? | |
Static Public Member Functions | |
static void | registerMetadata () |
Register metadata. More... | |
static const QString & | modelTypeToString (ModelType type) |
Model type. | |
static QString | normalizeFileNameForDb (const QString &filePath) |
File path used for DB. | |
static ModelMode | modelModeFromString (const QString &mode) |
Model mode. | |
static const QString & | modelModeToString (ModelMode mode) |
Model mode. | |
static CAircraftModel | fromDatabaseJson (const QJsonObject &json, const QString &prefix=QString("mod_")) |
From swift DB JSON. | |
static CAircraftModel | fromDatabaseJsonCaching (const QJsonObject &json, aviation::AircraftIcaoIdMap &aircraftIcaos, const aviation::AircraftCategoryIdMap &categories, aviation::LiveryIdMap &liveries, DistributorIdMap &distributors, const QString &prefix=QString("mod_")) |
From swift DB JSON, caching during this process (faster) | |
static const QString & | liveryStringPrefix () |
Livery string prefix. | |
static bool | isSwiftLiveryString (const QString &liveryString) |
swift livery string | |
static DBTripleIds | parseNetworkLiveryString (const QString &liveryString) |
Split swift network string. More... | |
static const QString & | autoGenerated () |
Hint, that model was automatically generated (e.g. by auto stashing) | |
static QString | cleanUpPartsString (const QString &p) |
Clean up parts string. | |
static const QString & | supportedParts () |
Supported parts. More... | |
![]() | |
static void | registerMetadata () |
Register metadata. | |
![]() | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJson (const QJsonObject &json) |
Get object from QJsonObject. | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJson (const QString &jsonString, bool acceptCacheJson=false) |
Get object from JSON string. | |
template<class DerivedObj = Derived> | |
static DerivedObj | fromJsonNoThrow (const QString &jsonString, bool acceptCacheJson, bool &success, QString &errMsg) |
Get object from JSON string. | |
![]() | |
static int | invalidDbKey () |
Invalid key. | |
static int | stringToDbKey (const QString &candidate) |
Convert string to DB key. | |
static const CPropertyIndex & | keyIndex () |
The key index. | |
![]() | |
static bool | isAnyTimestampIndex (int index) |
Any of the timestamp indexes. | |
static bool | canHandleIndex (CPropertyIndexRef index) |
Can given index be handled. | |
![]() | |
static bool | isAnyOrderIndex (int index) |
Any order index. | |
Additional Inherited Members | |
![]() | |
CValueObject ()=default | |
Default constructor. | |
CValueObject (const CValueObject &)=default | |
Copy constructor. | |
CValueObject & | operator= (const CValueObject &)=default |
Copy assignment operator. | |
~CValueObject ()=default | |
Destructor. | |
CEmpty ()=default | |
Inheriting constructors. | |
CEmpty (const CEmpty &)=default | |
Inheriting constructors. | |
![]() | |
CEmpty ()=default | |
Protected default constructor. | |
CEmpty (const CEmpty &)=default | |
Protected copy constructor. | |
CEmpty & | operator= (const CEmpty &)=default |
Protected copy assignment operator. | |
~CEmpty ()=default | |
Non-virtual protected destructor. | |
![]() | |
IDatastoreObjectWithIntegerKey () | |
Constructor. | |
IDatastoreObjectWithIntegerKey (int key) | |
Constructor. | |
void | setKeyVersionTimestampFromDatabaseJson (const QJsonObject &json, const QString &prefix=QString()) |
Set key and timestamp values. | |
QVariant | propertyByIndex (swift::misc::CPropertyIndexRef index) const |
Property by index. More... | |
void | setPropertyByIndex (swift::misc::CPropertyIndexRef index, const QVariant &variant) |
Set property by index. More... | |
int | comparePropertyByIndex (CPropertyIndexRef index, const IDatastoreObjectWithIntegerKey &compareValue) const |
Compare for index. More... | |
![]() | |
void | setTimestampVersionFromDatabaseJson (const QJsonObject &json, const QString &prefix=QString()) |
Set versionn and timestamp values. | |
![]() | |
ITimestampBased () | |
Constructor. | |
ITimestampBased (qint64 msSincePoch) | |
Constructor. | |
ITimestampBased (const QDateTime ×tamp) | |
Constructor. | |
QVariant | propertyByIndex (CPropertyIndexRef index) const |
Property by index. More... | |
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
Set property by index. More... | |
int | comparePropertyByIndex (CPropertyIndexRef index, const ITimestampBased &compareValue) const |
Compare for index. More... | |
void | updateMissingParts (const ITimestampBased &other) |
Update missing parts. | |
![]() | |
IOrderable () | |
Constructor. | |
IOrderable (int order) | |
Constructor. | |
QVariant | propertyByIndex (CPropertyIndexRef index) const |
Property by index. More... | |
void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
Set property by index. More... | |
int | comparePropertyByIndex (CPropertyIndexRef index, const IOrderable &compareValue) const |
Compare for index. More... | |
![]() | |
static bool | existsKey (const QJsonObject &json, const QString &prefix=QString()) |
Is a key available? | |
static bool | canHandleIndex (swift::misc::CPropertyIndexRef index) |
Can given index be handled? | |
![]() | |
static bool | canHandleIndex (CPropertyIndexRef index) |
Can given index be handled. | |
![]() | |
int | m_dbKey = -1 |
key | |
![]() | |
QString | m_version |
version info | |
![]() | |
qint64 | m_timestampMSecsSinceEpoch = -1 |
timestamp value | |
![]() | |
int | m_order = -1 |
order number | |
Aircraft model (used by another pilot, my models on disk)
Definition at line 67 of file aircraftmodel.h.
Supposed to be used only in filter operations.
Indexes
Enumerator | |
---|---|
IndexAllModelStrings | indluding aliases |
Definition at line 103 of file aircraftmodel.h.
Model type.
Enumerator | |
---|---|
TypeQueriedFromNetwork | model was queried by network protocol (ICAO data) |
TypeFSInnData | model based on FSD ICAO data |
TypeReverseLookup | reverse lookup model |
TypeModelMatching | model is result of model matching |
TypeModelMatchingDefaultModel | a default model assigned by model matching |
TypeDatabaseEntry | used along with mapping definition |
TypeManuallySet | manually set, e.g. from GUI |
TypeOwnSimulatorModel | represents own simulator model (AI model, model on disk) |
TypeVPilotRuleBased | based on a vPilot rule |
TypeTerrainProbe | peudo aircraft used for terrain probing (FSX) |
Definition at line 74 of file aircraftmodel.h.
int swift::misc::simulation::CAircraftModel::comparePropertyByIndex | ( | CPropertyIndexRef | index, |
const CAircraftModel & | compareValue | ||
) | const |
Compare for index.
Definition at line 342 of file aircraftmodel.cpp.
QString swift::misc::simulation::CAircraftModel::convertToQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 69 of file aircraftmodel.cpp.
|
inline |
Engine count if any, -1 if no value is set.
Definition at line 219 of file aircraftmodel.h.
|
inline |
File name (corresponding data for simulator, only available if representing simulator model.
Definition at line 457 of file aircraftmodel.h.
QString swift::misc::simulation::CAircraftModel::getSwiftLiveryString | ( | bool | aircraftIcao = true , |
bool | livery = true , |
||
bool | model = true |
||
) | const |
swift livery string (to be sent via network)
Definition at line 568 of file aircraftmodel.cpp.
|
static |
Split swift network string.
Definition at line 586 of file aircraftmodel.cpp.
QVariant swift::misc::simulation::CAircraftModel::propertyByIndex | ( | CPropertyIndexRef | index | ) | const |
Property by index.
Definition at line 242 of file aircraftmodel.cpp.
|
static |
Register metadata.
Definition at line 35 of file aircraftmodel.cpp.
void swift::misc::simulation::CAircraftModel::setPropertyByIndex | ( | CPropertyIndexRef | index, |
const QVariant & | variant | ||
) |
Set property by index.
Definition at line 281 of file aircraftmodel.cpp.
|
static |
Supported parts.
Definition at line 1103 of file aircraftmodel.cpp.
void swift::misc::simulation::CAircraftModel::updateByExistingDirectories | ( | const CAircraftModel & | otherModel | ) |
Update the directories from other model.
Definition at line 660 of file aircraftmodel.cpp.
void swift::misc::simulation::CAircraftModel::updateLocalFileNames | ( | const CAircraftModel & | model | ) |
Update file names from local model.
Definition at line 698 of file aircraftmodel.cpp.