Moved FSX specific implementation into blacksim/fsx and

converted it into a plugin.

refs #190
This commit is contained in:
Roland Winklmeier
2014-03-15 14:54:47 +01:00
parent 05d96fa48d
commit dec49dba7f
13 changed files with 132 additions and 36 deletions

View File

@@ -40,6 +40,7 @@ namespace BlackCore
//! \brief Are we connected to the simulator?
virtual bool isConnected() const = 0;
public slots:
/*!
* \brief Return user aircraft object
* \return
@@ -78,6 +79,24 @@ namespace BlackCore
void ownAircraftReceived(BlackMisc::Aviation::CAircraft aircraft);
};
//! \brief Factory pattern class to create instances of ISimulator
class ISimulatorFactory
{
public:
//! \brief Virtual destructor
virtual ~ISimulatorFactory() {}
/*!
* \brief Create a new instance
* \param parent
* \return
*/
virtual ISimulator* create(QObject *parent = nullptr) = 0;
};
} // namespace BlackCore
Q_DECLARE_INTERFACE(BlackCore::ISimulatorFactory, "net.vatsim.PilotClient.BlackCore.SimulatorInterface")
#endif // BLACKCORE_SIMULATOR_H