mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T215, some adjustments of user object
* remove "valid" from some functions, because no validity is checked * homebase + real name string
This commit is contained in:
@@ -49,7 +49,7 @@ namespace BlackMisc
|
||||
{
|
||||
// sync callsigns
|
||||
m_callsign.setTypeHint(CCallsign::Atc);
|
||||
if (!m_controller.hasValidCallsign() && !callsign.isEmpty())
|
||||
if (!m_controller.hasCallsign() && !callsign.isEmpty())
|
||||
{
|
||||
m_controller.setCallsign(m_callsign);
|
||||
}
|
||||
|
||||
@@ -117,13 +117,13 @@ namespace BlackMisc
|
||||
void setControllerId(const QString &controllerId) { m_controller.setId(controllerId); }
|
||||
|
||||
//! Has valid realname?
|
||||
bool hasValidRealName() const { return m_controller.hasValidRealName(); }
|
||||
bool hasRealName() const { return m_controller.hasRealName(); }
|
||||
|
||||
//! Has valid id?
|
||||
bool hasValidId() const { return m_controller.hasValidId(); }
|
||||
bool hasId() const { return m_controller.hasId(); }
|
||||
|
||||
//! Valid COM frequency
|
||||
bool hasValidFrequency() const { return BlackMisc::Aviation::CComSystem::isValidCivilAviationFrequency(this->getFrequency()); }
|
||||
bool hasValidFrequency() const { return CComSystem::isValidCivilAviationFrequency(this->getFrequency()); }
|
||||
|
||||
//! Get frequency.
|
||||
const PhysicalQuantities::CFrequency &getFrequency() const { return m_frequency; }
|
||||
|
||||
Reference in New Issue
Block a user