testtoolsconn/stat/desktop/source/lib/inc/cstatreturncodes.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSTATReturnCodes_H
       
    22 #define CSTATReturnCodes_H
       
    23 
       
    24 #define GENERAL_FAILURE						0
       
    25 #define EXPIRED_VERSION						1
       
    26 #define TIME_DELAY_INIT_FAILURE				2
       
    27 #define DLL_INIT_FAILURE					3
       
    28 #define OPEN_SCRIPT_FILE_FAILURE			4
       
    29 #define INTERPRET_COMMANDS_FAILURE			5
       
    30 #define COMMANDDECODER_INIT_FAILURE			6
       
    31 #define DATACONVERTER_INIT_FAILURE			7
       
    32 #define DIRMANAGER_INIT_FAILURE				8
       
    33 #define RETCODES_INIT_FAILURE				9
       
    34 #define COMLIB_INIT_FAILURE					10
       
    35 #define COPYING								11
       
    36 #define REFDIR_FOUND						12
       
    37 #define ITS_OK								13
       
    38 #define TIME_DELAY_INIT_SUCCESS				14
       
    39 #define ALMOST								15
       
    40 #define ERROR_REGISTRY						16
       
    41 #define LOG_DIR_FAILURE						17
       
    42 #define LOG_DIR_FOUND						18
       
    43 #define LOG_DIR_DUPLICATE_FOUND				19
       
    44 #define LOG_DIR_CREATE_REG_FAILURE			20
       
    45 #define LOG_DIR_CREATE_FAILURE				21
       
    46 #define LOG_DIR_INFORM						22
       
    47 #define LOG_DIR_REG_FAILURE					23
       
    48 #define LOG_FILE_FAILURE					24
       
    49 #define LOG_FILE_OK							25
       
    50 #define OPEN_SCRIPT_FILE_OK					26
       
    51 #define OPEN_SCRIPT_FILE_COMPLETE_FAILURE	27
       
    52 #define CLEANUP_FAILURE						28
       
    53 #define END_COMMAND_FAILURE					29
       
    54 #define END_SCRIPT							30
       
    55 #define BEGIN_COMMAND_FAILURE				31
       
    56 #define CONNECT_FIRST						32
       
    57 #define COM_MEM_FAILURE						33
       
    58 #define CONNECTED							34
       
    59 #define INVALID_HASH_COMMAND				35
       
    60 #define NEW_IMAGE_DIRECTORY					36
       
    61 #define CURRENT_IMAGE_DIRECTORY_OK			37
       
    62 #define NO_END_TO_COMMENT_COMMAND			38
       
    63 #define COMMENT_COMMAND						39
       
    64 #define INVALID_COMMENT_COMMAND				40
       
    65 #define LOGFILE_INIT_FAILURE				41
       
    66 #define PAUSE_TIME							42
       
    67 #define DEVINFO_RECEIVED					43
       
    68 #define DEVINFO_TRYING						44
       
    69 #define DEVINFO_FAILURE						45
       
    70 #define MACHINEINFO_RECEIVED				46
       
    71 #define MACHINEINFO_TRYING					47
       
    72 #define MACHINEINFO_FAILURE					48
       
    73 #define KEYDATA_INFORM						49
       
    74 #define KEYDATA_OK							50
       
    75 #define KEYDATA_FAILURE						51
       
    76 #define SYSKEYDATA_INFORM					52
       
    77 #define SYSKEYDATA_OK						53
       
    78 #define SYSKEYDATA_FAILURE					54
       
    79 #define COMBOKEYDATA_INFORM					55
       
    80 #define COMBOKEYDATA_OK						56
       
    81 #define COMBOKEYDATA_FAILURE				57
       
    82 #define COMBOKEYDATA_INVALID				58
       
    83 #define APPSTART_INFORM						59
       
    84 #define APPSTART_OK							60
       
    85 #define APPSTART_FAILURE					61
       
    86 #define FILEOPEN_INFORM						62
       
    87 #define FILEOPEN_OK							63
       
    88 #define FILEOPEN_FAILURE					64
       
    89 #define FILETRANSFER_INFORM					65
       
    90 #define FILETRANSFER_OK						66
       
    91 #define FILETRANSFER_FAILURE				67
       
    92 #define E_ENGINEOBJECTFAILURE				68
       
    93 #define FILERETRIEVE_INFORM					69
       
    94 #define FILERETRIEVE_OK						70
       
    95 #define FILERETRIEVE_FAILURE				71
       
    96 #define TOUCHSCREEN_INFORM					72
       
    97 #define TOUCHSCREEN_OK						73
       
    98 #define TOUCHSCREEN_FAILURE					74
       
    99 #define APPCLOSE_INFORM						75
       
   100 #define APPCLOSE_OK							76
       
   101 #define APPCLOSE_FAILURE					77
       
   102 #define ESHELL_START_INFORM					78
       
   103 #define ESHELL_START_OK						79
       
   104 #define ESHELL_START_FAILURE				80
       
   105 #define ESHELL_STOP_INFORM					81
       
   106 #define ESHELL_STOP_OK						82
       
   107 #define ESHELL_STOP_FAILURE					83
       
   108 #define SCREENSHOT_INFORM					84 
       
   109 #define SCREENSHOT_OK						85
       
   110 #define SCREENSHOT_FAILURE					86
       
   111 #define SCREENSHOT_MOVETOPC_INFORM			87
       
   112 #define SCREENSHOT_MOVETOPC_OK				88
       
   113 #define SCREENSHOT_MOVETOPC_FAILURE			89
       
   114 #define SCREENSHOT_CONVERSION_FAILURE		90
       
   115 #define SCREENSHOT_CONVERSION_OK			91
       
   116 #define IMAGEVERIFY_INIT_FAILURE			92
       
   117 #define DELETEIMAGES_FAILURE				93
       
   118 #define REFIMAGELOAD_OK						94
       
   119 #define REFIMAGELOAD_FAILURE				95
       
   120 #define REFIMAGELOAD_FAILURE_LIMIT			96
       
   121 #define NEWIMAGELOAD_OK						97
       
   122 #define NEWIMAGELOAD_FAILURE				98
       
   123 #define VERIFICATION_PASS					99
       
   124 #define VERIFICATION_FAILURE				100
       
   125 #define START_VERIFICATION					101
       
   126 #define CREATE_DIR_FAILURE					102
       
   127 #define NO_BITMAPS							103
       
   128 #define TOUCHSCREEN_INVALID_COMMAND			104
       
   129 #define KEYHOLD_INFORM						105
       
   130 #define KEYHOLD_OK							106
       
   131 #define KEYHOLD_FAILURE						107
       
   132 #define KEYHOLD_INVALID_COMMAND				108
       
   133 #define KEYHOLD_STRING_INVALID				109
       
   134 #define ERR_INVALID_IMAGE_DIRECTORY			110
       
   135 #define ERR_FILE_COPY_FAILED				111
       
   136 #define E_BADPLATFORM						112
       
   137 #define E_BADFILESYSINTERFACE				113
       
   138 #define E_BADREQUESTINTERFACE				114
       
   139 #define E_ENGINECONNECTFAILURE				115
       
   140 #define E_REQUESTOBJECTFAILURE				116
       
   141 #define E_REQUESTINITFAILURE				117
       
   142 #define E_NOREFERENCEIMAGES					118
       
   143 #define FILE_DELETE_INFORM					119
       
   144 #define FILE_DELETE_OK						120
       
   145 #define FILE_DELETE_FAILURE					121
       
   146 #define CREATE_FOLDER_INFORM				122
       
   147 #define CREATE_FOLDER_OK					123
       
   148 #define CREATE_FOLDER_FAILURE				124
       
   149 #define REMOVE_FOLDER_INFORM				125
       
   150 #define REMOVE_FOLDER_OK					126
       
   151 #define REMOVE_FOLDER_FAILURE				127
       
   152 #define E_NOT_SUPPORTED						128
       
   153 #define E_USERCANCEL						129
       
   154 #define E_OUTOFMEM							130
       
   155 #define INVALID_COMMAND_FORMAT				131
       
   156 #define E_MESSAGE_INIT_FAILURE				132
       
   157 #define E_BADFORMAT							133
       
   158 #define E_FILE_OPEN_READ_FAILED				134
       
   159 #define E_NOIMAGEFOLDER						135
       
   160 #define E_NOIMAGESTOCONVERT					136
       
   161 #define E_BITMAPLOADFAILED					137
       
   162 #define E_BITMAPSAVEFAILED					138
       
   163 #define E_BADWRITE							139
       
   164 #define E_FILE_OPEN_WRITE_FAILED			140
       
   165 #define E_BADCOMPRESSION					141
       
   166 #define E_SCREENSHOT_LEFTOVERFILES			142
       
   167 #define CONVERTINGIMAGE						143
       
   168 #define TO									144
       
   169 #define FILERETRIEVE_COPY					145
       
   170 #define E_INVALIDCMDSYNTAX					146
       
   171 #define READINGIMAGE						147
       
   172 #define SCREENSHOT_INTOMEMORY_OK			148
       
   173 #define E_COMMANDRETRY						149
       
   174 #define E_COMMANDFAILED						150
       
   175 #define E_CONNECTIONFAILED					151
       
   176 #define E_WRITEFAILED						152
       
   177 #define E_READFAILED						153
       
   178 #define NO_DATA_AT_PORT						154
       
   179 #define E_TOOMUCHTIME						155
       
   180 #define E_TOOMANYERRORS						156
       
   181 #define E_BADID								157
       
   182 #define E_BADFILENAME						158
       
   183 #define E_BADNUMBERBYTES					159
       
   184 #define E_OUTOFMEMNOTSUPPORTED				160
       
   185 #define RETRIEVETO							161
       
   186 #define E_INVALIDMESSAGETYPE				162
       
   187 #define E_RESYNCCOMMAND						163
       
   188 #define E_NOFILEDATA						164
       
   189 #define E_SOCKETSTARTUP						165
       
   190 #define E_SOCKETCREATE						166
       
   191 #define E_SOCKETCONNECT						167
       
   192 #define E_SOCKETBIND						168
       
   193 #define E_SOCKETLISTEN						169
       
   194 #define E_SOCKETHOSTNAME					170
       
   195 #define E_SOCKETSEND						171
       
   196 #define E_SOCKETRECV						172
       
   197 #define E_PROCESSTERMINATED					173
       
   198 #define E_SOCKETCLOSE						174
       
   199 #define E_SOCKETSHUTDOWN					175
       
   200 #define USE_EXISTING_IMAGES					176
       
   201 #define E_NOCONNECTION						177
       
   202 
       
   203 
       
   204 class CSTATReturnCodes
       
   205 {
       
   206 	public:
       
   207 		CSTATReturnCodes();
       
   208 		const char* GetRetMsg(const DWORD codenum);
       
   209 
       
   210 	private:
       
   211 		DWORD iMaxCodes;
       
   212 };
       
   213 
       
   214 #endif