mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T129, aircraft ICAO and parsed remarks can be obtained from flight plan
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8a4415ce07
commit
27281e438d
@@ -7,7 +7,8 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "blackmisc/aviation/flightplan.h"
|
||||
#include "flightplan.h"
|
||||
#include "flightplanutils.h"
|
||||
#include "blackmisc/iconlist.h"
|
||||
#include "blackmisc/icons.h"
|
||||
#include <QStringBuilder>
|
||||
@@ -39,6 +40,18 @@ namespace BlackMisc
|
||||
m_callsign.setTypeHint(CCallsign::Aircraft);
|
||||
}
|
||||
|
||||
void CFlightPlan::setEquipmentIcao(const QString &equipmentIcao)
|
||||
{
|
||||
m_equipmentIcao = equipmentIcao;
|
||||
const QString aircraftIcao = CFlightPlanUtils::aircraftIcaoCodeFromEquipmentCode(equipmentIcao);
|
||||
m_aircraftIcao = CAircraftIcaoCode::isValidDesignator(aircraftIcao) ? aircraftIcao : "";
|
||||
}
|
||||
|
||||
CFlightPlanUtils::FlightPlanRemarks CFlightPlan::getParsedRemarks() const
|
||||
{
|
||||
return CFlightPlanUtils::parseFlightPlanRemarks(this->getRemarks());
|
||||
}
|
||||
|
||||
CVariant CFlightPlan::propertyByIndex(const CPropertyIndex &index) const
|
||||
{
|
||||
if (index.isMyself()) { return CVariant::from(*this); }
|
||||
|
||||
Reference in New Issue
Block a user