feat: add client information

This commit is contained in:
semenov
2025-11-20 17:20:52 +03:00
parent 633881847b
commit 6665f417c9
12 changed files with 11023 additions and 10881 deletions

View File

@@ -14,11 +14,12 @@ RecognizeSystem::RecognizeSystem(QObject *parent):
countSend = 0;
}
void RecognizeSystem::initialize(DataParser *dataParser, VersionContainer *versionContainer,PostProcessorSystem *postProcessorSystem)
void RecognizeSystem::initialize(DataParser *dataParser, VersionContainer *versionContainer,PostProcessorSystem *postProcessorSystem,Client *client)
{
this->versionContainer = versionContainer;
this->postProcessorSystem = postProcessorSystem;
this->dataParser = dataParser;
this->client = client;
}
void RecognizeSystem::recognize(QTcpSocket *socket)
@@ -264,7 +265,10 @@ void RecognizeSystem::recognize(QTcpSocket *socket)
if (packetType == PacketType::TYPE_XMLANSWER_DOCS_CHANGED) //на случай общего обновления
{
emit sigSendPacketType(PacketType::GET_DOCS);
if (client->getIsLoggedIn())
{
emit sigSendPacketType(PacketType::GET_DOCS);
}
}
if (packetType == PacketType::UPDATE_FILE_COMPLETE)