#ifndef INSTRUCTORSANDTRAINEES_H #define INSTRUCTORSANDTRAINEES_H #include "databaselms.h" #include "instructorsAndTrainees_global.h" #include "computersLocations.h" #include "databasetrainees.h" #include "databaseinstructors.h" #include 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