mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
refs #146, Minor changes and cleanup tasks
* CCallsign::getCallsignPronounced -> getTelephonyDesignator * CAircraft , comments renamed to 1 line style //! * CAtcStation, comments renamed to 1 line style //! and added method hasValidFrequency() * CAvioTransponder changed formatting * CUser, comments renamed to 1 line style //! * CCallsign, m_callsignPronounced -> m_telephonyDesignator , comments renamed to 1 line style //!
This commit is contained in:
@@ -34,9 +34,7 @@ namespace BlackMisc
|
||||
{
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief Properties by index
|
||||
*/
|
||||
//! \brief Properties by index
|
||||
enum ColumnIndex
|
||||
{
|
||||
IndexCallsign = 0,
|
||||
@@ -62,19 +60,13 @@ namespace BlackMisc
|
||||
IndexVoiceRoomUrl
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Default constructor.
|
||||
*/
|
||||
//! \brief Default constructor.
|
||||
CAtcStation();
|
||||
|
||||
/*!
|
||||
* \brief Simplified constructor
|
||||
*/
|
||||
//! \brief Simplified constructor
|
||||
CAtcStation(const QString &callsign);
|
||||
|
||||
/*!
|
||||
* \brief ATC station constructor
|
||||
*/
|
||||
//! \brief ATC station constructor
|
||||
CAtcStation(const CCallsign &callsign, const BlackMisc::Network::CUser &controller,
|
||||
const BlackMisc::PhysicalQuantities::CFrequency &frequency,
|
||||
const BlackMisc::Geo::CCoordinateGeodetic &pos, const BlackMisc::PhysicalQuantities::CLength &range,
|
||||
@@ -144,6 +136,9 @@ namespace BlackMisc
|
||||
//! \brief Has valid id?
|
||||
bool hasValidId() const { return this->m_controller.hasValidId(); }
|
||||
|
||||
//! \brief Valid COM frequency
|
||||
bool hasValidFrequency() const { return BlackMisc::Aviation::CComSystem::isValidCivilAviationFrequency(this->getFrequency()); }
|
||||
|
||||
//! Get frequency.
|
||||
const BlackMisc::PhysicalQuantities::CFrequency &getFrequency() const { return m_frequency; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user