mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
fab6e677a8
commit
aa765e9adb
@@ -309,7 +309,6 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool CFGSwiftBusServiceProxy::getStrobeLightsOn() const
|
bool CFGSwiftBusServiceProxy::getStrobeLightsOn() const
|
||||||
|
|
||||||
{
|
{
|
||||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("getStrobeLightsOn"));
|
return m_dbusInterface->callDBusRet<bool>(QLatin1String("getStrobeLightsOn"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
if (isConnected())
|
if (isConnected())
|
||||||
{
|
{
|
||||||
|
// own aircraft data
|
||||||
m_serviceProxy->getAircraftModelPathAsync(&m_xplaneData.aircraftModelPath); // this is NOT the model string
|
m_serviceProxy->getAircraftModelPathAsync(&m_xplaneData.aircraftModelPath); // this is NOT the model string
|
||||||
m_serviceProxy->getAircraftIcaoCodeAsync(&m_xplaneData.aircraftIcaoCode);
|
m_serviceProxy->getAircraftIcaoCodeAsync(&m_xplaneData.aircraftIcaoCode);
|
||||||
m_serviceProxy->getBeaconLightsOnAsync(&m_xplaneData.beaconLightsOn);
|
m_serviceProxy->getBeaconLightsOnAsync(&m_xplaneData.beaconLightsOn);
|
||||||
|
|||||||
@@ -536,6 +536,13 @@ namespace XSwiftBus
|
|||||||
sendDBusReply(sender, serial, getLandingLightsOn());
|
sendDBusReply(sender, serial, getLandingLightsOn());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if (message.getMethodName() == "getTaxiLightsOn")
|
||||||
|
{
|
||||||
|
queueDBusCall([ = ]()
|
||||||
|
{
|
||||||
|
sendDBusReply(sender, serial, getTaxiLightsOn());
|
||||||
|
});
|
||||||
|
}
|
||||||
else if (message.getMethodName() == "getNavLightsOn")
|
else if (message.getMethodName() == "getNavLightsOn")
|
||||||
{
|
{
|
||||||
queueDBusCall([ = ]()
|
queueDBusCall([ = ]()
|
||||||
@@ -550,13 +557,6 @@ namespace XSwiftBus
|
|||||||
sendDBusReply(sender, serial, getStrobeLightsOn());
|
sendDBusReply(sender, serial, getStrobeLightsOn());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (message.getMethodName() == "getTaxiLightsOn")
|
|
||||||
{
|
|
||||||
queueDBusCall([ = ]()
|
|
||||||
{
|
|
||||||
sendDBusReply(sender, serial, getTaxiLightsOn());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (message.getMethodName() == "getQNHInHg")
|
else if (message.getMethodName() == "getQNHInHg")
|
||||||
{
|
{
|
||||||
queueDBusCall([ = ]()
|
queueDBusCall([ = ]()
|
||||||
|
|||||||
Reference in New Issue
Block a user