Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -2,6 +2,7 @@
#include "web_socket_handler.h"
#include <utility>
#include "building_process.h"
#include <QWebSocket>
@@ -23,7 +24,7 @@ WebSocketHandler::WebSocketHandler(const std::shared_ptr<BuildingControlHandler>
WebSocketHandler::~WebSocketHandler()
{
for (const auto& ws : qAsConst(m_webSockets))
for (const auto& ws : std::as_const(m_webSockets))
{
ws->disconnect(this);
}
@@ -71,7 +72,7 @@ bool WebSocketHandler::sendTelegramInternal() const
const QString jsonStr = QString::fromUtf8(QJsonDocument(obj).toJson(QJsonDocument::Compact));
bool ret = false;
for (const auto &wsw : qAsConst(m_webSockets))
for (const auto &wsw : std::as_const(m_webSockets))
{
if (wsw->sendTextMessage(jsonStr))
ret = true;
@@ -108,7 +109,7 @@ bool WebSocketHandler::sendbuildingInfos() const
const QString jsonStr = QString::fromUtf8(QJsonDocument(obj).toJson(QJsonDocument::Compact));
bool ret = false;
for (const auto &wsw : qAsConst(m_webSockets))
for (const auto &wsw : std::as_const(m_webSockets))
{
if (wsw->sendTextMessage(jsonStr))
ret = true;