- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.1 KiB
C++
53 lines
1.1 KiB
C++
|
|
|
|
#pragma once
|
|
|
|
#include "client_message_factory.h"
|
|
#include "logger.h"
|
|
#include "ltswebsocketclient_export.h"
|
|
|
|
#include <QAbstractSocket>
|
|
#include <QtCore/QObject>
|
|
|
|
class QThread;
|
|
|
|
namespace LtsWebSocket
|
|
{
|
|
class WebSocketHelper;
|
|
|
|
class LTSWEBSOCKETCLIENT_EXPORT LtsWebSocketClient : public QObject, public ReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit LtsWebSocketClient(AbstractClientMessageFactory* messageFactory, QObject* parent = nullptr);
|
|
~LtsWebSocketClient();
|
|
|
|
void open(const QString& hostname, const unsigned short port);
|
|
|
|
void close();
|
|
|
|
void addReply(ReplyMessage* message) override;
|
|
|
|
signals:
|
|
void connected();
|
|
void disconnected();
|
|
void dataReceived();
|
|
|
|
private slots:
|
|
|
|
void onNewClientMessage(AbstractClientMessage* clientMessage);
|
|
|
|
signals:
|
|
void onOpen(const QString& hostname, const unsigned short port);
|
|
void onClose();
|
|
void onSendTextMessage(const QString& msg);
|
|
|
|
private:
|
|
NGL::INGLLogger& m_logger;
|
|
AbstractClientMessageFactory* m_messageFactory;
|
|
|
|
QThread* m_webSocketHelperThread;
|
|
WebSocketHelper* m_webSocketHelper;
|
|
};
|
|
} // namespace LtsWebSocket
|