The migration pipeline dropped the leading @RDE_HEADER@ comment blocks from 243 target source files (and 2 cmake macros). Restore them byte-for-byte from the legacy Qt5 tree (qt5-before/qt5-legatus-legacy): the exact legacy header is re-inserted at the top of each file (block-comment, '#'-style, line-comment '//' styles, BOM and surrounding blank lines included). File bodies are untouched. Scope: all in-scope target code, unit-test directories excluded. 190 files already kept their legacy header through the migration and were left as-is; legacy files without an RDE header were not given one. Special cases: 3 headers sitting after a '#pragma once' line, 1 BOM-prefixed file, 4 '//'-style TetraIF headers. *.grantlee template files were not in scope and remain untouched. Verified: every restored file is byte-exact (legacy preamble + original body) and the ctest baseline is unchanged (20/23 passed, 3 Not Run as before).
68 lines
1.4 KiB
C++
Executable File
68 lines
1.4 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* The ClientMessage class is an abstract base class for concrete ClientMessage objects
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Dassow, SLST, 2017-12-05
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QtCore/QJsonObject>
|
|
|
|
#include <LtsWebSocket/client_message_factory.h>
|
|
#include <LtsWebSocket/client_message.h>
|
|
|
|
#include "logger.h"
|
|
|
|
namespace TrainingAreaBase
|
|
{
|
|
namespace WebSocketInterface
|
|
{
|
|
class DataManager;
|
|
|
|
namespace ClientMessages
|
|
{
|
|
|
|
|
|
|
|
class ClientMessageFactory final : public LtsWebSocket::AbstractClientMessageFactory
|
|
{
|
|
public:
|
|
explicit ClientMessageFactory(DataManager *dataManager);
|
|
|
|
|
|
|
|
LtsWebSocket::AbstractClientMessage *createMessage(LtsWebSocket::ReplyHandler *client,
|
|
const QString &message);
|
|
|
|
private:
|
|
DataManager *m_dataManager;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ClientMessage : public LtsWebSocket::AbstractClientMessage
|
|
{
|
|
protected:
|
|
explicit ClientMessage(DataManager *dataManager, LtsWebSocket::ReplyHandler *client, const QString &type, const int typeId, const QString &uuid, const QJsonValue &data = QJsonValue());
|
|
|
|
protected:
|
|
DataManager *m_dataManager;
|
|
LOGGER_T m_logger;
|
|
};
|
|
|
|
class SendBiteRequest : public ClientMessage
|
|
{
|
|
public:
|
|
explicit SendBiteRequest(DataManager *dataManager, LtsWebSocket::ReplyHandler *client, const QString &type, const int typeId, const QString &uuid, const QJsonValue &data);
|
|
|
|
void process();
|
|
bool hasValidData() const;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|