mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
[XSwiftBus] Convert setPlanesTransponders to list setter
ref T374
This commit is contained in:
committed by
Klaus Basan
parent
65d00dca6e
commit
616cc241f4
@@ -115,9 +115,11 @@ namespace BlackSimPlugin
|
||||
planesSurfaces.navLights, planesSurfaces.lightPatterns);
|
||||
}
|
||||
|
||||
void CXSwiftBusTrafficProxy::setPlaneTransponder(const QString &callsign, int code, bool modeC, bool ident)
|
||||
void CXSwiftBusTrafficProxy::setPlanesTransponders(const PlanesTransponders &planesTransponders)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setPlaneTransponder"), callsign, code, modeC, ident);
|
||||
m_dbusInterface->callDBus(QLatin1String("setPlanesTransponders"),
|
||||
planesTransponders.callsigns, planesTransponders.codes,
|
||||
planesTransponders.modeCs, planesTransponders.idents);
|
||||
}
|
||||
|
||||
void CXSwiftBusTrafficProxy::setInterpolatorMode(const QString &callsign, bool spline)
|
||||
|
||||
@@ -87,6 +87,18 @@ namespace BlackSimPlugin
|
||||
QList<int> lightPatterns; //!< List of lightPatterns
|
||||
};
|
||||
|
||||
//! Plane Transponders
|
||||
struct PlanesTransponders
|
||||
{
|
||||
//! Is empty?
|
||||
bool isEmpty() const { return callsigns.isEmpty(); }
|
||||
|
||||
QStringList callsigns;
|
||||
QList<int> codes;
|
||||
QList<bool> modeCs;
|
||||
QList<bool> idents;
|
||||
};
|
||||
|
||||
/*!
|
||||
* Proxy object connected to a real XSwiftBus::CTraffic object via DBus
|
||||
*/
|
||||
@@ -172,8 +184,8 @@ namespace BlackSimPlugin
|
||||
//! \copydoc XSwiftBus::CTraffic::setPlanesSurfaces
|
||||
void setPlanesSurfaces(const PlanesSurfaces &planesSurfaces);
|
||||
|
||||
//! \copydoc XSwiftBus::CTraffic::setPlaneTransponder
|
||||
void setPlaneTransponder(const QString &callsign, int code, bool modeC, bool ident);
|
||||
//! \copydoc XSwiftBus::CTraffic::setPlanesTransponders
|
||||
void setPlanesTransponders(const PlanesTransponders &planesTransponders);
|
||||
|
||||
//! \deprecated XSwiftBus::CTraffic::setInterpolatorMode
|
||||
void setInterpolatorMode(const QString &callsign, bool spline);
|
||||
|
||||
Reference in New Issue
Block a user