refs #358, changes of MS' review

https://dev.vatsim-germany.org/issues/358#note-11
This commit is contained in:
Klaus Basan
2014-12-29 23:11:23 +01:00
parent 8fce90065d
commit 4f0bf6d62c
4 changed files with 52 additions and 28 deletions

View File

@@ -66,6 +66,12 @@ namespace BlackMisc
//! Makes this callsign looking like an observer callsign (DAMBZ -> DAMBZ_OBS)
QString getAsObserverCallsignString() const;
//! Get the callsign suffix ("TWR", "ATIS" ...) if any ("_" is removed)
QString getSuffix() const;
//! Suffix such as "_TWR"?
bool hasSuffix() const;
//! Equals callsign string?
bool equalsString(const QString &callsignString) const;
@@ -81,8 +87,8 @@ namespace BlackMisc
//! Valid callsign?
static bool isValidCallsign(const QString &callsign);
//! List of ATC appendixes (e.g. TWR);
static const QStringList &atcCallsignAppendixes();
//! List of ATC suffixes (e.g. TWR);
static const QStringList &atcCallsignSuffixes();
protected:
//! \copydoc CValueObject::convertToQString()