mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
feat: add file data complete
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user