2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using static Interop.VoiceControl;
20 namespace Tizen.Uix.VoiceControl
23 /// This class holds information related to the VoiceControl ErrorOccured Event
25 public class ErrorOccuredEventArgs
27 internal ErrorOccuredEventArgs(ErrorCode error)
33 ErrorValue = Error.None;
37 case ErrorCode.OutOfMemory:
39 ErrorValue = Error.OutOfMemory;
43 case ErrorCode.IoError:
45 ErrorValue = Error.IoError;
49 case ErrorCode.InvalidParameter:
51 ErrorValue = Error.InvalidParameter;
55 case ErrorCode.TimedOut:
57 ErrorValue = Error.TimedOut;
61 case ErrorCode.RecorderBusy:
63 ErrorValue = Error.RecorderBusy;
67 case ErrorCode.PermissionDenied:
69 ErrorValue = Error.PermissionDenied;
73 case ErrorCode.NotSupported:
75 ErrorValue = Error.NotSupported;
79 case ErrorCode.InvalidState:
81 ErrorValue = Error.InvalidState;
85 case ErrorCode.InvalidLanguage:
87 ErrorValue = Error.InvalidLanguage;
91 case ErrorCode.EngineNotFound:
93 ErrorValue = Error.EngineNotFound;
97 case ErrorCode.OperationFailed:
99 ErrorValue = Error.OperationFailed;
103 case ErrorCode.OperationRejected:
105 ErrorValue = Error.OperationRejected;
109 case ErrorCode.IterationEnd:
111 ErrorValue = Error.IterationEnd;
115 case ErrorCode.Empty:
117 ErrorValue = Error.Empty;
121 case ErrorCode.InProgressToReady:
123 ErrorValue = Error.InProgressToReady;
127 case ErrorCode.InProgressToRecording:
129 ErrorValue = Error.InProgressToRecording;
133 case ErrorCode.InProgressToProcessing:
135 ErrorValue = Error.InProgressToProcessing;
139 case ErrorCode.ServiceReset:
141 ErrorValue = Error.ServiceReset;
150 public Error ErrorValue