Ref T259, Ref T243 moved the "awareness" classes to the interfaces

* allows access to the awareness objects if only the interface is available
* can change the provider via the interface
This commit is contained in:
Klaus Basan
2018-03-07 02:09:22 +01:00
parent 3346a92b56
commit 4dfb973a5b
7 changed files with 59 additions and 59 deletions

View File

@@ -13,6 +13,8 @@
#define BLACKCORE_NETWORK_H
#include "blackcoreexport.h"
#include "blackmisc/simulation/ownaircraftprovider.h"
#include "blackmisc/simulation/simulationenvironmentprovider.h"
#include "blackmisc/simulation/simulatorplugininfo.h"
#include "blackmisc/simulation/simulatedaircraft.h"
#include "blackmisc/geo/coordinategeodetic.h"
@@ -53,7 +55,10 @@ namespace BlackCore
* which is connected to an INetwork slot, then at least one of those connections
* must be a Qt::QueuedConnection.
*/
class BLACKCORE_EXPORT INetwork : public QObject
class BLACKCORE_EXPORT INetwork :
public QObject,
public BlackMisc::Simulation::COwnAircraftAware, // network vatlib consumes own aircraft data and sets ICAO/callsign data
public BlackMisc::Simulation::CSimulationEnvironmentAware // allows to consume ground elevations
{
Q_OBJECT
@@ -61,7 +66,9 @@ namespace BlackCore
/*!
* Constructor
*/
INetwork(QObject *parent = nullptr) : QObject(parent) {}
INetwork(BlackMisc::Simulation::IOwnAircraftProvider *ownAircraft, QObject *parent = nullptr) :
QObject(parent),
BlackMisc::Simulation::COwnAircraftAware(ownAircraft) {}
public:
/*!