mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user