mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
feat: update cifList for unity
This commit is contained in:
@@ -603,8 +603,5 @@ void ProcessParser::clientNotify(QXmlStreamReader &xmlReader,ClientHandler *clie
|
||||
|
||||
void ProcessParser::compareCFIObjects(QByteArray array,ClientHandler *clientHandler)
|
||||
{
|
||||
QByteArray temp = array;
|
||||
processingSystem->processingCFIUpdate(temp,clientHandler);
|
||||
|
||||
|
||||
processingSystem->processingCFIUpdate(array);
|
||||
}
|
||||
|
||||
@@ -176,3 +176,17 @@ void CommonClientHandler::slot_DocsChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void CommonClientHandler::sendXmlAnswer(QByteArray array)
|
||||
{
|
||||
foreach(int idSocket, clientsMap->keys())
|
||||
{
|
||||
ClientHandler *handler = clientsMap->value(idSocket);
|
||||
TypeClientAutorization type = handler->getClient()->getTypeClient();
|
||||
|
||||
if(type == TypeClientAutorization::TYPE_UNITY_CLIENT)
|
||||
{
|
||||
handler->sendXmlAnswer(array,PacketType::TYPE_UPDATEDCFI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ public:
|
||||
|
||||
void slot_DocsChanged();
|
||||
|
||||
void sendXmlAnswer(QByteArray array);
|
||||
|
||||
public slots:
|
||||
void slot_sendPacketToAllClients(PacketType packetType, bool flOnlyGUI);
|
||||
|
||||
|
||||
@@ -228,9 +228,16 @@ void ProcessingSystem::processingClientDeAutorization(QString login)
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessingSystem::processingCFIUpdate(QByteArray array, ClientHandler *handler)
|
||||
void ProcessingSystem::processingCFIUpdate(QByteArray array)
|
||||
{
|
||||
handler->sendXmlAnswer(array);
|
||||
cfiController->updateCfiXML(array);
|
||||
cfiController->lockAccessToCfiXML();
|
||||
cfiController->unLockAccessToCfiXML();
|
||||
|
||||
QByteArray result;
|
||||
QString path = updateController->getPathAdditionalFile(cfiListFileName);
|
||||
Tools::loadFileXMLtoByteArray(path,result);
|
||||
commonClientServer->sendXmlAnswer(result);
|
||||
}
|
||||
|
||||
void ProcessingSystem::processingEntryUnityClient(ClientHandler *client)
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
ClientHandler* getUnityClientById(int id);
|
||||
void processingClientDeAutorization(QString login);
|
||||
|
||||
void processingCFIUpdate(QByteArray array,ClientHandler *handler);
|
||||
void processingCFIUpdate(QByteArray array);
|
||||
|
||||
void processingEntryUnityClient(ClientHandler *client);
|
||||
void processingExitUnityClient(ClientHandler *client);
|
||||
|
||||
Reference in New Issue
Block a user