Make FSX works with ISimulatorListener.

SimConnect tries to connect to FSX every 5 seconds.
TODO: Use WinAPI to wait for FSX process to show up
This commit is contained in:
Michał Garapich
2015-03-02 21:38:07 +01:00
committed by Roland Winklmeier
parent 5b4c2377b6
commit edc0646ab2
7 changed files with 65 additions and 20 deletions

View File

@@ -201,6 +201,25 @@ namespace BlackSimPlugin
qint64 m_statsUpdateAircraftTimeAvg = 0;
int m_statsUpdateAircraftCount = 0;
};
class CSimulatorFsxListener : public BlackCore::ISimulatorListener {
Q_OBJECT
public:
//! Constructor
CSimulatorFsxListener(QObject* parent);
//! \copydoc BlackCore::ISimulatorListener::start
virtual void start() override;
//! \copydoc BlackCore::ISimulatorListener::stop
virtual void stop() override;
private:
QTimer* m_timer;
const BlackSim::CSimulatorInfo m_simulatorInfo = BlackSim::CSimulatorInfo::FSX();
};
}
} // namespace BlackCore