refs #707, renamed to FSInn / FSInnData

This commit is contained in:
Klaus Basan
2016-07-12 03:12:38 +02:00
parent caa6947ff9
commit 64fa88da72
5 changed files with 8 additions and 8 deletions

View File

@@ -514,7 +514,7 @@ namespace BlackCore
/*!
* We received an FSInn custom packet.
*/
void customFSinnPacketReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &airlineDesignator,
void customFSInnPacketReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &airlineDesignator,
const QString &aircraftDesignator, const QString &combinedType, const QString &modelString);
//! We received a aircraft config packet

View File

@@ -909,7 +909,7 @@ namespace BlackCore
{
// It doesn't matter whether it was a query or response. The information
// is the same for both.
emit customFSinnPacketReceived(callsign, data[1], data[2], data[7], data[8]);
emit customFSInnPacketReceived(callsign, data[1], data[2], data[7], data[8]);
}
}
else if (packetId.compare("FSIPIR", Qt::CaseInsensitive) == 0)
@@ -923,7 +923,7 @@ namespace BlackCore
sendCustomFsinnReponse(callsign);
// It doesn't matter whether it was a query or response. The information
// is the same for both.
emit customFSinnPacketReceived(callsign, data[1], data[2], data[7], data[8]);
emit customFSInnPacketReceived(callsign, data[1], data[2], data[7], data[8]);
}
}
}

View File

@@ -169,10 +169,10 @@ namespace BlackGui
const CLivery l(liveryCombinedCode.isEmpty() ? CLivery::getStandardCode(al) : liveryCombinedCode,
al,
"Standard");
CAircraftModel m(modelString, CAircraftModel::TypeFsdData);
CAircraftModel m(modelString, CAircraftModel::TypeFSInnData);
m.setLivery(l);
m.setCallsign(cs);
m.setModelType(CAircraftModel::TypeFsdData);
m.setModelType(CAircraftModel::TypeFSInnData);
CSimulatedAircraft sa(m);
sa.setPilot(pilot);
sa.setAircraftIcaoCode(icao);

View File

@@ -106,7 +106,7 @@ namespace BlackMisc
bool CAircraftModel::canInitializeFromFsd() const
{
const bool nw = this->getModelType() == CAircraftModel::TypeQueriedFromNetwork ||
this->getModelType() == CAircraftModel::TypeFsdData ||
this->getModelType() == CAircraftModel::TypeFSInnData ||
this->getModelType() == CAircraftModel::TypeUnknown;
return nw;
}
@@ -493,7 +493,7 @@ namespace BlackMisc
case TypeModelMatchingDefaultModel: return "map. default";
case TypeOwnSimulatorModel: return "own simulator";
case TypeManuallySet: return "set";
case TypeFsdData: return "FSD";
case TypeFSInnData: return "FSInn";
case TypeUnknown:
default: return "unknown";
}

View File

@@ -61,7 +61,7 @@ namespace BlackMisc
{
TypeUnknown,
TypeQueriedFromNetwork, //!< model was queried by network protocol
TypeFsdData, //!< model based on FSD ICAO data
TypeFSInnData, //!< model based on FSD ICAO data
TypeModelMatching, //!< model is result of model matching
TypeModelMatchingDefaultModel, //!< a default model assigned by model matching
TypeDatabaseEntry, //!< used along with mapping definition