Add connectTo/disconnectFrom/canConnect to Simulator drivers

Removed checkConnection() as driver is passive only.

refs #187
This commit is contained in:
Roland Winklmeier
2014-04-21 15:01:24 +02:00
parent 03b7418d03
commit e669ad8fb4
3 changed files with 67 additions and 20 deletions

View File

@@ -41,7 +41,17 @@ namespace BlackCore
//! \brief Are we connected to the simulator?
virtual bool isConnected() const = 0;
//! \brief Can we connect?
virtual bool canConnect() = 0;
public slots:
//! \brief Connect to simulator
virtual bool connectTo() = 0;
//! \brief Disconnect from simulator
virtual bool disconnectFrom() = 0;
//! Return user aircraft object
virtual BlackMisc::Aviation::CAircraft getOwnAircraft() const = 0;