refs #268 populated CSimulatorXPlane with the implementation code to connect to XBus and get the aircraft situation and model via CXBusServiceProxy

This commit is contained in:
Mathew Sutcliffe
2014-06-15 14:49:54 +01:00
parent 271c973f6e
commit 4ebb03bd0d
4 changed files with 89 additions and 9 deletions

View File

@@ -9,12 +9,17 @@
//! \file
#include "blackcore/simulator.h"
#include <QDBusConnection>
class QDBusServiceWatcher;
namespace BlackSimPlugin
{
namespace XPlane
{
class CXBusServiceProxy;
/*!
* X-Plane ISimulator implementation
*/
@@ -32,6 +37,15 @@ namespace BlackSimPlugin
//! \copydoc BlackCore::ISimulator::canConnect
virtual bool canConnect() override;
private:
QDBusConnection m_conn { "default" };
QDBusServiceWatcher *m_watcher { nullptr };
CXBusServiceProxy *m_service { nullptr };
private slots:
void serviceRegistered();
void serviceUnregistered();
public slots:
//! \copydoc BlackCore::ISimulator::connectTo
virtual bool connectTo() override;