Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
@@ -3,6 +3,7 @@
|
||||
|
||||
|
||||
#include "building_process.h"
|
||||
#include <utility>
|
||||
#include "main_handler.h"
|
||||
#include "BuildingControlUnit/ControlEffects/xmlreader.h"
|
||||
|
||||
@@ -30,7 +31,7 @@ QStringList idsToStringList(const std::vector< int32_t >& ids)
|
||||
{
|
||||
QStringList sl;
|
||||
sl.reserve(ids.size());
|
||||
for (const auto &id : qAsConst(ids))
|
||||
for (const auto &id : std::as_const(ids))
|
||||
sl.append(QString::number(id));
|
||||
return sl;
|
||||
}
|
||||
@@ -299,7 +300,7 @@ bool BuildingProcess::setEffectStates( const int assetId, const QByteArray &prop
|
||||
|
||||
if (assetId > 0)
|
||||
{
|
||||
for (const EgcuInfo &egcu : qAsConst(m_buildingInfo.egcus))
|
||||
for (const EgcuInfo &egcu : std::as_const(m_buildingInfo.egcus))
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "EGCU: " << egcu.assetName
|
||||
<< " assetId=" << egcu.assetId
|
||||
@@ -359,7 +360,7 @@ bool BuildingProcess::setEffectStates( const int assetId, const QByteArray &prop
|
||||
bcuEffectState.effectOverride = static_cast<BuildingControlUnit::BcuEffectOverride>(value);
|
||||
tele.effectStates.append(bcuEffectState);
|
||||
}
|
||||
for (int relayId : qAsConst(allRelayIds))
|
||||
for (int relayId : std::as_const(allRelayIds))
|
||||
{
|
||||
BuildingControlUnit::BcuEffectState bcuEffectState;
|
||||
bcuEffectState.id = relayId;
|
||||
@@ -542,7 +543,7 @@ bool BuildingProcess::switchRelay(const SwitchRelayRequest &data)
|
||||
<< data.state();
|
||||
|
||||
|
||||
for (const EgcuInfo &egcu : qAsConst(m_buildingInfo.egcus))
|
||||
for (const EgcuInfo &egcu : std::as_const(m_buildingInfo.egcus))
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "EGCU: " << egcu.assetName
|
||||
<< " assetId=" << egcu.assetId
|
||||
@@ -810,7 +811,7 @@ void BuildingProcess::handleReconnectEgcu(const QString &segment)
|
||||
|
||||
DEBUG_LOG(m_logger) << "handleReconnectEgcu segment =" << segment;
|
||||
|
||||
for (const EgcuInfo &egcu : qAsConst(m_buildingInfo.egcus))
|
||||
for (const EgcuInfo &egcu : std::as_const(m_buildingInfo.egcus))
|
||||
{
|
||||
if (QString::compare(egcu.hostname, segment, Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
@@ -867,7 +868,7 @@ void BuildingProcess::handleRelayState(BuildingControlUnit::Json::Telegrams::Rel
|
||||
}
|
||||
|
||||
|
||||
for (const EgcuInfo &egcu : qAsConst(m_buildingInfo.egcus))
|
||||
for (const EgcuInfo &egcu : std::as_const(m_buildingInfo.egcus))
|
||||
{
|
||||
if (QString::compare(egcu.hostname,tel->segment, Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
@@ -883,7 +884,7 @@ void BuildingProcess::handleRelayState(BuildingControlUnit::Json::Telegrams::Rel
|
||||
}
|
||||
|
||||
RelayStateItem item;
|
||||
for (const auto &info : qAsConst(tel->relayStates))
|
||||
for (const auto &info : std::as_const(tel->relayStates))
|
||||
{
|
||||
item.id(info.id);
|
||||
item.state(info.state);
|
||||
|
||||
Reference in new issue
Block a user