[XSwiftBus] Add getVersionNumber to DBus API

This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons.

ref T394
This commit is contained in:
Roland Rossgotterer
2018-11-22 11:53:33 +01:00
committed by Klaus Basan
parent e959075a56
commit 55c2e2e559
6 changed files with 24 additions and 1 deletions

View File

@@ -39,6 +39,11 @@ namespace BlackSimPlugin
}
}
QString CXSwiftBusServiceProxy::getVersionNumber()
{
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getVersionNumber"));
}
void CXSwiftBusServiceProxy::getOwnAircraftSituationData(XPlaneData *o_xplaneData)
{
QPointer<CXSwiftBusServiceProxy> myself(this);

View File

@@ -96,6 +96,9 @@ namespace BlackSimPlugin
void airportsInRangeUpdated(const QStringList &icaoCodes, const QStringList &names, const QList<double> &lats, const QList<double> &lons, const QList<double> &alts);
public slots:
//! Get XSwiftBus version number
QString getVersionNumber();
//! Get own aircraft situation data
void getOwnAircraftSituationData(XPlaneData *o_xplaneData);