This commit is contained in:
2025-12-28 20:18:28 +01:00
parent 94323e7409
commit 517dcceb81
6 changed files with 826 additions and 7 deletions

View File

@@ -30,6 +30,7 @@
***************************************************************************/
#include "qassert.h"
#include <bcmainwindow.h>
#include <bcitemdelegate.h>
#include <ui_bcmainwindow.h>
@@ -157,7 +158,7 @@ void BCMainWindow::initMainWindow()
connect(this, &BCMainWindow::sendValueCommand, &_transmitter, &BCTransmitter::enqueueValueOp);
// B) Ergebnisse empfangen (Runner -> Manager)
//connect(&_transmitter, &BCTransmitter::commandFinished, this, &BCDataManager::onCommandFinished);
//connect(&_transmitter, &BCTransmitter::valueStateChanged, this, &BCDataManager::onvalueStateChanged);
//connect(&_transmitter, &BCTransmitter::messageLogged, this, &BCDataManager::onRunnerMessage);
// C) Aufräumen: Wenn Thread endet, lösche den Runner
@@ -219,7 +220,7 @@ void BCMainWindow::onConnectButtonToggled(bool checked )
//_dataManager.setDriverConnectionState( checked );
}
void BCMainWindow::onCommandFinished(int id, bool success)
void BCMainWindow::onvalueStateChanged(int id, bool success)
{
qDebug() << "[Manager] Command" << id << "finished. Success:" << success;
}
@@ -234,9 +235,10 @@ void BCMainWindow::onRunnerMessage(const QString &msg)
void BCMainWindow::onSyncFromDevice()
{
qDebug() << " ---Syncing";
Q_ASSERT(_currentPanel && "currentpanel ist null!");
Q_ASSERT_X(_currentPanel, "onSyncFromDevice()", "_currentpanel ist null!");
qDebug() << " ---Syncing";
const BCValueList& currentList =_currentPanel->getValueList();