mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
47 lines
1.0 KiB
C++
47 lines
1.0 KiB
C++
#ifndef TCPCLIENT_H
|
|
#define TCPCLIENT_H
|
|
|
|
#include <QObject>
|
|
#include <QTcpSocket>
|
|
#include <QHostAddress>
|
|
#include <QDataStream>
|
|
#include <QTcpServer>
|
|
#include <QFile>
|
|
#include <QCoreApplication>
|
|
#include "Core\recognizesystem.h"
|
|
#include "Core\tools.h"
|
|
#include "Core\UpdateController.h"
|
|
#include "Core\externalexecuter.h"
|
|
|
|
class UpdateController;
|
|
class RecognizeSystem;
|
|
|
|
class TCPClient : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TCPClient(QObject *parent = 0);
|
|
void Initialize(UpdateController *updateController,RecognizeSystem *recognize,ExternalExecuter *externalExecuter);
|
|
void SetConnect(ServerSettings *serverSettings);
|
|
void WaitWrites();
|
|
QTcpSocket* GetSocket();
|
|
~TCPClient();
|
|
|
|
signals:
|
|
void onSendDebugLog(QString message);
|
|
|
|
public slots:
|
|
void onMessageEntered(QString message);
|
|
|
|
private slots:
|
|
void onReadyRead();
|
|
|
|
private:
|
|
QTcpSocket *socket;
|
|
UpdateController *updateController;
|
|
RecognizeSystem *recognizeSystem;
|
|
ExternalExecuter * externalExecuter;
|
|
};
|
|
|
|
#endif // TCPCLIENT_H
|