Trim mostly-deletion changes (~700 lines) across the modules the Release 2 build compiles: unused telegrams and receiver/handler code in TrainingAreaBase (telegrams, recv_from_dds_aes/fts, ism/main/pdm/position handlers), dead members in SqlBrowser and ProjectDataManagement, unused LtsPluginManager loader paths, LtsSession unit-test, WlsTetra and DdsView cleanups, plus the stale include_directories removal in Lts/CMakeLists.txt. Continues the Release 2 source prune (keep only what the build compiles). Excluded from this commit by design: the machine-specific .envrc (MIGRATE_PIPELINE_ROOT path fix stays uncommitted) and the untracked qt5-before/ reference tree.
61 lines
1.4 KiB
C++
Executable File
61 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;
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|