Diag: new constructor for DCMachineEvent
This commit is contained in:
parent
ccc1c6033f
commit
ccc2b8120d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -78,7 +78,7 @@ namespace DeviceController {
|
||||
class DCMachineEvent {
|
||||
public:
|
||||
DCMachineEvent() = default;
|
||||
DCMachineEvent(DeviceController::State state, const QString& id) : state(state), eventId(id) {}
|
||||
DCMachineEvent(DeviceController::State state);
|
||||
|
||||
DeviceController::State state;
|
||||
QString eventId;
|
||||
|
Loading…
x
Reference in New Issue
Block a user