mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
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:
@@ -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:
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user