- LogView: take the complete XmlPatterns (d327c66c4) file set - the
auto-merged mix (XmlPatterns .cpp + validation .hpp) left duplicated
m_logger members and constructor signature mismatches, because the
two lineages reworked the module differently.
- LogView CMakeLists: the cleanup version (separate LogViewLogger
static library, required by tabPluginTetraJson and present in the
Release 2 target list).
- LtsUtilsGuiDds: link ddscore (BUILD_RTI) for the Core::FunctionReply
symbols, as in story/release-2-cleanup.
Full-scope ninja all is green; ctest 20/22 (the two failures,
GrantleeParserSmoke and utils_test, are out of the driver's 46-target
scope and 'Not Run' in the official baseline).
77 lines
880 B
C++
77 lines
880 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);
|
|
|
|
};
|
|
|
|
}
|