Files
RRJServer/DB_IaT/InstructorsAndTrainees/instructors/databaseinstructors.h
2024-11-13 09:54:35 +03:00

39 lines
815 B
C++

#ifndef DATABASEINSTRUCTORS_H
#define DATABASEINSTRUCTORS_H
#include <QList>
#include <QObject>
#include "instructorsAndTrainees_global.h"
#include "instructor.h"
#include "databaselms.h"
class DataBaseInstructors : QObject
{
Q_OBJECT
public:
DataBaseInstructors(DataBaseLMS* dbLMS);
~DataBaseInstructors();
bool AuthorizationInstructor(QString login, QString password);
bool deAuthorizationInstructor(QString login);
QList<Instructor> getListInstructors();
Instructor getInstructor(int id);
int newInstructor();
int deleteInstructor(int id);
int editInstructor(Instructor instructor);
bool isAdmin(int id);
bool isArchived(int id);
bool existLogin(QString login);
private:
bool adminMode;
DataBaseLMS* dbLMS;
};
#endif // DATABASEINSTRUCTORS_H