Diag: new constructor for DCMachineEvent

This commit is contained in:
2025-06-12 08:32:44 +02:00
parent ccc1c6033f
commit ccc2b8120d
2 changed files with 15 additions and 1 deletions

View File

@@ -698,3 +698,17 @@ void DeviceControllerDiag::restartCArun()
this->private_setDiagEvent(DeviceController::State::W255);
QProcess::startDetached("/bin/systemctl", {"restart", "carun"});
}
/****************************************************************************************************
*
* DCMachineEvent
*/
DCMachineEvent::DCMachineEvent(DeviceController::State state) : state(state)
{
this->eventId = QUuid::createUuid().toString(QUuid::WithoutBraces).mid(0, 8);
}