mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
64 lines
1.7 KiB
C++
64 lines
1.7 KiB
C++
#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
|