New proposal for DeviceControllerDiag:
Manage two sets of errors and compare to previous run.
This commit is contained in:
@@ -61,6 +61,14 @@ namespace DeviceController {
|
||||
INITIAL_STATE
|
||||
};
|
||||
Q_ENUM_NS(State)
|
||||
|
||||
|
||||
enum Action {
|
||||
SET = 1,
|
||||
RESET = 0
|
||||
};
|
||||
Q_ENUM_NS(Action)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +130,7 @@ private:
|
||||
|
||||
DeviceController::State lastState;
|
||||
QSet<DeviceController::State> machineEventSet;
|
||||
QSet<DeviceController::State> previousMachineEventSet;
|
||||
bool _isErrorState;
|
||||
|
||||
PersistentData* pData;
|
||||
@@ -132,7 +141,8 @@ private slots:
|
||||
void onDiagRequestTimeoutTimerTimeout();
|
||||
|
||||
void private_startDiag(); // diag entry method
|
||||
void private_sendDiagEvent(DeviceController::State result);
|
||||
void private_setDiagEvent(DeviceController::State result);
|
||||
void private_sendDiagEvent(DeviceController::State result, DeviceController::Action action);
|
||||
|
||||
void sys_superviseSystem();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user