Ref T242, null functions for livery, airline, aircraft

This commit is contained in:
Klaus Basan
2018-02-07 05:23:25 +01:00
parent e001b0338f
commit 33d4cf82ea
6 changed files with 51 additions and 0 deletions

View File

@@ -180,6 +180,12 @@ namespace BlackMisc
//! \remark normally used with liveries preselect by airline ICAO code
int calculateScore(const CLivery &otherLivery, bool preferColorLiveries = false, CStatusMessageList *log = nullptr) const;
//! Null livery?
bool isNull() const;
//! NULL object
static const CLivery &null();
//! Object from JSON
static CLivery fromDatabaseJson(const QJsonObject &json, const QString &prefix = QString("liv_"));