mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
committed by
Lars Toenning
parent
5e5b3f830d
commit
7691e42a5b
@@ -27,8 +27,8 @@ namespace BlackMisc::Simulation
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
//! MSNetworkValues properties
|
||||
//! @{
|
||||
//! MSNetworkValues properties
|
||||
Q_PROPERTY(QString callsign READ getCallsign WRITE setCallsign NOTIFY callsignChanged)
|
||||
Q_PROPERTY(QString callsignAsSet READ getCallsignAsSet)
|
||||
Q_PROPERTY(QString flightNumber READ getFlightNumber)
|
||||
@@ -93,16 +93,16 @@ namespace BlackMisc::Simulation
|
||||
//! Ctor
|
||||
MSInOutValues(const MSInOutValues &sv);
|
||||
|
||||
//! Callsign values
|
||||
//! @{
|
||||
//! Callsign values
|
||||
const QString &getCallsign() const { return m_callsign; }
|
||||
const QString &getCallsignAsSet() const { return m_callsignAsSet; }
|
||||
const QString &getFlightNumber() const { return m_flightNumber; }
|
||||
void setCallsign(const QString &callsign);
|
||||
//! @}
|
||||
|
||||
//! Values found in DB?
|
||||
//! @{
|
||||
//! Values found in DB?
|
||||
bool isFoundDbAircraftIcao() const { return m_dbAircraftIcaoId >= 0; }
|
||||
bool isFoundDbAirlineIcao() const { return m_dbAirlineIcaoId >= 0; }
|
||||
bool isFoundDbLivery() const { return m_dbLiveryId >= 0; }
|
||||
@@ -117,8 +117,8 @@ namespace BlackMisc::Simulation
|
||||
void setDbModelId(int id);
|
||||
//! @}
|
||||
|
||||
//! Livery, airline, aircraft, model string
|
||||
//! @{
|
||||
//! Livery, airline, aircraft, model string
|
||||
const QString &getAircraftIcao() const { return m_aircraftIcao; }
|
||||
const QString &getAircraftFamily() const { return m_aircraftFamily; }
|
||||
const QString &getAirlineIcao() const { return m_airlineIcao; }
|
||||
@@ -137,20 +137,20 @@ namespace BlackMisc::Simulation
|
||||
bool hasAircraftFamily() const { return !m_aircraftFamily.isEmpty(); }
|
||||
//! @}
|
||||
|
||||
//! Log. message
|
||||
//! @{
|
||||
//! Log. message
|
||||
const QString &getLogMessage() const { return m_logMessage; }
|
||||
void setLogMessage(const QString &msg);
|
||||
//! @}
|
||||
|
||||
//! Modified flag
|
||||
//! @{
|
||||
//! Modified flag
|
||||
bool isModified() const { return m_modified; }
|
||||
void setModified(bool modified);
|
||||
//! @}
|
||||
|
||||
//! Request re-run
|
||||
//! @{
|
||||
//! Request re-run
|
||||
bool isRerun() const { return m_rerun; }
|
||||
void setRerun(bool rerun);
|
||||
//! @}
|
||||
@@ -158,8 +158,8 @@ namespace BlackMisc::Simulation
|
||||
//! Changed values such as modified values
|
||||
void evaluateChanges(const BlackMisc::Aviation::CAircraftIcaoCode &aircraft, const BlackMisc::Aviation::CAirlineIcaoCode &airline);
|
||||
|
||||
//! Changed values
|
||||
//! @{
|
||||
//! Changed values
|
||||
bool hasModifiedAircraftIcaoDesignator() const { return m_modifiedAircraftDesignator; }
|
||||
bool hasModifiedAirlineIcaoDesignator() const { return m_modifiedAirlineDesignator; }
|
||||
bool hasModifiedAircraftFamily() const { return m_modifiedAircraftFamily; }
|
||||
@@ -178,8 +178,8 @@ namespace BlackMisc::Simulation
|
||||
//! Callsign changed
|
||||
void callsignChanged();
|
||||
|
||||
//! Livery, airline, aircraft, or model changed
|
||||
//! @{
|
||||
//! Livery, airline, aircraft, or model changed
|
||||
void aircraftIcaoChanged();
|
||||
void airlineIcaoChanged();
|
||||
void virtualAirlineIcaoChanged();
|
||||
@@ -188,8 +188,8 @@ namespace BlackMisc::Simulation
|
||||
void combinedTypeChanged();
|
||||
//! @}
|
||||
|
||||
//! DB id changed
|
||||
//! @{
|
||||
//! DB id changed
|
||||
void dbAircraftIcaoIdChanged();
|
||||
void dbAirlineIcaoIdChanged();
|
||||
void dbLiveryIdChanged();
|
||||
@@ -233,8 +233,8 @@ namespace BlackMisc::Simulation
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
//! MSModelSet properties
|
||||
//! @{
|
||||
//! MSModelSet properties
|
||||
Q_PROPERTY(QString simulator READ getSimulator WRITE setSimulator NOTIFY simulatorChanged)
|
||||
Q_PROPERTY(bool available READ isAvailable WRITE setAvailable NOTIFY availabilityChanged)
|
||||
Q_PROPERTY(int inputAircraftAndAirlineCount READ getInputAircraftAndAirlineCount WRITE setInputAircraftAndAirlineCount NOTIFY inputAircraftAndAirlineCountChanged)
|
||||
@@ -257,20 +257,20 @@ namespace BlackMisc::Simulation
|
||||
//! Set callsign
|
||||
void setSimulator(const QString &simulator);
|
||||
|
||||
//! Availablity flag
|
||||
//! @{
|
||||
//! Availablity flag
|
||||
bool isAvailable() const { return m_available; }
|
||||
void setAvailable(bool available);
|
||||
//! @}
|
||||
|
||||
//! Input aircraft/airline available flag
|
||||
//! @{
|
||||
//! Input aircraft/airline available flag
|
||||
int getInputAircraftAndAirlineCount() const { return m_inputAircraftAndAirlineCount; }
|
||||
void setInputAircraftAndAirlineCount(int count);
|
||||
//! @}
|
||||
|
||||
//! Model set functions as properties
|
||||
//! @{
|
||||
//! Model set functions as properties
|
||||
int getModelSetSize() const { return m_modelSet.size(); }
|
||||
int countDifferentAirlines() const { return m_modelSet.countDifferentAirlines(); }
|
||||
int countVtolAircraft() const { return m_modelSet.countVtolAircraft(); }
|
||||
@@ -280,8 +280,8 @@ namespace BlackMisc::Simulation
|
||||
int countModelsWithAirlineLivery() const { return m_modelSet.countModelsWithAirlineLivery(); }
|
||||
//! @}
|
||||
|
||||
//! Invokable model set functions as properties
|
||||
//! @{
|
||||
//! Invokable model set functions as properties
|
||||
Q_INVOKABLE bool containsModelString(const QString &modelString) const { return m_modelSet.containsModelString(modelString, Qt::CaseInsensitive); }
|
||||
Q_INVOKABLE bool containsDbKey(int dbKey) const { return m_modelSet.containsDbKey(dbKey); }
|
||||
Q_INVOKABLE bool containsCombinedType(const QString &ct) const { return m_modelSet.containsCombinedType(ct); }
|
||||
|
||||
Reference in New Issue
Block a user