| 22 | } |
| 23 | |
| 24 | IdentityBackupObject IdentityBackupObject::fromFile(QDir const& path) { |
| 25 | QFile file(path.filePath(QStringLiteral("identity"))); |
| 26 | checkAndOpenFile(file); |
| 27 | QByteArray const data = file.readAll(); |
| 28 | file.close(); |
| 29 | |
| 30 | QString const backupString = QString::fromUtf8(data); |
| 31 | return IdentityBackupObject(backupString); |
| 32 | } |
| 33 | |
| 34 | } |
| 35 | } |
nothing calls this directly
no test coverage detected