mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: add server notify
This commit is contained in:
@@ -8,9 +8,11 @@ DataParser::DataParser(QObject *parent) :
|
||||
}
|
||||
}
|
||||
|
||||
void DataParser::initialize(RecognizeSystem *recognizeSystem)
|
||||
void DataParser::initialize(RecognizeSystem *recognizeSystem,NotifyController *notifyController)
|
||||
{
|
||||
this->recognizeSystem = recognizeSystem;
|
||||
this->notifyController = notifyController;
|
||||
connect(this,&DataParser::sigNotify,notifyController,&NotifyController::showWarning,Qt::AutoConnection);
|
||||
}
|
||||
|
||||
void DataParser::createFileDataList(QList<FileData> fileDataList,QString filename)
|
||||
@@ -402,15 +404,20 @@ void DataParser::xmlParser(QByteArray array)
|
||||
emit recognizeSystem->sigSocketDisabled();
|
||||
}
|
||||
|
||||
if(value == "BLOCKED")
|
||||
if (value == "BLOCKED")
|
||||
{
|
||||
emit recognizeSystem->sigServerBlocked();
|
||||
}
|
||||
|
||||
if(value == "HASHSENDCOMPLETE")
|
||||
if (value == "HASHSENDCOMPLETE")
|
||||
{
|
||||
emit recognizeSystem->sigStartCompare();
|
||||
}
|
||||
|
||||
if (value == "BASEDELETETRY")
|
||||
{
|
||||
emit sigNotify("Нельзя удалять базовую версию");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user