Модуль DataBaseLMS рефакторинг

This commit is contained in:
2025-08-19 18:05:48 +03:00
parent 194b5129b8
commit 86aa07e89f
4 changed files with 120 additions and 114 deletions

View File

@@ -8,10 +8,8 @@
#include "DataBaseLMS_global.h"
#include "databaselms.h"
class DATABASELMS_EXPORT InterfaceDataBaseLMS : public /*QObject,*/ DataBaseLMS
class DATABASELMS_EXPORT InterfaceDataBaseLMS : public DataBaseLMS
{
//Q_OBJECT
public:
InterfaceDataBaseLMS(QWidget *ownerWidget, QObject *parent = nullptr);
@@ -47,11 +45,7 @@ public:
bool authorizationTrainee(QString login, QString password, QString classroom_name, QString computer_name);
bool deAuthorizationTrainee(QString login);
bool deAuthorizationAllTrainees();
//Регистрация тайминга Обучаемого
int entryTraineeOnSimulator(int id_trainee);
int exitTraineeFromSimulator(int id_trainee);
bool deAuthorizationAllTrainees();
QString getNameTraineeOnComputer(QString computer_name);
Trainee getTraineeOnComputer(QString computer_name);
@@ -71,6 +65,10 @@ public:
bool isArchivedTrainee(int id);
bool isLoggedInTrainee(int id);
//Регистрация тайминга Обучаемого
int entryTraineeOnSimulator(int id_trainee);
int exitTraineeFromSimulator(int id_trainee);
//Группы
@@ -101,7 +99,6 @@ public:
private:
QWidget* ownerWidget;
//QMutex mtxAccess;
};
#endif // INTERFACEDATABASELMS_H