mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
before task parser
This commit is contained in:
@@ -2,23 +2,35 @@
|
||||
#define INTERFACEDATABASELMS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QTranslator>
|
||||
|
||||
#include "DataBaseLMS_global.h"
|
||||
#include "databaselms.h"
|
||||
|
||||
class DATABASELMS_EXPORT InterfaceDataBaseLMS : public QObject, DataBaseLMS
|
||||
class DATABASELMS_EXPORT InterfaceDataBaseLMS : public /*QObject*/QWidget, DataBaseLMS
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
InterfaceDataBaseLMS();
|
||||
InterfaceDataBaseLMS(QWidget* parent = nullptr);
|
||||
|
||||
public Q_SLOTS:
|
||||
void slot_LanguageChanged(QString language);
|
||||
|
||||
public:
|
||||
//Соединение
|
||||
bool ConnectionToDB();
|
||||
bool DisConnectionFromDB();
|
||||
bool DBisConnected();
|
||||
|
||||
//Инструкторы
|
||||
|
||||
bool AuthorizationInstructor(QString login, QString password);
|
||||
bool deAuthorizationInstructor(QString login);
|
||||
bool deAuthorizationAllInstructors();
|
||||
|
||||
QString getNameInstructorByLogin(QString login);
|
||||
|
||||
QList<Instructor> getListInstructors();
|
||||
Instructor getInstructor(int id);
|
||||
@@ -29,12 +41,14 @@ public:
|
||||
|
||||
bool isAdminInstructor(int id);
|
||||
bool isArchivedInstructor(int id);
|
||||
bool isLoggedInInstructor(int id);
|
||||
|
||||
|
||||
//Обучаемые
|
||||
|
||||
bool AuthorizationTrainee(QString login, QString password, QString classroom_name, QString computer_name);
|
||||
bool deAuthorizationTrainee(QString login);
|
||||
bool deAuthorizationAllTrainees();
|
||||
|
||||
//void setTasks(QString login, QStringList tasks);
|
||||
QList<Task> getTasksTrainee(int id);
|
||||
@@ -60,8 +74,10 @@ public:
|
||||
int editTrainee(Trainee trainee);
|
||||
|
||||
bool isArchivedTrainee(int id);
|
||||
bool isLoggedInTrainee(int id);
|
||||
|
||||
|
||||
private:
|
||||
QTranslator qtLanguageTranslator;
|
||||
};
|
||||
|
||||
#endif // INTERFACEDATABASELMS_H
|
||||
|
||||
Reference in New Issue
Block a user