mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T709, added DBus signatures and use CSettings class in service class
* CSettings objects will be shared among all services (traffic, weather, service) * It is "global" for plugin
This commit is contained in:
committed by
Mat Sutcliffe
parent
94f519961b
commit
f6690136f2
@@ -40,7 +40,7 @@ namespace BlackSimPlugin
|
||||
|
||||
QString CXSwiftBusServiceProxy::getVersionNumber()
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getVersionNumber"));
|
||||
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getVersionNumber"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getOwnAircraftSituationData(XPlaneData *o_xplaneData)
|
||||
@@ -505,5 +505,20 @@ namespace BlackSimPlugin
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getSpeedBrakeRatio"), setterCallback(o_speedBrakeRatio));
|
||||
}
|
||||
|
||||
QString CXSwiftBusServiceProxy::getSettings() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<QString>(QLatin1String("getSettings"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getSettingsAsync(QString *o_jsonSettings)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getSettings"), setterCallback(o_jsonSettings));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::setSettings(const QString &json)
|
||||
{
|
||||
m_dbusInterface->callDBus(QLatin1String("setSettings"), json);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -386,8 +386,17 @@ namespace BlackSimPlugin
|
||||
double getSpeedBrakeRatio() const;
|
||||
void getSpeedBrakeRatioAsync(double *o_speedBrakeRatio);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getSettings
|
||||
//! @{
|
||||
QString getSettings() const;
|
||||
void getSettingsAsync(QString *o_jsonSettings);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::setSettings
|
||||
void setSettings(const QString &json);
|
||||
};
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user