Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
+40
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QThread>
|
||||
#include <QtNetwork/QAbstractSocket>
|
||||
namespace NGL {
|
||||
class INGLLogger;
|
||||
}
|
||||
class QTcpSocket;
|
||||
|
||||
|
||||
|
||||
namespace HighLevelArchitecture {
|
||||
|
||||
class SocketReader : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SocketReader(QObject *parent = nullptr);
|
||||
bool init(const QString &host, quint16 port, int id);
|
||||
void stopThread();
|
||||
~SocketReader();
|
||||
|
||||
signals:
|
||||
void newData(const QByteArray &content, int id);
|
||||
|
||||
protected:
|
||||
QTcpSocket *m_socket;
|
||||
int m_hlaRequestIdentifier;
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
private slots:
|
||||
void onReadyRead();
|
||||
void onSocketError(const QAbstractSocket::SocketError &error);
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user