mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
ref: change message attributes
This commit is contained in:
@@ -96,13 +96,13 @@ public:
|
||||
isLoggedIn = value;
|
||||
}
|
||||
|
||||
void setAccessType(QString type)
|
||||
void setAccessType(UserType type)
|
||||
{
|
||||
accessType = type;
|
||||
userType = type;
|
||||
}
|
||||
QString getAccessType()
|
||||
UserType getAccessType()
|
||||
{
|
||||
return accessType;
|
||||
return userType;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ private:
|
||||
bool isUnity = false;
|
||||
|
||||
TypeClientAutorization TypeClient;
|
||||
QString accessType = "";
|
||||
UserType userType;
|
||||
};
|
||||
|
||||
#endif // CLIENT_H
|
||||
|
||||
@@ -51,7 +51,9 @@ enum TypeClientAutorization{
|
||||
enum UserType
|
||||
{
|
||||
INSTRUCTOR,
|
||||
TRAINEE
|
||||
TRAINEE,
|
||||
|
||||
NONE = 100
|
||||
};
|
||||
|
||||
class ClientAutorization
|
||||
@@ -104,18 +106,20 @@ public:
|
||||
class ClientMessage
|
||||
{
|
||||
public:
|
||||
QString From;
|
||||
QString To;
|
||||
QString From;//формат"id-type"
|
||||
QString To;//формат"id-type"
|
||||
QString Text;
|
||||
QString Type; //ТИП ЮЗЕРА К КОТОРОМУ ПРИХОДИТ СООБЩЕНИЕ
|
||||
|
||||
//id-0 инструктор
|
||||
//id-1 обучаемый
|
||||
|
||||
ClientMessage(){}
|
||||
ClientMessage(QString from,QString to,QString text,QString userType)
|
||||
ClientMessage(QString from,QString to,QString text)
|
||||
{
|
||||
From = from;
|
||||
To = to;
|
||||
Text = text;
|
||||
Type = userType;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user