mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user