mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
feat: change message and contac list attribute
This commit is contained in:
@@ -48,6 +48,12 @@ enum TypeClientAutorization{
|
||||
TYPE_GUI = 10
|
||||
};
|
||||
|
||||
enum UserType
|
||||
{
|
||||
INSTRUCTOR,
|
||||
TRAINEE
|
||||
};
|
||||
|
||||
class ClientAutorization
|
||||
{
|
||||
public:
|
||||
@@ -101,13 +107,15 @@ public:
|
||||
QString From;
|
||||
QString To;
|
||||
QString Text;
|
||||
QString Type; //ТИП ЮЗЕРА К КОТОРОМУ ПРИХОДИТ СООБЩЕНИЕ
|
||||
|
||||
ClientMessage(){}
|
||||
ClientMessage(QString from,QString to,QString text)
|
||||
ClientMessage(QString from,QString to,QString text,QString userType)
|
||||
{
|
||||
From = from;
|
||||
To = to;
|
||||
Text = text;
|
||||
Type = userType;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
9
ServerLMS/Data/userType.h
Normal file
9
ServerLMS/Data/userType.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef USERTYPE_H
|
||||
#define USERTYPE_H
|
||||
|
||||
enum UserType{
|
||||
INSTRUCTOR,
|
||||
TRAINEES
|
||||
};
|
||||
|
||||
#endif // USERTYPE_H
|
||||
Reference in New Issue
Block a user