before interface 13.11.2024

This commit is contained in:
krivoshein
2024-11-13 09:54:35 +03:00
parent f4ca58ce91
commit 61aaac2b1c
62 changed files with 1233 additions and 1047 deletions

View File

@@ -5,10 +5,8 @@
#include <QObject>
#include "instructorsAndTrainees_global.h"
#include "instructor.h"
#include "databaselms.h"
class DataBaseInstructors : QObject
{
Q_OBJECT
@@ -17,19 +15,12 @@ public:
DataBaseInstructors(DataBaseLMS* dbLMS);
~DataBaseInstructors();
void LoadInstructorsPSQL();
bool AuthorizationInstructor(QString login, QString password);
bool deAuthorizationInstructor(QString login);
QList<Instructor> getListInstructors(){ return listOfInstructors; } //Для загрузки
QList<Instructor> getListInstructors();
Instructor getInstructor(int id);
QString getNameInstructorByLogin(QString login);
//QString getAuthorizedInstructorName();
int newInstructor();
int deleteInstructor(int id);
int editInstructor(Instructor instructor);
@@ -37,19 +28,10 @@ public:
bool isAdmin(int id);
bool isArchived(int id);
bool existLogin(QString login);
private:
QString generateDefaultNameInstructor();
bool checkExistNameInstructor(QString name);
QString generateDefaultLoginInstructor();
bool checkExistLoginInstructor(QString login);
private:
QList<Instructor> listOfInstructors;
bool adminMode;
DataBaseLMS* dbLMS;
};