Индикация и возм обновл docs из ГУИ

This commit is contained in:
2025-11-12 15:22:15 +03:00
parent 650b0525a3
commit 98821a7533
22 changed files with 468 additions and 269 deletions

View File

@@ -141,3 +141,30 @@ void CommonClientHandler::slot_sendTaskToClient(QString fullNameClient,QString t
}
}
void CommonClientHandler::slot_DocsChanged()
{
//Проходим все открытые сокеты
foreach(int idSocket, clientsMap->keys())
{
ClientHandler *handler = clientsMap->value(idSocket);
//Проверяем, есть ли клиенты TYPE_GUI
if(handler->getClient()->getTypeClient() == TypeClientAutorization::TYPE_GUI)
{//Отправляем этому клиенту оповещение об изменении docs.xml
/*
ClientQueryTasksXML clientQueryTasksXML;
clientQueryTasksXML.Type = "amm";
processingSystem->processingClientQueryTasksXML(handler, clientQueryTasksXML);
*/
handler->sendPacketType(PacketType::TYPE_XMLANSWER_DOCS_CHANGED);
}
if(handler->getClient()->getClientType() == TypeClientAutorization::TYPE_UNITY_CLIENT)
{
handler->sendPacketType(PacketType::TYPE_XMLANSWER_DOCS_CHANGED);
}
}
}