mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: add postprocess and dataparserOut
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user