Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWebSocket/client_message.cpp
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

35 lines
616 B
C++

#include "client_message.h"
#include "json_keys.h"
#include <QJsonDocument>
namespace LtsWebSocket
{
InvalidMessage::InvalidMessage(ReplyHandler* client, const QString& uuid, const QString& errorText)
: AbstractClientMessage(client, QString(), 1, uuid), m_errorText(errorText)
{
}
void InvalidMessage::process()
{
ErrorMessage::ErrorData errorData;
errorData.errorClass = 1;
errorData.errorMessage = m_errorText;
errorData.uuid = m_uuid;
m_client->addReply(new ErrorMessage(errorData));
}
bool InvalidMessage::hasValidData() const
{
return true;
}
} // namespace LtsWebSocket