mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
GUI.Тип ошибки авторизации
This commit is contained in:
@@ -456,16 +456,33 @@ void RecognizeSystem::xmlParser(QByteArray array)
|
||||
|
||||
if(name == "Code")
|
||||
{
|
||||
if (value == "END")
|
||||
if (value == NOTIFY_SERVER_END)
|
||||
{
|
||||
emit sigSocketDisabled();
|
||||
}
|
||||
|
||||
if(value == "BLOCKED")
|
||||
if(value == NOTIFY_SERVER_BLOCKED)
|
||||
{
|
||||
emit sigServerBlocked();
|
||||
}
|
||||
|
||||
if(value == NOTIFY_ERROR_AUTH_DB)
|
||||
{
|
||||
emit sigErrorAuth(value);
|
||||
}
|
||||
if(value == NOTIFY_ERROR_AUTH_LOGINORPASSWORD)
|
||||
{
|
||||
emit sigErrorAuth(value);
|
||||
}
|
||||
if(value == NOTIFY_ERROR_AUTH_ARCHIVED)
|
||||
{
|
||||
emit sigErrorAuth(value);
|
||||
}
|
||||
if(value == NOTIFY_ERROR_AUTH_ALREADYLOGIN)
|
||||
{
|
||||
emit sigErrorAuth(value);
|
||||
}
|
||||
|
||||
if(value == "HASHSENDCOMPLETE")
|
||||
{
|
||||
emit sigStartCompare();
|
||||
|
||||
@@ -34,6 +34,7 @@ signals:
|
||||
void sigSendDebugLog(QString message);
|
||||
void sigSocketDisabled();
|
||||
void sigServerBlocked();
|
||||
void sigErrorAuth(QString error);
|
||||
void sigAuth(ServerAuthorization *serverAuth);
|
||||
void sigDeAuth(ServerDeAuthorization *serverDeAuth);
|
||||
void sigAnswerQueryToDB(QList<Instructor>* listInstructors,
|
||||
|
||||
@@ -71,6 +71,14 @@ enum PacketType{
|
||||
FREE = 155
|
||||
};
|
||||
|
||||
#define NOTIFY_ERROR_AUTH_DB "ERROR_AUTH_DB"
|
||||
#define NOTIFY_ERROR_AUTH_LOGINORPASSWORD "ERROR_AUTH_LOGINORPASSWORD"
|
||||
#define NOTIFY_ERROR_AUTH_ARCHIVED "ERROR_AUTH_ARCHIVED"
|
||||
#define NOTIFY_ERROR_AUTH_ALREADYLOGIN "ERROR_AUTH_ALREADYLOGIN"
|
||||
#define NOTIFY_SERVER_END "END"
|
||||
#define NOTIFY_SERVER_BLOCKED "BLOCKED"
|
||||
#define SERVER_HELLO "NewConnection. I am server LMS!"
|
||||
|
||||
//Q_DECLARE_METATYPE(PacketType)
|
||||
|
||||
class Tools {
|
||||
|
||||
Reference in New Issue
Block a user