mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Переименовал сигнал изменения авторизации в сервер
This commit is contained in:
@@ -39,7 +39,7 @@ void CommonClientHandler::sendCurrentVersionToAllClient()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CommonClientHandler::slot_AuthChanged()
|
void CommonClientHandler::slot_ListsInstructorsTraineesChanged()
|
||||||
{
|
{
|
||||||
//Проходим все открытые сокеты
|
//Проходим все открытые сокеты
|
||||||
foreach(int idSocket, clientsMap->keys())
|
foreach(int idSocket, clientsMap->keys())
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public:
|
|||||||
|
|
||||||
void sendNewVersionListToAllClient();
|
void sendNewVersionListToAllClient();
|
||||||
void sendCurrentVersionToAllClient();
|
void sendCurrentVersionToAllClient();
|
||||||
void slot_AuthChanged();
|
void slot_ListsInstructorsTraineesChanged();
|
||||||
void slot_sendPacketToAllClients(PacketType packetType);
|
void slot_sendPacketToAllClients(PacketType packetType);
|
||||||
//слот обработки сигнала о готовности нового сообщения на отправку клиенту от мессенджера
|
//слот обработки сигнала о готовности нового сообщения на отправку клиенту от мессенджера
|
||||||
void slot_msgToClientFromGUI(QString login, QString text);
|
void slot_msgToClientFromGUI(QString login, QString text);
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ void ProcessingSystem::initialize(ServerLMSWidget *server,
|
|||||||
this->server = server;
|
this->server = server;
|
||||||
this->updateController = updateController;
|
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::sigUpdateListClients,server, &ServerLMSWidget::slotUpdateListClients,Qt::AutoConnection);
|
||||||
connect(this,&ProcessingSystem::sigSetData,updateController,&UpdateController::setDataInfo,Qt::AutoConnection);
|
connect(this,&ProcessingSystem::sigSetData,updateController,&UpdateController::setDataInfo,Qt::AutoConnection);
|
||||||
connect(this,&ProcessingSystem::signal_msgToClientReady,commonClientHandler, &CommonClientHandler::slot_msgToClientFromGUI);
|
connect(this,&ProcessingSystem::signal_msgToClientReady,commonClientHandler, &CommonClientHandler::slot_msgToClientFromGUI);
|
||||||
@@ -82,7 +82,7 @@ void ProcessingSystem::processingClientAutorization(ClientHandler *client, Clien
|
|||||||
//logger->addTextToLogger("To Client: " + str);
|
//logger->addTextToLogger("To Client: " + str);
|
||||||
|
|
||||||
//Извещаем об изменениях в авторизации
|
//Извещаем об изменениях в авторизации
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, ClientDeAutorization clientDeAutorization)
|
void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, ClientDeAutorization clientDeAutorization)
|
||||||
@@ -127,7 +127,7 @@ void ProcessingSystem::processingClientDeAutorization(ClientHandler *client, Cli
|
|||||||
//logger->addTextToLogger("To Client: " + str);
|
//logger->addTextToLogger("To Client: " + str);
|
||||||
|
|
||||||
//Извещаем об изменениях в авторизации
|
//Извещаем об изменениях в авторизации
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQueryToDB clientQueryToDB, int id, void* data)
|
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);
|
(*(Instructor*)data).setID(id_new);
|
||||||
providerDBLMS->editInstructor(*(Instructor*)data);
|
providerDBLMS->editInstructor(*(Instructor*)data);
|
||||||
}
|
}
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_DEL_INSTRUCTOR:
|
case TypeQueryToDB::TYPE_QUERY_DEL_INSTRUCTOR:
|
||||||
{
|
{
|
||||||
providerDBLMS->delInstructor(id);
|
providerDBLMS->delInstructor(id);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_EDIT_INSTRUCTOR:
|
case TypeQueryToDB::TYPE_QUERY_EDIT_INSTRUCTOR:
|
||||||
{
|
{
|
||||||
providerDBLMS->editInstructor(*(Instructor*)data);
|
providerDBLMS->editInstructor(*(Instructor*)data);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,19 +187,19 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
|
|||||||
(*(Trainee*)data).setID(id_new);
|
(*(Trainee*)data).setID(id_new);
|
||||||
providerDBLMS->editTrainee(*(Trainee*)data);
|
providerDBLMS->editTrainee(*(Trainee*)data);
|
||||||
}
|
}
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_DEL_TRAINEE:
|
case TypeQueryToDB::TYPE_QUERY_DEL_TRAINEE:
|
||||||
{
|
{
|
||||||
providerDBLMS->delTrainee(id);
|
providerDBLMS->delTrainee(id);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_EDIT_TRAINEE:
|
case TypeQueryToDB::TYPE_QUERY_EDIT_TRAINEE:
|
||||||
{
|
{
|
||||||
providerDBLMS->editTrainee(*(Trainee*)data);
|
providerDBLMS->editTrainee(*(Trainee*)data);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,19 +212,19 @@ void ProcessingSystem::processingClientQueryToDB(ClientHandler *client, ClientQu
|
|||||||
(*(Group*)data).setID(id_new);
|
(*(Group*)data).setID(id_new);
|
||||||
providerDBLMS->editGroup(*(Group*)data);
|
providerDBLMS->editGroup(*(Group*)data);
|
||||||
}
|
}
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_DEL_GROUP:
|
case TypeQueryToDB::TYPE_QUERY_DEL_GROUP:
|
||||||
{
|
{
|
||||||
providerDBLMS->delGroup(id);
|
providerDBLMS->delGroup(id);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TypeQueryToDB::TYPE_QUERY_EDIT_GROUP:
|
case TypeQueryToDB::TYPE_QUERY_EDIT_GROUP:
|
||||||
{
|
{
|
||||||
providerDBLMS->editGroup(*(Group*)data);
|
providerDBLMS->editGroup(*(Group*)data);
|
||||||
emit sigAuthChanged();
|
emit sigListsInstructorsTraineesChanged();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
void setCurrentDataInfo(DataInfo *dataInfo);
|
void setCurrentDataInfo(DataInfo *dataInfo);
|
||||||
signals:
|
signals:
|
||||||
void sigUpdateListClients();
|
void sigUpdateListClients();
|
||||||
void sigAuthChanged();
|
void sigListsInstructorsTraineesChanged();
|
||||||
void sigLogMessage(QString log);
|
void sigLogMessage(QString log);
|
||||||
void sigAddToMessanger(QString login,QString text);
|
void sigAddToMessanger(QString login,QString text);
|
||||||
void signal_msgToClientReady(QString login, QString text);
|
void signal_msgToClientReady(QString login, QString text);
|
||||||
|
|||||||
Reference in New Issue
Block a user