feat: send xml answer

This commit is contained in:
semenov
2024-08-15 15:30:22 +03:00
parent f7ebfcca5f
commit 6878eb0697
41 changed files with 1499 additions and 876 deletions

View File

@@ -1,4 +1,4 @@
#include "UpdateController.h"
#include "updatecontroller.h"
UpdateController::UpdateController(DataParser *parser, QObject *parent) :
QObject(parent)
@@ -6,8 +6,6 @@ UpdateController::UpdateController(DataParser *parser, QObject *parent) :
this->dataParser = parser;
localPath = QDir::currentPath() + "/Application";
countSend = 0;
CalculateHash();
}
void UpdateController::SendFile(QDataStream &stream)
@@ -37,6 +35,9 @@ void UpdateController::SendFile(QDataStream &stream)
void UpdateController::CalculateHash()
{
qDebug() << "Try calculate";
QDirIterator iterator(localPath,QDirIterator::Subdirectories);
fileDataList.clear();
QList<FileData> *files = new QList<FileData>;
@@ -107,6 +108,3 @@ UpdateController::~UpdateController()
{
}