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

@@ -7,6 +7,7 @@
*/
#include "handler_sounds.h"
#include <utility>
#include "settings.h"
#include "dds_handler.h"
#include <QJsonObject>
@@ -63,7 +64,7 @@ bool HandlerSounds::init()
return false;
}
for (const Database::SomSound &data : qAsConst(soundVec))
for (const Database::SomSound &data : std::as_const(soundVec))
{
static int index = 0;
DEBUG_LOG(m_logger) << "SomSound from DB data: id=" << data.id
@@ -632,7 +633,7 @@ int HandlerSounds::getAssetId(const QString &hostName)
int HandlerSounds::getSoundIndex(const SoundCategory &category, const QString &name)
{
for (const SoundStr &soundName: qAsConst(m_soundNames))
for (const SoundStr &soundName: std::as_const(m_soundNames))
if ((category == soundName.category) && (name == soundName.name))
return soundName.index;
return -1;
@@ -640,7 +641,7 @@ int HandlerSounds::getSoundIndex(const SoundCategory &category, const QString &n
int HandlerSounds::getDuration(const SoundManagement::SoundCategory& category,const int soundId)
{
for (const SoundStr &soundName: qAsConst(m_soundNames))
for (const SoundStr &soundName: std::as_const(m_soundNames))
{
if ( soundId == soundName.soundId
&& category == soundName.category)
@@ -682,7 +683,7 @@ void HandlerSounds::handleSoundReport(const QString &json, const QString &host)
// TODO Pruefen, ob in der lokalen Verwaltung noch Sounds sind, die geloescht und vom DDS-Bus genommen
// werden muessen.
for (const QJsonValue &valSound : qAsConst(sounds))
for (const QJsonValue &valSound : std::as_const(sounds))
{
const QJsonObject &sound = valSound.toObject();
bool found = false;
@@ -705,7 +706,7 @@ void HandlerSounds::handleSoundReport(const QString &json, const QString &host)
<< " soundId=" << soundId
<< " time=" << soundState.sampleTime();
for (const SoundManagement::SoundState& item : qAsConst(m_soundStates))
for (const SoundManagement::SoundState& item : std::as_const(m_soundStates))
{
if ( (item.egcuId() == soundState.egcuId()) &&
(item.category() == soundState.category()) &&