mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
43 lines
1022 B
C++
43 lines
1022 B
C++
#ifndef CONNECTORTOSERVER_H
|
|
#define CONNECTORTOSERVER_H
|
|
|
|
#include <QObject>
|
|
#include "Core\tcpclient.h"
|
|
#include "Core\dataparser.h"
|
|
#include "Core\sendsystem.h"
|
|
#include "Core\recognizesystem.h"
|
|
|
|
class ConnectorToServer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ConnectorToServer(QObject *parent = nullptr);
|
|
|
|
bool authorizationInstructorLocal(QString login, QString password);
|
|
|
|
private slots:
|
|
|
|
signals:
|
|
void sigSetConnect(ServerSettings* serverSettings,QThread *thread);
|
|
void sigInitializeClient(RecognizeSystem *recognizeSystem,
|
|
SendSystem *sendSystem,
|
|
QThread *thread);
|
|
void sigSendAutorization();
|
|
void sigLoginResult(ServerAuthorization * serverAuth);
|
|
|
|
private:
|
|
void initialize();
|
|
void bindConnection();
|
|
void createObjects();
|
|
|
|
private:
|
|
QThread *connectionThread;
|
|
TCPClient *client;
|
|
DataParser *dataParser;
|
|
SendSystem *sendSystem;
|
|
RecognizeSystem *recognizeSystem;
|
|
|
|
};
|
|
|
|
#endif // CONNECTORTOSERVER_H
|