From 5aa24ad242e940a6ca45c9e4a4e08d4a2eecaef8 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Mon, 27 Jan 2025 12:50:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=20=D1=81=D0=B8=D0=B3=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=B2=20=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ServerLMS/Systems/commonclienthandler.cpp | 2 +- ServerLMS/Systems/commonclienthandler.h | 2 +- ServerLMS/Systems/processingsystem.cpp | 24 +++++++++++------------ ServerLMS/Systems/processingsystem.h | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/ServerLMS/Systems/commonclienthandler.cpp b/ServerLMS/Systems/commonclienthandler.cpp index e7e769d..2a84c6f 100644 --- a/ServerLMS/Systems/commonclienthandler.cpp +++ b/ServerLMS/Systems/commonclienthandler.cpp @@ -39,7 +39,7 @@ void CommonClientHandler::sendCurrentVersionToAllClient() } } -void CommonClientHandler::slot_AuthChanged() +void CommonClientHandler::slot_ListsInstructorsTraineesChanged() { //Проходим все открытые сокеты foreach(int idSocket, clientsMap->keys()) diff --git a/ServerLMS/Systems/commonclienthandler.h b/ServerLMS/Systems/commonclienthandler.h index 1abf5b8..0348e05 100644 --- a/ServerLMS/Systems/commonclienthandler.h +++ b/ServerLMS/Systems/commonclienthandler.h @@ -20,7 +20,7 @@ public: void sendNewVersionListToAllClient(); void sendCurrentVersionToAllClient(); - void slot_AuthChanged(); + void slot_ListsInstructorsTraineesChanged(); void slot_sendPacketToAllClients(PacketType packetType); //слот обработки сигнала о готовности нового сообщения на отправку клиенту от мессенджера void slot_msgToClientFromGUI(QString login, QString text); diff --git a/ServerLMS/Systems/processingsystem.cpp b/ServerLMS/Systems/processingsystem.cpp index 9acc099..6c25246 100644 --- a/ServerLMS/Systems/processingsystem.cpp +++ b/ServerLMS/Systems/processingsystem.cpp @@ -22,7 +22,7 @@ void ProcessingSystem::initialize(ServerLMSWidget *server, this->server = server; this->updateController = updateController; - connect(this,&ProcessingSystem::sigAuthChanged,commonClientHandler, &CommonClientHandler::slot_AuthChanged,Qt::AutoConnection); + connect(this,&ProcessingSystem::sigListsInstructorsTraineesChanged,commonClientHandler, &CommonClientHandler::slot_ListsInstructorsTraineesChanged,Qt::AutoConnection); connect(this,&ProcessingSystem::sigUpdateListClients,server, &ServerLMSWidget::slotUpdateListClients,Qt::AutoConnection); connect(this,&ProcessingSystem::sigSetData,updateController,&UpdateController::setDataInfo,Qt::AutoConnection); connect(this,&ProcessingSystem::signal_msgToClientReady,commonClientHandler, &CommonClientHandler::slot_msgToClientFromGUI); @@ -82,7 +82,7 @@ void ProcessingSystem::processingClientAutorization(ClientHandler *client, Clien //logger->addTextToLogger("To Client: " + str); //Извещаем об изменениях в авторизации - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); } void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, ClientDeAutorization clientDeAutorization) @@ -127,7 +127,7 @@ void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, Cli //logger->addTextToLogger("To Client: " + str); //Извещаем об изменениях в авторизации - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); } void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQueryToDB clientQueryToDB, int id, void* data) @@ -162,19 +162,19 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu (*(Instructor*)data).setID(id_new); providerDBLMS->editInstructor(*(Instructor*)data); } - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_DEL_INSTRUCTOR: { providerDBLMS->delInstructor(id); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_EDIT_INSTRUCTOR: { providerDBLMS->editInstructor(*(Instructor*)data); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } @@ -187,19 +187,19 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu (*(Trainee*)data).setID(id_new); providerDBLMS->editTrainee(*(Trainee*)data); } - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_DEL_TRAINEE: { providerDBLMS->delTrainee(id); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_EDIT_TRAINEE: { providerDBLMS->editTrainee(*(Trainee*)data); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } @@ -212,19 +212,19 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu (*(Group*)data).setID(id_new); providerDBLMS->editGroup(*(Group*)data); } - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_DEL_GROUP: { providerDBLMS->delGroup(id); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } case TypeQueryToDB::TYPE_QUERY_EDIT_GROUP: { providerDBLMS->editGroup(*(Group*)data); - emit sigAuthChanged(); + emit sigListsInstructorsTraineesChanged(); break; } diff --git a/ServerLMS/Systems/processingsystem.h b/ServerLMS/Systems/processingsystem.h index ca75dfa..d497eac 100644 --- a/ServerLMS/Systems/processingsystem.h +++ b/ServerLMS/Systems/processingsystem.h @@ -41,7 +41,7 @@ public: void setCurrentDataInfo(DataInfo *dataInfo); signals: void sigUpdateListClients(); - void sigAuthChanged(); + void sigListsInstructorsTraineesChanged(); void sigLogMessage(QString log); void sigAddToMessanger(QString login,QString text); void signal_msgToClientReady(QString login, QString text);