feat: add file data complete

This commit is contained in:
semenov
2026-03-11 11:46:11 +03:00
parent 74937bc64d
commit 6bfe260e47
6 changed files with 16 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ struct FileData
{
QString path;
QString hash;
QString lastUpdate;
bool operator==(const FileData& other)const{
if(this->path==(other.path) && this->hash == other.hash) return true;

View File

@@ -44,6 +44,7 @@ void DataParser::createFileDataList(QList<FileData> fileDataList,QString filenam
xmlWriter.writeAttribute("Path",data.path);
xmlWriter.writeAttribute("Hash",data.hash);
xmlWriter.writeAttribute("LastUpdate",data.lastUpdate);
xmlWriter.writeEndElement();
}
@@ -499,6 +500,8 @@ QList<FileData>* DataParser::xmlFileDataParse(QByteArray array, QString filter =
data.path = value;
else if(name == "Hash")
data.hash = value;
else if(name == "LastUpdate")
data.lastUpdate = value;
}
if(data.path.contains(filter))