51 lines
1.5 KiB
C++
Executable File
51 lines
1.5 KiB
C++
Executable File
/**
|
|
* @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"
|
|
|
|
namespace FileManagement
|
|
{
|
|
namespace WebSocketInterface
|
|
{
|
|
namespace ReplyMessages
|
|
{
|
|
using namespace JsonKeys;
|
|
using namespace LtsWebSocket::JsonKeys;
|
|
|
|
|
|
// ####### FolderBaseData begin #######
|
|
FolderBaseData::FolderBaseData(const QJsonArray &data, const QString &uuid)
|
|
: LtsWebSocket::ReplyMessage(FOLDER_BASE_DATA(), 1, uuid) // Todo: Check whether typeId is correct
|
|
{
|
|
m_jsonRepresentation.insert(DATA(), data);
|
|
}
|
|
// ####### FolderBaseData end #######
|
|
|
|
// ####### FileContentBaseData begin #######
|
|
FileContentBaseData::FileContentBaseData(const QJsonArray &data, const QString &uuid)
|
|
: LtsWebSocket::ReplyMessage(FILE_CONTENT_BASE_DATA(), 2, uuid) // Todo: Check whether typeId is correct
|
|
{
|
|
m_jsonRepresentation.insert(DATA(), data);
|
|
}
|
|
// ####### FileContentBaseData end #######
|
|
|
|
// ####### PdfListData begin #######
|
|
PdfListData::PdfListData(const QJsonArray &data, const QString &uuid)
|
|
: LtsWebSocket::ReplyMessage(PDF_LIST_DATA(), 3, uuid) // Todo: Check whether typeId is correct
|
|
{
|
|
m_jsonRepresentation.insert(DATA(), data);
|
|
}
|
|
// ####### PdfListData end #######
|
|
|
|
} // namespace ReplyMessages
|
|
} // namespace WebSocketInterface
|
|
} // namespace FileManagement
|