Ref T353, clean string used with remarks and route

* use ASCII only characters
* simplify string
* max. length
This commit is contained in:
Klaus Basan
2018-09-14 16:54:45 +02:00
parent fe97276ee8
commit 6c9804a1df
3 changed files with 28 additions and 4 deletions

View File

@@ -104,6 +104,9 @@ namespace BlackMisc
//! Replace the voice capabilities remarks part
static QString replaceVoiceCapabilities(const QString &newCaps, const QString &oldRemarks);
//! Clean up remarks string
static QString cleanRemarks(const QString &remarksIn);
private:
QString m_remarks; //!< the unparsed string
QString m_radioTelephony; //!< radio telephony designator
@@ -226,7 +229,7 @@ namespace BlackMisc
void setFlightRule(FlightRules flightRules) { m_flightRules = flightRules; }
//! Set route string
void setRoute(const QString &route) { m_route = route.trimmed().left(MaxRouteLength).toUpper(); }
void setRoute(const QString &route);
//! Set remarks string (max 100 characters)
void setRemarks(const QString &remarks);