102 QByteArray fileHash =
103 QCryptographicHash::hash(
fileData_, QCryptographicHash::Md5);
105 QFile file(md5FileName);
106 if (file.open(QIODevice::ReadOnly))
108 QByteArray referenceHash = file.readAll();
110 if (referenceHash == fileHash)
114 INFO(
"Hashfile does not match data ... checking file ...");
122 QFile fileMD5(md5FileName);
123 if (fileMD5.open(QIODevice::WriteOnly))
125 fileMD5.write(fileHash);
127 INFO(
"File is valid, hashfile written.");
131 WARN(
"File is valid but could not write hashfile!");