feat: add information

This commit is contained in:
semenov
2025-09-25 11:47:42 +03:00
parent 722889789e
commit edc278dcd1
9 changed files with 115 additions and 112 deletions

View File

@@ -32,8 +32,7 @@ void SendSystem::sendXmlAnswer(QByteArray array, PacketType packetType)
```
Отправка пакета без вложения:
`void SendSystem::sendPacketType(PacketType packetType)
{
`void SendSystem::sendPacketType(PacketType packetType){
if (client->getClientType() == TypeClientAutorization::TYPE_QT_CLIENT ||
client->getClientType() == TypeClientAutorization::TYPE_GUI)
{
@@ -52,8 +51,17 @@ void SendSystem::sendXmlAnswer(QByteArray array, PacketType packetType)
socket->write(message);
}
}`
Не подходит для последнего сообщения (например при отключении клиента)
Отправка сервисного сообщения (тип ServerNotify)
`void SendSystem::sendNotify(QString notify)
{
qDebug() << "SendNotify thread: " << QThread::currentThreadId();
auto answer = emit sigSendNotify(notify);
sendXmlAnswer(answer);
}`
Типы сообщений QT->Unity:
TYPE_XMLANSWER
Остальные QT->QT