Files
qt6-migration-pipeline/TetraIF/LogView/LogViewInjectionThread.hpp
T
2026-07-14 12:07:36 +02:00

80 lines
887 B
C++

#pragma once
#include <QtCore/QThread>
#include "logger.h"
class QTcpSocket;
class QTimer;
namespace N_LogView
{
class LogViewTelegram;
class LogViewInjectionThread : public QThread
{
Q_OBJECT
public:
LogViewInjectionThread();
void run();
void setPort(uint16_t port);
bool isSendingPossible() const;
void sendTelegram(LogViewTelegram* a_telegram, const bool a_doSendAsCentralTelegram);
protected:
bool m_DoStartConnection;
bool m_SendingPossible;
QString m_Hostname;
int m_Port;
QTcpSocket *m_Socket;
QTimer *m_Timer;
private:
NGL::INGLLogger &m_logger;
protected:
protected slots:
void tryToConnect();
void doConnect();
void doDisconnect();
public:
signals:
void updateStatus(const QString& a_picName, const QString& a_toolTipText);
};
}