mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
#ifndef DATABASETRAINEES_H
|
|
#define DATABASETRAINEES_H
|
|
|
|
#include "instructorsAndTrainees_global.h"
|
|
#include "trainee.h"
|
|
#include "group.h"
|
|
|
|
#include "databaselms.h"
|
|
|
|
#include <QList>
|
|
#include <QColor>
|
|
#include <QObject>
|
|
|
|
class DataBaseTrainees : QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
DataBaseTrainees(DataBaseLMS* dbLMS);
|
|
~DataBaseTrainees();
|
|
|
|
//void LoadTraineesGroupsPSQL();
|
|
|
|
void transactionBegin();
|
|
void transactionEnd();
|
|
|
|
bool AuthorizationTrainee(QString login, QString password, QString classroom_name, QString computer_name);
|
|
bool deAuthorizationTrainee(QString login);
|
|
|
|
//void setTasks(QString login, QStringList tasks);
|
|
QList<Task> getTasks(int id);
|
|
|
|
QString getNameTraineeOnComputer(QString computer_name);
|
|
Trainee getTraineeOnComputer(QString computer_name);
|
|
|
|
QString getNameTraineeByLogin(QString login);
|
|
|
|
QList<Trainee> getListTraineesInGroup(int id);
|
|
QList<Group> getListGroups();
|
|
QList<Trainee> getListTrainees();
|
|
|
|
Trainee getTrainee(int trainee_id);
|
|
Group getGroup(int group_id);
|
|
|
|
int newGroup();
|
|
int deleteGroup(int id);
|
|
int editGroup(Group group);
|
|
|
|
int newTrainee(int id_group);
|
|
int deleteTrainee(int id);
|
|
int editTrainee(Trainee trainee);
|
|
|
|
bool isArchived(int id);
|
|
|
|
private:
|
|
bool adminMode;
|
|
DataBaseLMS* dbLMS;
|
|
};
|
|
|
|
#endif // DATABASETRAINEES_H
|