mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
111 lines
1.7 KiB
C++
111 lines
1.7 KiB
C++
#ifndef DATAS_H
|
|
#define DATAS_H
|
|
|
|
#include <QString>
|
|
#include "typeQueryToDB.h"
|
|
|
|
class ServerSettings{
|
|
public:
|
|
QString Address;
|
|
QString Port;
|
|
QString Language;
|
|
bool isAutoStart;
|
|
};
|
|
|
|
class ServerAuthorization{
|
|
public:
|
|
QString InstructorName;
|
|
QString ClientName;
|
|
bool Result;
|
|
QString AccessType;
|
|
QString Login;
|
|
QString Id;
|
|
};
|
|
class ServerDeAuthorization{
|
|
public:
|
|
bool Result;
|
|
QString Login;
|
|
};
|
|
|
|
enum TypeClientAutorization{
|
|
TYPE_SIMPLE = 0,
|
|
TYPE_GUI = 10
|
|
};
|
|
|
|
class ClientAutorization{
|
|
public:
|
|
QString Login;
|
|
QString Password;
|
|
TypeClientAutorization TypeClient;
|
|
};
|
|
|
|
class ClientDeAutorization{
|
|
public:
|
|
QString Login;
|
|
};
|
|
/*
|
|
enum TypeQueryToDB{
|
|
TYPE_QUERY_GET_ALL_LISTS,
|
|
TYPE_QUERY_NEW_INSTRUCTOR,
|
|
TYPE_QUERY_DEL_INSTRUCTOR,
|
|
TYPE_QUERY_EDIT_INSTRUCTOR,
|
|
TYPE_QUERY_NEW_GROUP,
|
|
TYPE_QUERY_DEL_GROUP,
|
|
TYPE_QUERY_EDIT_GROUP,
|
|
TYPE_QUERY_NEW_TRAINEE,
|
|
TYPE_QUERY_DEL_TRAINEE,
|
|
TYPE_QUERY_EDIT_TRAINEE,
|
|
TYPE_QUERY_ASSIGN_TASK_AMM_TO_TRAINEE,
|
|
TYPE_QUERY_ASSIGN_TASK_FIM_TO_TRAINEE
|
|
};
|
|
*/
|
|
|
|
class ClientQueryToDB{
|
|
public:
|
|
TypeQueryToDB typeQuery;
|
|
};
|
|
|
|
class ServerMessage
|
|
{
|
|
public:
|
|
QString Text;
|
|
};
|
|
|
|
class ClientMessage
|
|
{
|
|
public:
|
|
QString fromId;//формат id-typeId
|
|
QString toId;//формат id-typeId
|
|
QString Text;
|
|
|
|
//TypeId
|
|
//0 - инструктор, 1 - обучаемый
|
|
ClientMessage(){}
|
|
ClientMessage(QString fromId, QString toId, QString text)
|
|
{
|
|
this->fromId = fromId;
|
|
this->toId = toId;
|
|
this->Text = text;
|
|
}
|
|
};
|
|
|
|
class ServerTask
|
|
{
|
|
public:
|
|
QString Text;
|
|
};
|
|
|
|
class ServerNotify
|
|
{
|
|
public:
|
|
QString Code;
|
|
};
|
|
|
|
class ClientNotify
|
|
{
|
|
public:
|
|
QString Code;
|
|
};
|
|
|
|
#endif // DATAS_H
|