refs #207, added remote file read/write

* write simconnect.cfg either local or remote
* update in GUI to use new methods
This commit is contained in:
Klaus Basan
2014-04-14 12:30:29 +02:00
parent 17a6607781
commit d58be30600
7 changed files with 85 additions and 4 deletions

View File

@@ -70,4 +70,19 @@ namespace BlackCore
this->m_dBusInterface->callDBus(QLatin1Literal("notifyAboutComponentChange"), component, action);
}
/*
* To file
*/
bool CContextApplicationProxy::writeToFile(const QString &fileName, const QString &content)
{
return this->m_dBusInterface->callDBusRet<bool>(QLatin1Literal("writeToFile"), fileName, content);
}
/*
* From file
*/
QString CContextApplicationProxy::readFromFile(const QString &fileName)
{
return this->m_dBusInterface->callDBusRet<QString>(QLatin1Literal("readFromFile"), fileName);
}
} // namespace