mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
внедрение мессенджера
This commit is contained in:
@@ -406,6 +406,12 @@ void ConnectorToServer::slot_HashReady()
|
||||
sendQueryTasksXML("amm");
|
||||
}
|
||||
|
||||
void ConnectorToServer::slot_Auth(ServerAuthorization *serverAuth)
|
||||
{
|
||||
this->serverAuth = *serverAuth;
|
||||
emit sigLoginResult(serverAuth);
|
||||
}
|
||||
|
||||
void ConnectorToServer::initialize()
|
||||
{
|
||||
createObjects();
|
||||
@@ -426,7 +432,7 @@ void ConnectorToServer::bindConnection()
|
||||
connect(this,&ConnectorToServer::signal_sendXMLmsgGUItoServer,sendSystem,&SendSystem::sendXMLmsgGUItoServer);
|
||||
connect(this,&ConnectorToServer::sigSendAnswerToServer,sendSystem,&SendSystem::sendXMLAnswer,Qt::AutoConnection);
|
||||
|
||||
connect(recognizeSystem,&RecognizeSystem::sigAuth,this,&ConnectorToServer::sigLoginResult);
|
||||
connect(recognizeSystem,&RecognizeSystem::sigAuth,this,&ConnectorToServer::slot_Auth); // ::sigLoginResult);
|
||||
connect(recognizeSystem,&RecognizeSystem::sigDeAuth,this,&ConnectorToServer::sigDeLoginResult);
|
||||
connect(recognizeSystem,&RecognizeSystem::signal_ReceiveMessage,this,&ConnectorToServer::signal_receiveMessage,Qt::AutoConnection);
|
||||
connect(recognizeSystem,&RecognizeSystem::sigShowServerDataList,this,&ConnectorToServer::showServerList);
|
||||
|
||||
@@ -69,6 +69,7 @@ public:
|
||||
bool getIsConnected();
|
||||
|
||||
SendSystem *getSendSystem() const;
|
||||
ServerAuthorization getServerAuth(){return serverAuth;}
|
||||
|
||||
bool sendClientNotify(QString command);
|
||||
public slots:
|
||||
@@ -88,6 +89,8 @@ public slots:
|
||||
|
||||
void slot_HashReady();
|
||||
|
||||
void slot_Auth(ServerAuthorization * serverAuth);
|
||||
|
||||
signals:
|
||||
void sigSetConnect(ServerSettings* serverSettings,QThread *thread);
|
||||
void sigStopConnect();
|
||||
@@ -148,6 +151,8 @@ private:
|
||||
|
||||
ServerSettings serverSettings;
|
||||
bool isLoggedIn;
|
||||
|
||||
ServerAuthorization serverAuth;
|
||||
};
|
||||
|
||||
#endif // CONNECTORTOSERVER_H
|
||||
|
||||
Reference in New Issue
Block a user