Diag: new constructor for DCMachineEvent
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user