- tests/CMakeLists.txt: Wrap migration_tests in RELEASE_BUILD conditional - LogViewModels.cpp: Change BackgroundColorRole to BackgroundRole for Qt6 - LogViewField.hpp/cpp: Add m_logger member variable - LogViewInjectionThread.hpp/cpp: Add m_logger member variable - LogViewGui.hpp/cpp: Add m_logger member variable, fix QString::split() usage - LogViewTetraTelegramsParser.hpp: Add m_logger, change QStringRef to QStringView - LogViewTelegramEdit.hpp: Fix QModelIndex include path (QtGui→QtCore) - LogViewModels.hpp: Fix QAbstractTableModel include path (QtGui→QtCore) - PrtCnv/CMakeLists.txt: Add CMAKE_CURRENT_BINARY_DIR for export header, exclude LastTest from release - CoPrtCnv/CMakeLists.txt: Add PrtCnv include paths for prtcnvlib_export.h - Lts/Common/CodeGen/CMakeLists.txt: Add CMAKE_CURRENT_BINARY_DIR for export header - Lts/Proxies/TrainingAreaBase/Plugins/CMakeLists.txt: Exclude WlsTetra from release scope Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
77 lines
871 B
C++
77 lines
871 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:
|
|
|
|
Logger& m_logger;
|
|
bool m_DoStartConnection;
|
|
bool m_SendingPossible;
|
|
QString m_Hostname;
|
|
int m_Port;
|
|
QTcpSocket *m_Socket;
|
|
|
|
QTimer *m_Timer;
|
|
|
|
private:
|
|
protected:
|
|
protected slots:
|
|
void tryToConnect();
|
|
|
|
|
|
void doConnect();
|
|
|
|
|
|
void doDisconnect();
|
|
|
|
public:
|
|
signals:
|
|
|
|
|
|
void updateStatus(const QString& a_picName, const QString& a_toolTipText);
|
|
|
|
};
|
|
|
|
}
|