#ifndef CONNECTORTOSERVER_H #define CONNECTORTOSERVER_H #include #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