TrayServerLMS рабочая версия

This commit is contained in:
2025-10-27 16:20:34 +03:00
parent d4fd29f373
commit ce65daea2e
16 changed files with 295 additions and 146 deletions

View File

@@ -60,6 +60,7 @@ bool MultiThreadServer::stopServer()
//Закрываем сервер
close();
stateServer = stoped;
Logger::instance().log("SERVER: stop OK");
return true;
}
else
@@ -73,7 +74,7 @@ QMap<int, ClientHandler *> *MultiThreadServer::getClientsMap() const
void MultiThreadServer::updateClientList()
{
serverLmsWidget->slotUpdateListClients();
serverLmsWidget->slot_UpdateListClients();
}
void MultiThreadServer::disableClients()
@@ -130,19 +131,19 @@ void MultiThreadServer::slotDisconnectClient(QString peerAddress, QString peerPo
emit signalStopSendFile();
Logger::instance().log("SERVER: Client " + login + " disconnected");
serverLmsWidget->slotUpdateListClients();
serverLmsWidget->slot_UpdateListClients();
serverLmsWidget->getProcessingSystem()->processingClientDeAutorization(login);
}
void MultiThreadServer::removeClient(int idSocket)
{
clientsMap->remove(idSocket);
serverLmsWidget->slotUpdateListClients();
serverLmsWidget->slot_UpdateListClients();
}
void MultiThreadServer::addClient(qintptr descriptor, ClientHandler *client)
{
(*clientsMap)[descriptor] = client;
serverLmsWidget->slotUpdateListClients();
serverLmsWidget->slot_UpdateListClients();
}