refs #450 When GUI connects to core, it needs to have all current core settings inserted into its core settings cache.

This commit is contained in:
Mathew Sutcliffe
2015-09-05 16:52:13 +01:00
parent af3775c8ea
commit e457e088a7
6 changed files with 42 additions and 0 deletions

View File

@@ -67,6 +67,17 @@ namespace BlackCore
this->m_dBusInterface->callDBus(QLatin1Literal("changeSettings"), settings, origin);
}
BlackMisc::CVariantMap CContextApplicationProxy::getAllSettings() const
{
return this->m_dBusInterface->callDBusRet<BlackMisc::CVariantMap>(QLatin1Literal("getAllSettings"));
}
void CContextApplicationProxy::synchronizeLocalSettings()
{
// note this proxy method does not call synchronizeLocalSettings in core
CSettingsCache::instance()->insertValues(this->getAllSettings());
}
BlackMisc::CStatusMessage CContextApplicationProxy::saveSettings(const QString &keyPrefix)
{
return this->m_dBusInterface->callDBusRet<BlackMisc::CStatusMessage>(QLatin1Literal("saveSettings"), keyPrefix);