mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Let airspace monitor store the aircraft parts history
This commit adds a feature in airspace monitor to store the history of received aircraft parts. If needed the history can be retrieved via context methods. refs #835
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a210b029f1
commit
4994bf12b2
@@ -136,6 +136,18 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
virtual void enableReverseLookupMessages(bool enabled) = 0;
|
||||
|
||||
//! Get aircraft parts history
|
||||
//! \threadsafe
|
||||
virtual BlackMisc::CStatusMessageList getAircraftPartsHistory(const BlackMisc::Aviation::CCallsign &callsign) const = 0;
|
||||
|
||||
//! Is storing aircraft parts history enabled?
|
||||
//! \threadsafe
|
||||
virtual bool isAircraftPartsHistoryEnabled() const = 0;
|
||||
|
||||
//! Enable storing of aircraft parts history
|
||||
//! \threadsafe
|
||||
virtual void enableAircraftPartsHistory(bool enabled) = 0;
|
||||
|
||||
//! Destructor
|
||||
virtual ~IRemoteAircraftProvider() {}
|
||||
|
||||
|
||||
@@ -160,6 +160,22 @@ namespace BlackMisc
|
||||
Q_UNUSED(enabled);
|
||||
}
|
||||
|
||||
CStatusMessageList CRemoteAircraftProviderDummy::getAircraftPartsHistory(const CCallsign &callsign) const
|
||||
{
|
||||
Q_UNUSED(callsign);
|
||||
return CStatusMessageList();
|
||||
}
|
||||
|
||||
bool CRemoteAircraftProviderDummy::isAircraftPartsHistoryEnabled() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::enableAircraftPartsHistory(bool enabled)
|
||||
{
|
||||
Q_UNUSED(enabled);
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::insertNewSituation(const CAircraftSituation &situation)
|
||||
{
|
||||
this->m_situations.push_front(situation);
|
||||
|
||||
@@ -91,6 +91,9 @@ namespace BlackMisc
|
||||
virtual BlackMisc::CStatusMessageList getReverseLookupMessages(const BlackMisc::Aviation::CCallsign &callsign) const override;
|
||||
virtual bool isReverseLookupMessagesEnabled() const override;
|
||||
virtual void enableReverseLookupMessages(bool enabled) override;
|
||||
virtual BlackMisc::CStatusMessageList getAircraftPartsHistory(const BlackMisc::Aviation::CCallsign &callsign) const override;
|
||||
virtual bool isAircraftPartsHistoryEnabled() const override;
|
||||
virtual void enableAircraftPartsHistory(bool enabled) override;
|
||||
//! @}
|
||||
|
||||
signals:
|
||||
|
||||
Reference in New Issue
Block a user