| 308 | } |
| 309 | |
| 310 | bool CReviveManifestController::LoadDocument() |
| 311 | { |
| 312 | if (!m_manifestFile.open(QIODevice::ReadOnly)) |
| 313 | { |
| 314 | qWarning("Couldn't open manifest file for reading"); |
| 315 | return false; |
| 316 | } |
| 317 | |
| 318 | QJsonDocument doc = QJsonDocument::fromJson(m_manifestFile.readAll()); |
| 319 | m_manifest = doc.object(); |
| 320 | m_manifestFile.close(); |
| 321 | |
| 322 | #ifndef DEBUG |
| 323 | AddApplicationManifest(m_manifestFile); |
| 324 | #endif |
| 325 | |
| 326 | return true; |
| 327 | } |
| 328 | |
| 329 | bool CReviveManifestController::SaveDocument() |
| 330 | { |
nothing calls this directly
no outgoing calls
no test coverage detected