Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

@@ -0,0 +1,63 @@
/**
* @RDE_HEADER@
* The ReplyMessage class is an abstract base class for all possible messages which are sent to the client
* $Id$
* $HeadURL$
* $Author$
* Created by Philipp Dassow, SLST, 2017-12-05
*/
#include "reply_message.h"
#include <LtsWebSocket/json_keys.h>
#include "WebSocketInterface/json_keys.h"
#include <QtCore/QUuid>
#include <QtCore/QJsonDocument>
namespace OcBaseDownload
{
namespace WebSocketInterface
{
namespace Messages
{
using namespace JsonKeys;
using namespace LtsWebSocket::JsonKeys;
// ####### ServicePortsInformationRequest begin #######
ServicePortsInformationRequest::ServicePortsInformationRequest(const QString &uuid)
: ReplyMessage(ServiceManagement::WebSocketInterface::JsonKeys::SERVICE_PORTS_INFORMATION_REQUEST(), 6002, uuid)
{}
// ####### ServicePortsInformationRequest end #######
// ####### BaseDlRequest begin #######
/************************************************************
* Attention! TypeId 6006 is negotiated with ESG for ADLER! *
************************************************************/
BaseDlRequest::BaseDlRequest(const QString &uuid, int exerciseId)
: LtsWebSocket::ReplyMessage(BASE_DL_REQUEST(), 6006, uuid) // Todo: Check whether typeId is correct
{
if (0 < exerciseId)
{
QJsonObject data;
data.insert(EXERCISE_ID(), QJsonValue(exerciseId));
m_jsonRepresentation.insert(DATA(), data);
}
}
// ####### BaseDlRequest end #######
// ####### PdfListRequest begin #######
PdfListRequest::PdfListRequest(const QString &uuid, int exerciseId)
: LtsWebSocket::ReplyMessage(PDF_LIST_REQUEST(), 2, uuid) // Todo: Check whether typeId is correct
{
if (0 < exerciseId)
{
QJsonObject data;
data.insert(EXERCISE_ID(), QJsonValue(exerciseId));
m_jsonRepresentation.insert(DATA(), data);
}
}
// ####### PdfListRequest end #######
} // namespace Messages
} // namespace WebSocketInterface
} // namespace OcBaseDownload