Ref T730, ATC station properties for cross coupled ATC stations

This commit is contained in:
Klaus Basan
2019-09-26 15:35:18 +02:00
committed by Mat Sutcliffe
parent 840633749e
commit afd7881a90
2 changed files with 29 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ namespace BlackMisc
enum ColumnIndex
{
IndexCallsign = CPropertyIndex::GlobalIndexCAtcStation,
IndexCallsignString,
IndexCallsignStringCrossCopuled,
IndexController,
IndexFrequency,
IndexPosition,
@@ -61,7 +63,7 @@ namespace BlackMisc
IndexLongitude,
IndexAtis,
IndexMetar,
IndexVoiceRoom,
IndexVoiceRoom, //!< @deprecated
};
//! Default constructor.
@@ -95,6 +97,9 @@ namespace BlackMisc
//! Get callsign as string.
QString getCallsignAsString() const { return m_callsign.asString(); }
//! Get callsign
QString getCallsignAsStringCrossCoupled() const;
//! Callsign suffix (e.g. TWR)
QString getCallsignSuffix() const;
@@ -177,15 +182,19 @@ namespace BlackMisc
void setAfvCrossCoupled(bool coupled) { m_isAfvCrossCoupled = coupled; }
//! Get voice room
//! \deprecated
const Audio::CVoiceRoom &getVoiceRoom() const { return m_voiceRoom; }
//! Set voice room
//! \deprecated
void setVoiceRoom(const Audio::CVoiceRoom &voiceRoom) { m_voiceRoom = voiceRoom; }
//! Set voice room URL
//! \deprecated
void setVoiceRoomUrl(const QString &url) { m_voiceRoom.setVoiceRoomUrl(url); }
//! Valid voice room?
//! \deprecated
bool hasValidVoiceRoom() const { return m_voiceRoom.isValid(); }
//! Booked date/time if any.