отработка hash ready на GUI

This commit is contained in:
2025-07-25 16:06:22 +03:00
parent 215264f0c6
commit 543fe7b3d0
4 changed files with 12 additions and 2 deletions

View File

@@ -267,8 +267,7 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
if(packetType == PacketType::HASH_READY)
{
//connectorToServer->sendQueryTasksXML("fim");
//connectorToServer->sendQueryTasksXML("amm");
emit sigHashReady();
}
//xml-ответы на запросы к БД

View File

@@ -56,6 +56,7 @@ signals:
void sigSetVersion(StreamingVersionData* serverVersion);
void sigNotify(QString text);
void sigAnimationActivated(bool flag);
void sigHashReady();
private:
QList<QString> *folderList;

View File

@@ -384,6 +384,12 @@ void ConnectorToServer::showServerList(QList<StreamingVersionData *> *serverList
versionSelectWidget->fillView(serverList);
}
void ConnectorToServer::slot_HashReady()
{
//sendQueryTasksXML("fim");
sendQueryTasksXML("amm");
}
void ConnectorToServer::initialize()
{
createObjects();
@@ -426,6 +432,8 @@ void ConnectorToServer::bindConnection()
connect(client,&TCPClient::signal_ConnectedToServer,this,&ConnectorToServer::signal_ConnectedToServer,Qt::AutoConnection);
connect(recognizeSystem,&RecognizeSystem::sigNotify,notifyController,&NotifyController::showWarning,Qt::AutoConnection);
connect(recognizeSystem,&RecognizeSystem::sigHashReady,this,&ConnectorToServer::slot_HashReady);
}
void ConnectorToServer::createObjects()

View File

@@ -82,6 +82,8 @@ public slots:
void slot_msgToClientReady(QString login, QString text);
void showServerList(QList<StreamingVersionData*> *serverList);
void slot_HashReady();
signals:
void sigSetConnect(ServerSettings* serverSettings,QThread *thread);
void sigStopConnect();