mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #702, access to reverse lookup log messages per callsign
* added functions in airspace / context * allow to retrieve "aircraft in range" callsigns
This commit is contained in:
@@ -18,20 +18,11 @@
|
||||
|
||||
#include <QHash>
|
||||
|
||||
namespace BlackMisc {
|
||||
namespace Aviation {
|
||||
class CAircraftParts;
|
||||
class CAircraftSituation;
|
||||
} // namespace Aviation
|
||||
} // namespace BlackMisc
|
||||
|
||||
using namespace BlackMisc::Aviation;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
{
|
||||
|
||||
CRemoteAircraftProviderDummy::CRemoteAircraftProviderDummy(QObject *parent) : QObject(parent)
|
||||
{ }
|
||||
|
||||
@@ -45,6 +36,11 @@ namespace BlackMisc
|
||||
return m_aircraft.size();
|
||||
}
|
||||
|
||||
CCallsignSet CRemoteAircraftProviderDummy::getAircraftInRangeCallsigns() const
|
||||
{
|
||||
return m_aircraft.getCallsigns();
|
||||
}
|
||||
|
||||
CSimulatedAircraft CRemoteAircraftProviderDummy::getAircraftInRangeForCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
return m_aircraft.findFirstByCallsign(callsign);
|
||||
@@ -143,6 +139,22 @@ namespace BlackMisc
|
||||
this->m_aircraft.markAllAsNotRendered();
|
||||
}
|
||||
|
||||
CStatusMessageList CRemoteAircraftProviderDummy::getReverseLookupMessages(const CCallsign &callsign) const
|
||||
{
|
||||
Q_UNUSED(callsign);
|
||||
return CStatusMessageList();
|
||||
}
|
||||
|
||||
bool CRemoteAircraftProviderDummy::isReverseLookupMessagesEnabled() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::enableReverseLookupMessages(bool enabled)
|
||||
{
|
||||
Q_UNUSED(enabled);
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::insertNewSituation(const CAircraftSituation &situation)
|
||||
{
|
||||
this->m_situations.push_front(situation);
|
||||
|
||||
Reference in New Issue
Block a user