mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +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
|
||||
|
||||
Reference in New Issue
Block a user