ReturnCode.h

00001 /*---------------------------------------------------------------------------*
00002  *  ReturnCode.h                                                             *
00003  *                                                                           *
00004  *  Copyright 2007 Nuance Communciations, Inc.                               *
00005  *                                                                           *
00006  *  Licensed under the Apache License, Version 2.0 (the 'License');          *
00007  *  you may not use this file except in compliance with the License.         *
00008  *                                                                           *
00009  *  You may obtain a copy of the License at                                  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0                           *
00011  *                                                                           *
00012  *  Unless required by applicable law or agreed to in writing, software      *
00013  *  distributed under the License is distributed on an 'AS IS' BASIS,        *
00014  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
00015  *  See the License for the specific language governing permissions and      *
00016  *  limitations under the License.                                           *
00017  *                                                                           *
00018  *---------------------------------------------------------------------------*/
00019 
00020 #ifndef __UAPI__RETURNCODE
00021 #define __UAPI__RETURNCODE
00022 
00023 #include "exports.h"
00024 
00025 
00026 namespace android
00027 {
00028   namespace speech
00029   {
00030     namespace recognition
00031     {
00037       class ReturnCode
00038       {
00039         public:
00040           enum Type
00041           {
00048             SUCCESS = 0,
00052             UNKNOWN,
00056             ILLEGAL_ARGUMENT,
00060             NOT_SUPPORTED,
00064             OUT_OF_MEMORY,
00068             INVALID_STATE,
00072             FILE_NOT_FOUND,
00076             PENDING_DATA,
00080             END_OF_STREAM,
00084             SOCKET_IO_ERROR,
00088             SOCKET_CLOSED,
00092             UNKNOWN_MODULE,
00096             UNKNOWN_SYMBOL,
00100             NO_MATCH,
00104             OPEN_ERROR,
00108             READ_ERROR,
00112             WRITE_ERROR,
00117             ARRAY_INDEX_OUT_OF_BOUNDS,
00121             GRAMMAR_SLOT_FULL,
00126             HOMONYM_COLLISION,
00130             ALREADY_LOCKED,
00134             THREAD_ERROR,
00138             TIMEOUT,
00142             AUDIO_DRIVER_ERROR,
00146             AUDIO_ALREADY_IN_USE,
00151             OVERFLOW_ERROR,
00156             UNDERFLOW_ERROR,
00160             PARSE_ERROR,
00164             SPEECH_SERVER_UNAVAILABLE,
00168             SERVER_BUSY,
00172             SERVER_SHUTTING_DOWN,
00176             GRAMMAR_LOAD_FAILURE,
00180             INVALID_URL,
00184             GRAMMAR_NOT_DEFINED,
00188             INVALID_PARAMETER_NAME,
00192             INVALID_PARAMETER_VALUE,
00196             UNSUPPORTED_CODEC,
00201             SERVER_PING_MISSED,
00205             MAXIMUM_BOUND
00206           };
00207           
00213           UAPI_EXPORT static const char* toString(Type code);
00214       };
00215     }
00216   }
00217 }
00218 
00219 #endif

Generated on Thu May 1 17:16:37 2008 for UAPI by  doxygen 1.5.3