- 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>
35 lines
616 B
C++
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
|