ref: add postprocess and dataparserOut

This commit is contained in:
semenov
2025-08-12 10:24:37 +03:00
parent c993e12b84
commit f5c929021b
10 changed files with 28 additions and 17566 deletions

View File

@@ -8,9 +8,9 @@ DataParser::DataParser(QObject *parent) :
}
}
void DataParser::initialize()
void DataParser::initialize(PostProcessorSystem *postProcessSystem)
{
this->postProcessSystem = postProcessSystem;
}
@@ -118,17 +118,17 @@ void DataParser::xmlParser(QByteArray array)
{
if (value == "END")
{
postProcessorSystem->socketDisable();
postProcessSystem->socketDisable();
}
if (value == "BLOCKED")
{
postProcessorSystem->serverBlocked();
postProcessSystem->serverBlocked();
}
if (value == "HASHSENDCOMPLETE")
{
postProcessorSystem->startCompare();
postProcessSystem->startCompare();
}
if (value == "BASEDELETETRY")
@@ -149,13 +149,13 @@ void DataParser::xmlParser(QByteArray array)
if (value == "UNCHANGEABLE")
{
emit sigNotify(tr("Нельзя выгружать в базовую версию"));
postProcessorSystem->showUpdateList();
postProcessSystem->showUpdateList();
//emit recognizeSystem->sigShowUpdateList();
}
if (value == "CHANGEABLE")
{
postProcessorSystem->compareFiles();
postProcessSystem->compareFiles();
//emit sigUpdateFilesOnServer(hashComparer->getFilesForUpdate());
}
}
@@ -185,12 +185,12 @@ void DataParser::xmlParser(QByteArray array)
if (name == "AccessType"){
serverAuth->AccessType = value;
postProcessorSystem->checkAccessType(value);
postProcessSystem->checkAccessType(value);
//recognizeSystem->checkAccessType(value);
}
}
postProcessorSystem->saveLoginData(serverAuth);
postProcessSystem->saveLoginData(serverAuth);
//emit recognizeSystem->sigSaveLoginData(serverAuth);
}
@@ -218,7 +218,7 @@ void DataParser::xmlParser(QByteArray array)
}
}
postProcessorSystem->setServerVersion(serverVersion);
postProcessSystem->setServerVersion(serverVersion);
//recognizeSystem->setServerVersion(serverVersion);
}
@@ -256,7 +256,7 @@ void DataParser::xmlParser(QByteArray array)
xmlReader.readNext();
}
postProcessorSystem->showServerDataList(serverStreamingVersionDataList);
postProcessSystem->showServerDataList(serverStreamingVersionDataList);
}
xmlReader.readNext();

View File

@@ -21,7 +21,7 @@ class DataParser : public QObject
public:
explicit DataParser(QObject *parent = 0);
void initialize();
void initialize(PostProcessorSystem *postProcessSystem);
~DataParser();
ServerSettings* getClientSettings();
@@ -33,7 +33,7 @@ signals:
private:
ClientAutorization *authPassCache;
PostProcessorSystem *postProcessorSystem;
PostProcessorSystem *postProcessSystem;
};
#endif // DATAPARSER_H

View File

@@ -1,6 +1,6 @@
#include "postprocessorsystem.h"
PostProcessorSystem::PostProcessorSystem() {}
PostProcessorSystem::PostProcessorSystem(QObject *parent) : QObject(parent){}
void PostProcessorSystem::initialize(DataParserOutput *dataParserOutput,
HashComparer *hashComparer,

View File

@@ -10,7 +10,7 @@ class PostProcessorSystem : public QObject
{
Q_OBJECT
public:
PostProcessorSystem();
explicit PostProcessorSystem(QObject *parent = 0);
void initialize(DataParserOutput *dataParserOutput,
HashComparer *hashComparer,
VersionContainer* versionContainer,

View File

@@ -19,10 +19,11 @@ RecognizeSystem::~RecognizeSystem()
}
void RecognizeSystem::initialize(VersionContainer *versionContainer,PostProcessorSystem *postProcessorSystem)
void RecognizeSystem::initialize(DataParser *dataParser, VersionContainer *versionContainer,PostProcessorSystem *postProcessorSystem)
{
this->versionContainer = versionContainer;
this->postProcessorSystem = postProcessorSystem;
this->dataParser = dataParser;
}
void RecognizeSystem::recognize(QTcpSocket *socket)

View File

@@ -23,7 +23,7 @@ class RecognizeSystem : public QObject
public:
explicit RecognizeSystem(QObject *parent = 0);
~RecognizeSystem();
void initialize(VersionContainer* versionContainer,PostProcessorSystem *postProcessorSystem);
void initialize(DataParser *dataParser, VersionContainer* versionContainer,PostProcessorSystem *postProcessorSystem);
void recognize(QTcpSocket *socket);
void showServerDataList(QList<StreamingVersionData*> *showServerDataList);