1.1 --- a/epoc32/include/networkemulator/uccs_errorcodes.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/networkemulator/uccs_errorcodes.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,106 +1,106 @@
1.4 -/*
1.5 -* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 -* All rights reserved.
1.7 -* This component and the accompanying materials are made available
1.8 -* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 -* which accompanies this distribution, and is available
1.10 -* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 -*
1.12 -* Initial Contributors:
1.13 -* Nokia Corporation - initial contribution.
1.14 -*
1.15 -* Contributors:
1.16 -*
1.17 -* Description:
1.18 -* Filename: UCCS_ErrorCodes.h
1.19 -*
1.20 -*/
1.21 -
1.22 -
1.23 -#ifndef __UCCSCERRORCODES_H__
1.24 -#define __UCCSCERRORCODES_H__
1.25 -
1.26 -
1.27 -/***********************************************************************************
1.28 - *
1.29 - * Types
1.30 - *
1.31 - **********************************************************************************/
1.32 -typedef enum {
1.33 - UCCS_ERROR_NONE = 0, // This is returned from the new services for no error
1.34 - UCCS_OK = 100,
1.35 -
1.36 - // (2a) Returned by Invoke -- and then in turn by the execute command (IOutput::Error)
1.37 - UCCS_SERVICELISTFULL = -300,
1.38 - UCCS_NOSERVICEID,
1.39 - UCCS_INVALIDSERVICEID,
1.40 - UCCS_CANTSTARTSERVICE,
1.41 - UCCS_CANTSTOPSERVICE,
1.42 - UCCS_NOSERVICEHOST,
1.43 - UCCS_INVALIDSERVICEINDEX,
1.44 - UCCS_NO_MATCHING_GENERIC_SERVICE_FOUND,
1.45 -
1.46 - // (2b) Returned by ParseCommand -- and then in turn by the execute command (IOutput::Error)
1.47 - UCCS_PARSERFAILEDTOSTOREVALUE,
1.48 -
1.49 - // (2c) Returned by Execute Command (IOutput::Error)
1.50 - UCCS_UNKNOWNCOMMAND,
1.51 - UCCS_REPLAYCOMMAND,
1.52 - UCCS_NORESULT,
1.53 - UCCS_QUIT,
1.54 - UCCS_REQUIREDVALUEERROR,
1.55 - UCCS_REQUIREDVALUEINCORRECT,
1.56 - UCCS_REQUIREDNOTVALUEERROR,
1.57 - UCCS_REQUIREDNOTVALUEMATCH,
1.58 - UCCS_CHECKVALUEERROR,
1.59 - UCCS_CHECKVALUEINCORRECT,
1.60 - UCCS_CHECKNOTVALUEERROR,
1.61 - UCCS_CHECKNOTVALUEMATCH,
1.62 -
1.63 - // (2d) Returned from other classes that eventually get returned by execute command
1.64 - UCCS_FIELDNOTFOUND,
1.65 - UCCS_SYSTEMERROR,
1.66 - UCCS_RECORDFULL,
1.67 - UCCS_NOMORECOMMANDS,
1.68 -
1.69 - // (2e) Errors that are only used direct to IOutput
1.70 - UCCS_UNKNOWNCONTROLCOMMAND,
1.71 - UCCS_CLIENT_ERROR,
1.72 -
1.73 - // (3a) Errors returned to the control commands directly from CBatchEngine
1.74 - UCCS_ALREADYSTARTEDUSECASE,
1.75 - UCCS_NOUSECASERUNNING,
1.76 - UCCS_FAILEDTOCREATEEXECUTETHREAD,
1.77 - UCCS_COMMANDEXECUTIONNOTSTARTEDYET,
1.78 - UCCS_SCRIPTFINISHED,
1.79 -
1.80 - // (3b) Errors returned from other classes that eventually get returned to control commands
1.81 - UCCS_CANTOPENSCRIPTFILE,
1.82 - UCCS_CANTOPENOUTPUTFILE,
1.83 - UCCS_VARIABLEVALTOOLONG,
1.84 - UCCS_VARIABLEDOESNOTEXIST,
1.85 - UCCS_NOENVIRONMENT,
1.86 -
1.87 - // (4) End
1.88 - UCCS_LAST
1.89 -} TUCCSErrors;
1.90 -
1.91 -
1.92 -/***********************************************************************************
1.93 - *
1.94 - * Definitions
1.95 - *
1.96 - **********************************************************************************/
1.97 -#define GetUccsErrorStringI(x) GetUccsErrorString((TUCCSErrors)(x))
1.98 -
1.99 -
1.100 -/***********************************************************************************
1.101 - *
1.102 - * Prototypes
1.103 - *
1.104 - **********************************************************************************/
1.105 -char *GetUccsErrorString( TUCCSErrors aErrorCode );
1.106 -char *GetPenstdErrorString( int aErrorCode );
1.107 -
1.108 -
1.109 -#endif __UCCSCERRORCODES_H__
1.110 +/*
1.111 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.112 +* All rights reserved.
1.113 +* This component and the accompanying materials are made available
1.114 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.115 +* which accompanies this distribution, and is available
1.116 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.117 +*
1.118 +* Initial Contributors:
1.119 +* Nokia Corporation - initial contribution.
1.120 +*
1.121 +* Contributors:
1.122 +*
1.123 +* Description:
1.124 +* Filename: UCCS_ErrorCodes.h
1.125 +*
1.126 +*/
1.127 +
1.128 +
1.129 +#ifndef __UCCSCERRORCODES_H__
1.130 +#define __UCCSCERRORCODES_H__
1.131 +
1.132 +
1.133 +/***********************************************************************************
1.134 + *
1.135 + * Types
1.136 + *
1.137 + **********************************************************************************/
1.138 +typedef enum {
1.139 + UCCS_ERROR_NONE = 0, // This is returned from the new services for no error
1.140 + UCCS_OK = 100,
1.141 +
1.142 + // (2a) Returned by Invoke -- and then in turn by the execute command (IOutput::Error)
1.143 + UCCS_SERVICELISTFULL = -300,
1.144 + UCCS_NOSERVICEID,
1.145 + UCCS_INVALIDSERVICEID,
1.146 + UCCS_CANTSTARTSERVICE,
1.147 + UCCS_CANTSTOPSERVICE,
1.148 + UCCS_NOSERVICEHOST,
1.149 + UCCS_INVALIDSERVICEINDEX,
1.150 + UCCS_NO_MATCHING_GENERIC_SERVICE_FOUND,
1.151 +
1.152 + // (2b) Returned by ParseCommand -- and then in turn by the execute command (IOutput::Error)
1.153 + UCCS_PARSERFAILEDTOSTOREVALUE,
1.154 +
1.155 + // (2c) Returned by Execute Command (IOutput::Error)
1.156 + UCCS_UNKNOWNCOMMAND,
1.157 + UCCS_REPLAYCOMMAND,
1.158 + UCCS_NORESULT,
1.159 + UCCS_QUIT,
1.160 + UCCS_REQUIREDVALUEERROR,
1.161 + UCCS_REQUIREDVALUEINCORRECT,
1.162 + UCCS_REQUIREDNOTVALUEERROR,
1.163 + UCCS_REQUIREDNOTVALUEMATCH,
1.164 + UCCS_CHECKVALUEERROR,
1.165 + UCCS_CHECKVALUEINCORRECT,
1.166 + UCCS_CHECKNOTVALUEERROR,
1.167 + UCCS_CHECKNOTVALUEMATCH,
1.168 +
1.169 + // (2d) Returned from other classes that eventually get returned by execute command
1.170 + UCCS_FIELDNOTFOUND,
1.171 + UCCS_SYSTEMERROR,
1.172 + UCCS_RECORDFULL,
1.173 + UCCS_NOMORECOMMANDS,
1.174 +
1.175 + // (2e) Errors that are only used direct to IOutput
1.176 + UCCS_UNKNOWNCONTROLCOMMAND,
1.177 + UCCS_CLIENT_ERROR,
1.178 +
1.179 + // (3a) Errors returned to the control commands directly from CBatchEngine
1.180 + UCCS_ALREADYSTARTEDUSECASE,
1.181 + UCCS_NOUSECASERUNNING,
1.182 + UCCS_FAILEDTOCREATEEXECUTETHREAD,
1.183 + UCCS_COMMANDEXECUTIONNOTSTARTEDYET,
1.184 + UCCS_SCRIPTFINISHED,
1.185 +
1.186 + // (3b) Errors returned from other classes that eventually get returned to control commands
1.187 + UCCS_CANTOPENSCRIPTFILE,
1.188 + UCCS_CANTOPENOUTPUTFILE,
1.189 + UCCS_VARIABLEVALTOOLONG,
1.190 + UCCS_VARIABLEDOESNOTEXIST,
1.191 + UCCS_NOENVIRONMENT,
1.192 +
1.193 + // (4) End
1.194 + UCCS_LAST
1.195 +} TUCCSErrors;
1.196 +
1.197 +
1.198 +/***********************************************************************************
1.199 + *
1.200 + * Definitions
1.201 + *
1.202 + **********************************************************************************/
1.203 +#define GetUccsErrorStringI(x) GetUccsErrorString((TUCCSErrors)(x))
1.204 +
1.205 +
1.206 +/***********************************************************************************
1.207 + *
1.208 + * Prototypes
1.209 + *
1.210 + **********************************************************************************/
1.211 +char *GetUccsErrorString( TUCCSErrors aErrorCode );
1.212 +char *GetPenstdErrorString( int aErrorCode );
1.213 +
1.214 +
1.215 +#endif __UCCSCERRORCODES_H__