Ref T275, isShuttingDownOrDisconnected as stricter check

This commit is contained in:
Klaus Basan
2018-06-10 02:06:51 +02:00
parent 44f01d8d97
commit db8939c499
3 changed files with 19 additions and 11 deletions

View File

@@ -43,6 +43,11 @@ namespace BlackCore
return setup;
}
bool ISimulator::isShuttingDownOrDisconnected() const
{
return (this->isShuttingDown() || !this->isConnected());
}
bool ISimulator::requestElevation(const Geo::ICoordinateGeodetic &reference, const CCallsign &callsign)
{
Q_UNUSED(reference);

View File

@@ -192,6 +192,9 @@ namespace BlackCore
//! Is overall (swift) application shutting down
virtual bool isShuttingDown() const = 0;
//! Shutting down or disconnected?
virtual bool isShuttingDownOrDisconnected() const;
//! \copydoc BlackMisc::Simulation::ISimulationEnvironmentProvider::requestElevation
//! \remark needs to be overridden if the concrete driver supports such an option
virtual bool requestElevation(const BlackMisc::Geo::ICoordinateGeodetic &reference, const BlackMisc::Aviation::CCallsign &callsign) override;