mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
Add missing xswiftbus DBus methods
This commit is contained in:
@@ -22,6 +22,42 @@ R"XML(<node>
|
|||||||
<arg name="trueHeading" type="d" direction="out"/>
|
<arg name="trueHeading" type="d" direction="out"/>
|
||||||
<arg name="qnh" type="d" direction="out"/>
|
<arg name="qnh" type="d" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
|
<method name="getOwnAircraftCom1Data">
|
||||||
|
<arg name="actv" type="i" direction="out"/>
|
||||||
|
<arg name="stby" type="i" direction="out"/>
|
||||||
|
<arg name="vol" type="d" direction="out"/>
|
||||||
|
<arg name="rx" type="b" direction="out"/>
|
||||||
|
<arg name="tx" type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="getOwnAircraftCom2Data">
|
||||||
|
<arg name="actv" type="i" direction="out"/>
|
||||||
|
<arg name="stby" type="i" direction="out"/>
|
||||||
|
<arg name="vol" type="d" direction="out"/>
|
||||||
|
<arg name="rx" type="b" direction="out"/>
|
||||||
|
<arg name="tx" type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="getOwnAircraftXpdr">
|
||||||
|
<arg name="code" type="i" direction="out"/>
|
||||||
|
<arg name="mode" type="i" direction="out"/>
|
||||||
|
<arg name="ident" type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="getOwnAircraftLights">
|
||||||
|
<arg name="beacon" type="b" direction="out"/>
|
||||||
|
<arg name="landing" type="b" direction="out"/>
|
||||||
|
<arg name="nav" type="b" direction="out"/>
|
||||||
|
<arg name="strobe" type="b" direction="out"/>
|
||||||
|
<arg name="taxi" type="b" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="getOwnAircraftParts">
|
||||||
|
<arg name="flapRatio" type="d" direction="out"/>
|
||||||
|
<arg name="gearRatio" type="d" direction="out"/>
|
||||||
|
<arg name="spoilerRatio" type="d" direction="out"/>
|
||||||
|
<arg name="enginesN1pct" type="d" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="getOwnAircraftModelData">
|
||||||
|
<arg name="path" type="s" direction="out"/>
|
||||||
|
<arg name="icao" type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
<method name="updateAirportsInRange">
|
<method name="updateAirportsInRange">
|
||||||
</method>
|
</method>
|
||||||
<method name="getAircraftModelPath">
|
<method name="getAircraftModelPath">
|
||||||
@@ -177,7 +213,11 @@ R"XML(<node>
|
|||||||
<method name="getSpeedBrakeRatio">
|
<method name="getSpeedBrakeRatio">
|
||||||
<arg type="d" direction="out"/>
|
<arg type="d" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="toggleMessageBoxVisibility">
|
<method name="getSettingsJson">
|
||||||
|
<arg type="s" direction="out"/>
|
||||||
|
</method>
|
||||||
|
<method name="setSettingsJson">
|
||||||
|
<arg type="s" direction="in"/>
|
||||||
</method>
|
</method>
|
||||||
</interface>
|
</interface>
|
||||||
</node>)XML"
|
</node>)XML"
|
||||||
|
|||||||
@@ -926,14 +926,6 @@ namespace XSwiftBus
|
|||||||
sendDBusReply(sender, serial, getSpeedBrakeRatio());
|
sendDBusReply(sender, serial, getSpeedBrakeRatio());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (message.getMethodName() == "toggleMessageBoxVisibility")
|
|
||||||
{
|
|
||||||
maybeSendEmptyDBusReply(wantsReply, sender, serial);
|
|
||||||
queueDBusCall([ = ]()
|
|
||||||
{
|
|
||||||
toggleMessageBoxVisibility();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if (message.getMethodName() == "getSettingsJson")
|
else if (message.getMethodName() == "getSettingsJson")
|
||||||
{
|
{
|
||||||
queueDBusCall([ = ]()
|
queueDBusCall([ = ]()
|
||||||
|
|||||||
Reference in New Issue
Block a user