#ifndef INSTRUCTORSANDTRAINEESWIDGET_H #define INSTRUCTORSANDTRAINEESWIDGET_H #include #include "instructorsAndTrainees_global.h" #include "databasetrainees.h" #include "databaseinstructors.h" #include "viewertrainees.h" #include "viewerinstructors.h" #include "interfacedatabaselms.h" namespace Ui { class InstructorsAndTraineesWidget; } class INSTRUCTORSANDTRAINEES_EXPORT InstructorsAndTraineesWidget : public QWidget { Q_OBJECT public: explicit InstructorsAndTraineesWidget(QWidget *parent = nullptr); ~InstructorsAndTraineesWidget(); public: //Авторизация инструктора локальная bool authorizationInstructorLocal(QWidget* parent = nullptr); bool authorizationIsCompleted(); //Авторизация обучаемого на клиенте bool authorizationTrainee(QString login, QString password, QString classroom_name = QStringLiteral(""), QString computer_name = QStringLiteral("")); bool deAuthorizationTrainee(QString login); //Авторизация инструктора на клиенте bool authorizationInstructor(QString login, QString password); bool deAuthorizationInstructor(QString login); private: Ui::InstructorsAndTraineesWidget *ui; DataBaseLMS* dbLMS; DataBaseTrainees* dataBaseTrainees; DataBaseInstructors* dataBaseInstructors; ViewerTrainees* m_viewerTrainees; ViewerInstructors* m_viewerInstructors; bool adminMode; QString loginInstructorLoggedInLocal; }; #endif // INSTRUCTORSANDTRAINEESWIDGET_H