mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-29 20:05:38 +03:00
PSQL 30.10.2024
This commit is contained in:
63
DBXML/InstructorsAndTrainees/instructorsAndTrainees.h
Normal file
63
DBXML/InstructorsAndTrainees/instructorsAndTrainees.h
Normal file
@@ -0,0 +1,63 @@
|
||||
#ifndef INSTRUCTORSANDTRAINEES_H
|
||||
#define INSTRUCTORSANDTRAINEES_H
|
||||
|
||||
#include "databaselms.h"
|
||||
|
||||
#include "instructorsAndTrainees_global.h"
|
||||
#include "computersLocations.h"
|
||||
#include "databasetrainees.h"
|
||||
#include "databaseinstructors.h"
|
||||
#include <QWidget>
|
||||
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT InstructorsAndTrainees : QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
InstructorsAndTrainees(QString appPath);
|
||||
~InstructorsAndTrainees();
|
||||
|
||||
void EditTrainees(QWidget* parent = nullptr);
|
||||
|
||||
void EditInstructors(QWidget* parent = nullptr);
|
||||
|
||||
void addComputer(QString computer, QString location)
|
||||
{
|
||||
computersLocations.addComputer(computer, location);
|
||||
}
|
||||
|
||||
DataBaseTrainees* getDataBaseTrainees()
|
||||
{
|
||||
return dataBaseTrainees;
|
||||
}
|
||||
|
||||
DataBaseInstructors* getDataBaseInstructors()
|
||||
{
|
||||
return dataBaseInstructors;
|
||||
}
|
||||
|
||||
//Авторизация инструктора локальная
|
||||
bool authorizationInstructor(QWidget* parent = nullptr);
|
||||
|
||||
//Авторизация обучаемого на клиенте
|
||||
bool authorizationTrainee(QString login, QString password, QString learnClass, QString computer);
|
||||
bool deAuthorizationTrainee(QString login);
|
||||
|
||||
//Авторизация инструктора на клиенте
|
||||
bool authorizationInstructor(QString login, QString password);
|
||||
bool deAuthorizationInstructor(QString login);
|
||||
|
||||
private:
|
||||
|
||||
ComputersLocations computersLocations; //Компьютеры и их размещение по классам
|
||||
|
||||
DataBaseLMS* dbLMS;
|
||||
|
||||
DataBaseTrainees* dataBaseTrainees;
|
||||
|
||||
DataBaseInstructors* dataBaseInstructors;
|
||||
|
||||
QString appFilePath;
|
||||
};
|
||||
|
||||
#endif // INSTRUCTORSANDTRAINEES_H
|
||||
Reference in New Issue
Block a user