mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 21:35:40 +08:00
Ref T432, find ATC station for frequency utility functions
This commit is contained in:
@@ -71,9 +71,9 @@ namespace BlackMisc
|
||||
CAtcStation(const QString &callsign);
|
||||
|
||||
//! 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,
|
||||
CAtcStation(const CCallsign &callsign, const Network::CUser &controller,
|
||||
const PhysicalQuantities::CFrequency &frequency,
|
||||
const Geo::CCoordinateGeodetic &pos, const PhysicalQuantities::CLength &range,
|
||||
bool isOnline = false, const QDateTime &bookedFromUtc = QDateTime(), const QDateTime &bookedUntilUtc = QDateTime(),
|
||||
const CInformationMessage &atis = CInformationMessage(CInformationMessage::ATIS), const CInformationMessage &metar = CInformationMessage(CInformationMessage::METAR));
|
||||
|
||||
@@ -104,6 +104,9 @@ namespace BlackMisc
|
||||
//! Get controller name.
|
||||
QString getControllerRealName() const { return m_controller.getRealName(); }
|
||||
|
||||
//! Callsign and controller's name if available
|
||||
QString getCallsignAndControllerRealName() const;
|
||||
|
||||
//! Get controller name.
|
||||
QString getControllerId() const { return m_controller.getId(); }
|
||||
|
||||
@@ -194,7 +197,10 @@ namespace BlackMisc
|
||||
bool isBookedNow() const;
|
||||
|
||||
//! Tuned in within 25KHz channel spacing
|
||||
bool isComUnitTunedIn25KHz(const BlackMisc::Aviation::CComSystem &comUnit) const;
|
||||
bool isComUnitTunedIn25KHz(const Aviation::CComSystem &comUnit) const;
|
||||
|
||||
//! Is frequency within channel spacing
|
||||
bool isFrequencyWithinChannelSpacing(const PhysicalQuantities::CFrequency &frequency, CComSystem::ChannelSpacing spacing) const;
|
||||
|
||||
//! When booked, 0 means now,
|
||||
//! negative values mean booking in past,
|
||||
|
||||
Reference in New Issue
Block a user