diff --git a/src/plugins/simulator/fscommon/fsuipc.cpp b/src/plugins/simulator/fscommon/fsuipc.cpp index a3812b33c..12ab43fce 100644 --- a/src/plugins/simulator/fscommon/fsuipc.cpp +++ b/src/plugins/simulator/fscommon/fsuipc.cpp @@ -36,7 +36,6 @@ namespace BlackSimPlugin { namespace FsCommon { - CFsuipc::CFsuipc() { startTimer(100); @@ -67,7 +66,7 @@ namespace BlackSimPlugin .arg(QLatin1Char(48 + (0x0f & (FSUIPC_Version >> 16)))) .arg((FSUIPC_Version & 0xffff) ? QString(QLatin1Char('a' + (FSUIPC_Version & 0xff) - 1)) : ""); this->m_fsuipcVersion = QString("FSUIPC %1 (%2)").arg(ver).arg(sim); -// CLogMessage(this).info("FSUIPC connected: %1") << this->m_fsuipcVersion; + CLogMessage(this).info("FSUIPC connected: %1") << this->m_fsuipcVersion; } else { diff --git a/src/plugins/simulator/fscommon/fsuipc.h b/src/plugins/simulator/fscommon/fsuipc.h index 1ed54a022..4644da697 100644 --- a/src/plugins/simulator/fscommon/fsuipc.h +++ b/src/plugins/simulator/fscommon/fsuipc.h @@ -26,7 +26,6 @@ namespace BlackSimPlugin Q_OBJECT public: - //! Constructor CFsuipc(); @@ -51,6 +50,9 @@ namespace BlackSimPlugin //! Write weather grid to simulator bool write(const BlackMisc::Weather::CWeatherGrid &weatherGrid); + //! Get the version + QString getVersion() const { return m_fsuipcVersion; } + //! Read data from FSUIPC //! \param aircraft object to be updated //! \param cockpit update cockpit data @@ -60,9 +62,6 @@ namespace BlackSimPlugin //! bool read(BlackMisc::Simulation::CSimulatedAircraft &aircraft, bool cockpit, bool situation, bool aircraftParts); - //! Find out whether we can connect to FSUIPC or not - static bool canConnect(); - //! Error messages static const QStringList &errorMessages() { @@ -129,7 +128,6 @@ namespace BlackSimPlugin //! Integer representing fractional static double intToFractional(double fractional); - }; } }