mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
87 lines
1.1 KiB
C++
87 lines
1.1 KiB
C++
#ifndef DATAS_H
|
|
#define DATAS_H
|
|
|
|
#include <QString>
|
|
|
|
class ServerSettings{
|
|
public:
|
|
QString Address;
|
|
QString Port;
|
|
QString Language;
|
|
bool isAutoStart;
|
|
};
|
|
|
|
class ServerAuthorization{
|
|
public:
|
|
QString InstructorName;
|
|
QString ClientName;
|
|
bool Result;
|
|
QString AccessType;
|
|
QString Login;
|
|
};
|
|
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_LIST_INSTRUCTORS,
|
|
TYPE_QUERY_GET_ALL_LISTS,
|
|
TYPE_QUERY_NEW_INSTRUCTOR
|
|
};
|
|
|
|
class ClientQueryToDB{
|
|
public:
|
|
TypeQueryToDB typeQuery;
|
|
};
|
|
|
|
class ServerMessage
|
|
{
|
|
public:
|
|
QString Text;
|
|
};
|
|
|
|
class ClientMessage
|
|
{
|
|
public:
|
|
QString Text;
|
|
};
|
|
|
|
class ServerTask
|
|
{
|
|
public:
|
|
QString Text;
|
|
};
|
|
|
|
class ServerNotify
|
|
{
|
|
public:
|
|
QString Code;
|
|
};
|
|
|
|
class ClientNotify
|
|
{
|
|
public:
|
|
QString Code;
|
|
};
|
|
|
|
#endif // DATAS_H
|