mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
refact0
This commit is contained in:
@@ -30,7 +30,7 @@ void SendSystem::sendDisable()
|
||||
stream << data;
|
||||
socket->waitForBytesWritten();
|
||||
}
|
||||
|
||||
/*
|
||||
void SendSystem::sendXMLmsgGUItoServer(QByteArray array)
|
||||
{
|
||||
qDebug() << "SendSystem" << QThread::currentThreadId();
|
||||
@@ -41,6 +41,7 @@ void SendSystem::sendXMLmsgGUItoServer(QByteArray array)
|
||||
stream << array;
|
||||
socket->waitForBytesWritten(6000);
|
||||
}
|
||||
*/
|
||||
|
||||
void SendSystem::sendFileBlock(QString path)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class SendSystem :public QObject
|
||||
public:
|
||||
explicit SendSystem(QObject* parent = nullptr);
|
||||
void setSocket(QTcpSocket *socket);
|
||||
void sendXMLmsgGUItoServer(QByteArray array);
|
||||
//void sendXMLmsgGUItoServer(QByteArray array);
|
||||
void sendDisable();
|
||||
void sendFileBlock(QString path);
|
||||
void sendFolderBlock(QString path);
|
||||
|
||||
@@ -47,7 +47,7 @@ bool ConnectorToServer::authorizationInstructorLocal(QString login, QString pass
|
||||
isLoggedIn = true;
|
||||
|
||||
QByteArray array = dataParser->createAuthMessage(autorization);
|
||||
emit signal_sendXMLmsgGUItoServer(array);
|
||||
emit sigSendAnswerToServer(array);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -64,7 +64,7 @@ bool ConnectorToServer::deAuthorizationInstructorLocal(QString login)
|
||||
isLoggedIn = false;
|
||||
|
||||
QByteArray array = dataParser->createDeAuthMessage(deAutorization);
|
||||
emit signal_sendXMLmsgGUItoServer(array);
|
||||
emit sigSendAnswerToServer(array);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -80,7 +80,7 @@ bool ConnectorToServer::sendQueryToDB(TypeQueryToDB typeQuery, int id, void* dat
|
||||
queryToDB->typeQuery = typeQuery;
|
||||
|
||||
QByteArray array = dataParser->createQueryToDBMessage(queryToDB, id, data);
|
||||
emit signal_sendXMLmsgGUItoServer(array);
|
||||
emit sigSendAnswerToServer(array);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ bool ConnectorToServer::sendMessage(ClientMessage clientMessage)
|
||||
return false;
|
||||
}
|
||||
QByteArray array = dataParser->createMessage(clientMessage);
|
||||
emit signal_sendXMLmsgGUItoServer(array);
|
||||
emit sigSendAnswerToServer(array);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -111,7 +111,7 @@ bool ConnectorToServer::sendQueryTasksXML(QString type)
|
||||
}
|
||||
|
||||
QByteArray array = dataParser->createQueryTasksXMLMessage(type);
|
||||
emit signal_sendXMLmsgGUItoServer(array);
|
||||
emit sigSendAnswerToServer(array);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -466,7 +466,7 @@ void ConnectorToServer::bindConnection()
|
||||
connect(this,&ConnectorToServer::sigSetConnect,client,&TCPClient::setConnect,Qt::AutoConnection);
|
||||
connect(this,&ConnectorToServer::sigStopConnect,client,&TCPClient::setDisconnect,Qt::AutoConnection);
|
||||
|
||||
connect(this,&ConnectorToServer::signal_sendXMLmsgGUItoServer,sendSystem,&SendSystem::sendXMLmsgGUItoServer);
|
||||
//Sconnect(this,&ConnectorToServer::signal_sendXMLmsgGUItoServer,sendSystem,&SendSystem::sendXMLmsgGUItoServer);
|
||||
connect(this,&ConnectorToServer::sigSendAnswerToServer,sendSystem,&SendSystem::sendXMLAnswer,Qt::AutoConnection);
|
||||
|
||||
connect(recognizeSystem,&RecognizeSystem::sigAuth,this,&ConnectorToServer::slot_Auth); // ::sigLoginResult);
|
||||
|
||||
@@ -100,7 +100,7 @@ signals:
|
||||
SendSystem *sendSystem,
|
||||
QThread *thread);
|
||||
|
||||
void signal_sendXMLmsgGUItoServer(QByteArray array);
|
||||
//void signal_sendXMLmsgGUItoServer(QByteArray array);
|
||||
|
||||
void sigLoginResult(ServerAuthorization * serverAuth);
|
||||
void sigDeLoginResult(ServerDeAuthorization * serverDeAuth);
|
||||
|
||||
Reference in New Issue
Block a user