| 564 | } |
| 565 | |
| 566 | bool DocumentRecoveryPrivate::isValidProject(const QFileInfo& fi) const |
| 567 | { |
| 568 | if (!fi.exists()) { |
| 569 | return false; |
| 570 | } |
| 571 | |
| 572 | const QString projectFile = fi.absoluteFilePath(); |
| 573 | |
| 574 | if (!zipDataIsValid(projectFile)) { |
| 575 | return false; |
| 576 | } |
| 577 | |
| 578 | if (!xmlFilesAreValid(projectFile)) { |
| 579 | return false; |
| 580 | } |
| 581 | |
| 582 | App::ProjectFile project(projectFile.toStdString()); |
| 583 | return project.loadDocument(); |
| 584 | } |
| 585 | |
| 586 | DocumentRecoveryPrivate::XmlConfig DocumentRecoveryPrivate::readXmlFile(const QString& fn) const |
| 587 | { |
nothing calls this directly
no test coverage detected