bugfix: versions

* refactoring call update after update from client
* refactoring common client deAuth
* add packet for notify hash calculate start
* bugfix update static data
This commit is contained in:
semenov
2025-07-23 12:32:38 +03:00
parent 82b605ae50
commit 71215cf5ec
18 changed files with 297 additions and 171 deletions

View File

@@ -8,7 +8,6 @@
#include "serverlmswidget.h"
#include "ui_serverlmswidget.h"
ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ServerLMSWidget),
@@ -84,20 +83,6 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
qDebug() << "MAIN THREAD: " << QThread::currentThreadId();
}
void ServerLMSWidget::autorizationHandler(QString login)
{
//Отмена авторизации в БД
if(providerDBLMS->deAuthorizationTrainee(login))
{//Деавторизовался обучаемый
}
else if(providerDBLMS->deAuthorizationInstructor(login))
{//Деавторизовался инструктор
}
}
void ServerLMSWidget::setError(int code)
{
errorCode = code;
@@ -152,7 +137,7 @@ bool ServerLMSWidget::stopServer()
emit sigLog("To Client: " + str);
//slotDisconnectClient(clientsMap[idSocket]->get, QString peerPort)
autorizationHandler(clientsMap[idSocket]->getClient()->getLogin());
processingSystem->processingClientDeAutorization(clientsMap[idSocket]->getClient()->getLogin());
clientsMap[idSocket]->sigSocketClose();
//clientsMap.remove(idSocket);
@@ -232,7 +217,6 @@ void ServerLMSWidget::slotAddToLog(QString msg)
ui->listWidgetLogger->scrollToBottom();
}
void ServerLMSWidget::on_btnStartServer_clicked()
{
if(startServer())