/// <summary> /// Verifies whether the device has finished printing by checking the job status and /// waiting until clear before releasing the control panel to other operations. /// </summary> /// <exception cref="System.NotImplementedException"></exception> protected override void VerifyDeviceFinishedPrinting() { DateTime startTime = DateTime.Now; RecordEvent(DeviceWorkflowMarker.ProcessingJobBegin); _myQApp.FinishedProcessingWork(); RecordEvent(DeviceWorkflowMarker.ProcessingJobEnd); OnTimeStatusUpdate("VerifyDeviceFinishedPrinting", startTime, DateTime.Now); }
/// <summary> /// Launch the MyQ scan solution. /// </summary> protected void ScanJob() { UpdateStatus("Press scan button"); if (_activityData.ScanType.Equals(MyQScanType.Email)) { _myQApp.PressEasyScanEmail(); } else if (_activityData.ScanType.Equals(MyQScanType.Folder)) { _myQApp.PressEasyScanFolder(); } bool result = _myQApp.FinishedProcessingWork(); RecordEvent(DeviceWorkflowMarker.ScanJobEnd); if (!result) { throw new DeviceWorkflowException("Fail to finish scan"); } UpdateStatus("Scan job completed"); }