testexecfw/statsrv/device/source/statapi/inc/keycodes.h
changeset 0 3e07fef1e154
equal deleted inserted replaced
-1:000000000000 0:3e07fef1e154
       
     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 #if !defined(__KEYCODES_H__)
       
    20 #define __KEYCODES_H__
       
    21 
       
    22 #include <e32keys.h>
       
    23 
       
    24 #define NO_MORE_KEYS	_S("NO_MORE_KEYS")	// end of array
       
    25 #define NO_MORE_SCANCODEKEYS _S("NO_MORE_SCANCODE_KEYS")
       
    26 
       
    27 //------------------------------------------------------------------------------
       
    28 //This section represents the textual KEY codes entered by the end user
       
    29 
       
    30 const TText* const ENUM_TEXTKEYArray[] = 
       
    31 {
       
    32 	_S("Null"),
       
    33 	_S("Bell"),
       
    34 	_S("Backspace"),
       
    35 	_S("Tab"),
       
    36 	_S("LineFeed"),
       
    37 	_S("VerticalTab"),
       
    38 	_S("FormFeed"),
       
    39 	_S("Enter"),
       
    40 	_S("Escape"),
       
    41 	_S("Space"),
       
    42 	_S("Delete"),
       
    43 	_S("PrintScreen"),
       
    44 	_S("Pause"),
       
    45 	_S("Home"),
       
    46 	_S("End"),
       
    47 	_S("PageUp"),
       
    48 	_S("PageDown"),
       
    49 	_S("Insert"),
       
    50 	_S("LeftArrow"),
       
    51 	_S("RightArrow"),
       
    52 	_S("UpArrow"),
       
    53 	_S("DownArrow"),
       
    54 	_S("LeftShift"),
       
    55 	_S("RightShift"),
       
    56 	_S("LeftAlt"),
       
    57 	_S("RightAlt"),
       
    58 	_S("LeftCtrl"),
       
    59 	_S("RightCtrl"),
       
    60 	_S("LeftFunc"),
       
    61 	_S("RightFunc"),
       
    62 	_S("CapsLock"),
       
    63 	_S("NumLock"),
       
    64 	_S("ScrollLock"),
       
    65 	_S("F1"),
       
    66 	_S("F2"),
       
    67 	_S("F3"),
       
    68 	_S("F4"),
       
    69 	_S("F5"),
       
    70 	_S("F6"),
       
    71 	_S("F7"),
       
    72 	_S("F8"),
       
    73 	_S("F9"),
       
    74 	_S("F10"),
       
    75 	_S("F11"),
       
    76 	_S("F12"),
       
    77 	_S("F13"),
       
    78 	_S("F14"),
       
    79 	_S("F15"),
       
    80 	_S("F16"),
       
    81 	_S("F17"),
       
    82 	_S("F18"),
       
    83 	_S("F19"),
       
    84 	_S("F20"),
       
    85 	_S("F21"),
       
    86 	_S("F22"),
       
    87 	_S("F23"),
       
    88 	_S("F24"),
       
    89     _S("Off"),
       
    90     _S("IncContrast"),
       
    91     _S("DecContrast"),
       
    92     _S("BacklightOn"),
       
    93     _S("BacklightOff"),
       
    94     _S("BacklightToggle"),
       
    95     _S("SliderDown"),
       
    96     _S("SliderUp"),
       
    97     _S("Menu"),
       
    98     _S("DictaphonePlay"),
       
    99     _S("DictaphoneStop"),
       
   100     _S("DictaphoneRecord"),
       
   101     _S("Help"),
       
   102     _S("Dial"),
       
   103 	_S("ScreenDimension0"),
       
   104 	_S("ScreenDimension1"),
       
   105 	_S("ScreenDimension2"),
       
   106 	_S("ScreenDimension3"),
       
   107 	_S("IncVolume"),
       
   108 	_S("DecVolume"),
       
   109 	_S("Device0"),
       
   110 	_S("Device1"),
       
   111 	_S("Device2"),
       
   112 	_S("Device3"),
       
   113 	_S("Device4"),
       
   114 	_S("Device5"),
       
   115 	_S("Device6"),
       
   116 	_S("Device7"),
       
   117 	_S("Device8"),
       
   118 	_S("Device9"),
       
   119 	_S("DeviceA"),
       
   120 	_S("DeviceB"),
       
   121 	_S("DeviceC"),
       
   122 	_S("DeviceD"),
       
   123 	_S("DeviceE"),
       
   124 	_S("DeviceF"),
       
   125 	_S("Application0"),
       
   126 	_S("Application1"),
       
   127 	_S("Application2"),
       
   128 	_S("Application3"),
       
   129 	_S("Application4"),
       
   130 	_S("Application5"),
       
   131 	_S("Application6"),
       
   132 	_S("Application7"),
       
   133 	_S("Application8"),
       
   134 	_S("Application9"),
       
   135 	_S("ApplicationA"),
       
   136 	_S("ApplicationB"),
       
   137 	_S("ApplicationC"),
       
   138 	_S("ApplicationD"),
       
   139 	_S("ApplicationE"),
       
   140 	_S("ApplicationF"),
       
   141 	_S("Yes"),
       
   142 	_S("No"),
       
   143 	_S("IncBrightness"),
       
   144 	_S("DecBrightness"),
       
   145 	NO_MORE_KEYS
       
   146 };
       
   147 
       
   148 //------------------------------------------------------------------------------
       
   149 //This section represents the TKeyCode values of the KEYS used by the end user
       
   150 
       
   151 const TKeyCode ENUM_VALKEYArray[] =
       
   152 {
       
   153 	EKeyNull,
       
   154 	EKeyBell,
       
   155 	EKeyBackspace,
       
   156 	EKeyTab,
       
   157 	EKeyLineFeed,
       
   158 	EKeyVerticalTab,
       
   159 	EKeyFormFeed,
       
   160 	EKeyEnter,
       
   161 	EKeyEscape,
       
   162 	EKeySpace,
       
   163 	EKeyDelete,
       
   164 	EKeyPrintScreen,
       
   165 	EKeyPause,
       
   166 	EKeyHome,
       
   167 	EKeyEnd,
       
   168 	EKeyPageUp,
       
   169 	EKeyPageDown,
       
   170 	EKeyInsert,
       
   171 	EKeyLeftArrow,
       
   172 	EKeyRightArrow,
       
   173 	EKeyUpArrow,
       
   174 	EKeyDownArrow,
       
   175 	EKeyLeftShift,
       
   176 	EKeyRightShift,
       
   177 	EKeyLeftAlt,
       
   178 	EKeyRightAlt,
       
   179 	EKeyLeftCtrl,
       
   180 	EKeyRightCtrl,
       
   181 	EKeyLeftFunc,
       
   182 	EKeyRightFunc,
       
   183 	EKeyCapsLock,
       
   184 	EKeyNumLock,
       
   185 	EKeyScrollLock,
       
   186 	EKeyF1,
       
   187 	EKeyF2,
       
   188 	EKeyF3,
       
   189 	EKeyF4,
       
   190 	EKeyF5,
       
   191 	EKeyF6,
       
   192 	EKeyF7,
       
   193 	EKeyF8,
       
   194 	EKeyF9,
       
   195 	EKeyF10,
       
   196 	EKeyF11,
       
   197 	EKeyF12,
       
   198 	EKeyF13,
       
   199 	EKeyF14,
       
   200 	EKeyF15,
       
   201 	EKeyF16,
       
   202 	EKeyF17,
       
   203 	EKeyF18,
       
   204 	EKeyF19,
       
   205 	EKeyF20,
       
   206 	EKeyF21,
       
   207 	EKeyF22,
       
   208 	EKeyF23,
       
   209 	EKeyF24,
       
   210     EKeyOff,
       
   211     EKeyIncContrast,
       
   212     EKeyDecContrast,
       
   213     EKeyBacklightOn,
       
   214     EKeyBacklightOff,
       
   215     EKeyBacklightToggle,
       
   216     EKeySliderDown,
       
   217     EKeySliderUp,
       
   218     EKeyMenu,
       
   219     EKeyDictaphonePlay,
       
   220     EKeyDictaphoneStop,
       
   221     EKeyDictaphoneRecord,
       
   222     EKeyHelp,
       
   223     EKeyDial,
       
   224 	EKeyScreenDimension0,
       
   225 	EKeyScreenDimension1,
       
   226 	EKeyScreenDimension2,
       
   227 	EKeyScreenDimension3,
       
   228 	EKeyIncVolume,
       
   229 	EKeyDecVolume,
       
   230 	EKeyDevice0,
       
   231 	EKeyDevice1,
       
   232 	EKeyDevice2,
       
   233 	EKeyDevice3,
       
   234 	EKeyDevice4,
       
   235 	EKeyDevice5,
       
   236 	EKeyDevice6,
       
   237 	EKeyDevice7,
       
   238 	EKeyDevice8,
       
   239 	EKeyDevice9,
       
   240 	EKeyDeviceA,
       
   241 	EKeyDeviceB,
       
   242 	EKeyDeviceC,
       
   243 	EKeyDeviceD,
       
   244 	EKeyDeviceE,
       
   245 	EKeyDeviceF,
       
   246 	EKeyApplication0,
       
   247 	EKeyApplication1,
       
   248 	EKeyApplication2,
       
   249 	EKeyApplication3,
       
   250 	EKeyApplication4,
       
   251 	EKeyApplication5,
       
   252 	EKeyApplication6,
       
   253 	EKeyApplication7,
       
   254 	EKeyApplication8,
       
   255 	EKeyApplication9,
       
   256 	EKeyApplicationA,
       
   257 	EKeyApplicationB,
       
   258 	EKeyApplicationC,
       
   259 	EKeyApplicationD,
       
   260 	EKeyApplicationE,
       
   261 	EKeyApplicationF,
       
   262 	EKeyYes,
       
   263 	EKeyNo,
       
   264 	EKeyIncBrightness,
       
   265 	EKeyDecBrightness
       
   266 };
       
   267 
       
   268 //------------------------------------------------------------------------------
       
   269 //This section represents the textual SCAN codes entered by the end user in sending system keypresses (L)
       
   270 
       
   271 const TText* const ENUM_TEXTSCANCODEArray[] = 
       
   272 {
       
   273 	_S("Null"),
       
   274 	_S("Backspace"),
       
   275 	_S("Tab"),
       
   276 	_S("Enter"),
       
   277 	_S("Escape"),
       
   278 	_S("Space"),
       
   279 	_S("PrintScreen"),
       
   280 	_S("Pause"),
       
   281 	_S("Home"),
       
   282 	_S("End"),
       
   283 	_S("PageUp"),
       
   284 	_S("PageDown"),
       
   285 	_S("Insert"),
       
   286 	_S("Delete"),
       
   287 	_S("LeftArrow"),
       
   288 	_S("RightArrow"),
       
   289 	_S("UpArrow"),
       
   290 	_S("DownArrow"),
       
   291 	_S("LeftShift"),
       
   292 	_S("RightShift"),
       
   293 	_S("LeftAlt"),
       
   294 	_S("RightAlt"),
       
   295 	_S("LeftCtrl"),
       
   296 	_S("RightCtrl"),
       
   297 	_S("LeftFunc"),
       
   298 	_S("RightFunc"),
       
   299 	_S("CapsLock"),
       
   300 	_S("NumLock"),
       
   301 	_S("ScrollLock"),
       
   302 	_S("F1"),
       
   303 	_S("F2"),
       
   304 	_S("F3"),
       
   305 	_S("F4"),
       
   306 	_S("F5"),
       
   307 	_S("F6"),
       
   308 	_S("F7"),
       
   309 	_S("F8"),
       
   310 	_S("F9"),
       
   311 	_S("F10"),
       
   312 	_S("F11"),
       
   313 	_S("F12"),
       
   314 	_S("F13"),
       
   315 	_S("F14"),
       
   316 	_S("F15"),
       
   317 	_S("F16"),
       
   318 	_S("F17"),
       
   319 	_S("F18"),
       
   320 	_S("F19"),
       
   321 	_S("F20"),
       
   322 	_S("F21"),
       
   323 	_S("F22"),
       
   324 	_S("F23"),
       
   325 	_S("F24"),
       
   326 	_S("XXX"),
       
   327 	_S("Comma"),
       
   328 	_S("FullStop"),
       
   329 	_S("ForwardSlash"),
       
   330 	_S("BackSlash"),
       
   331 	_S("SemiColon"),
       
   332 	_S("SingleQuote"),
       
   333 	_S("Hash"),
       
   334 	_S("SquareBracketLeft"),
       
   335 	_S("SquareBracketRight"),
       
   336 	_S("Minus"),
       
   337 	_S("Equals"),
       
   338 	_S("NkpForwardSlash"),
       
   339 	_S("NkpAsterisk"),
       
   340 	_S("NkpMinus"),
       
   341 	_S("NkpPlus"),
       
   342 	_S("NkpEnter"),
       
   343 	_S("Nkp1"),
       
   344 	_S("Nkp2"),
       
   345 	_S("Nkp3"),
       
   346 	_S("Nkp4"),
       
   347 	_S("Nkp5"),
       
   348 	_S("Nkp6"),
       
   349 	_S("Nkp7"),
       
   350 	_S("Nkp8"),
       
   351 	_S("Nkp9"),
       
   352 	_S("Nkp0"),
       
   353 	_S("NkpFullStop"),
       
   354     _S("Menu"),
       
   355     _S("BacklightOn"),
       
   356     _S("BacklightOff"),
       
   357     _S("BacklightToggle"),
       
   358     _S("IncContrast"),
       
   359     _S("DecContrast"),
       
   360     _S("SliderDown"),
       
   361     _S("SliderUp"),
       
   362     _S("DictaphonePlay"),
       
   363     _S("DictaphoneStop"),
       
   364     _S("DictaphoneRecord"),
       
   365     _S("Help"),
       
   366     _S("Off"),
       
   367     _S("Dial"),
       
   368     _S("IncVolume"),
       
   369     _S("DecVolume"),
       
   370     _S("Device0"),
       
   371     _S("Device1"),
       
   372     _S("Device2"),
       
   373     _S("Device3"),
       
   374     _S("Device4"),
       
   375     _S("Device5"),
       
   376     _S("Device6"),
       
   377     _S("Device7"),
       
   378     _S("Device8"),
       
   379     _S("Device9"),
       
   380     _S("DeviceA"),
       
   381     _S("DeviceB"),
       
   382     _S("DeviceC"),
       
   383     _S("DeviceD"),
       
   384     _S("DeviceE"),
       
   385     _S("DeviceF"),
       
   386     _S("Application0"),
       
   387     _S("Application1"),
       
   388     _S("Application2"),
       
   389     _S("Application3"),
       
   390     _S("Application4"),
       
   391     _S("Application5"),
       
   392     _S("Application6"),
       
   393     _S("Application7"),
       
   394     _S("Application8"),
       
   395     _S("Application9"),
       
   396     _S("ApplicationA"),
       
   397     _S("ApplicationB"),
       
   398     _S("ApplicationC"),
       
   399     _S("ApplicationD"),
       
   400     _S("ApplicationE"),
       
   401     _S("ApplicationF"),
       
   402 	_S("Yes"),
       
   403 	_S("No"),
       
   404 	_S("IncBrightness"),
       
   405 	_S("DecBrightness"),
       
   406 	NO_MORE_SCANCODEKEYS
       
   407 
       
   408 };
       
   409 
       
   410 //------------------------------------------------------------------------------
       
   411 //This section represents the TStdScanCode values of the SCANCODES used by the end user with the L command
       
   412 
       
   413 const TStdScanCode ENUM_VALSCANCODEArray[] =
       
   414 {
       
   415 	EStdKeyNull,
       
   416 	EStdKeyBackspace,
       
   417 	EStdKeyTab,
       
   418 	EStdKeyEnter,
       
   419 	EStdKeyEscape,
       
   420 	EStdKeySpace,
       
   421 	EStdKeyPrintScreen,
       
   422 	EStdKeyPause,
       
   423 	EStdKeyHome,
       
   424 	EStdKeyEnd,
       
   425 	EStdKeyPageUp,
       
   426 	EStdKeyPageDown,
       
   427 	EStdKeyInsert,
       
   428 	EStdKeyDelete,
       
   429 	EStdKeyLeftArrow,
       
   430 	EStdKeyRightArrow,
       
   431 	EStdKeyUpArrow,
       
   432 	EStdKeyDownArrow,
       
   433 	EStdKeyLeftShift,
       
   434 	EStdKeyRightShift,
       
   435 	EStdKeyLeftAlt,
       
   436 	EStdKeyRightAlt,
       
   437 	EStdKeyLeftCtrl,
       
   438 	EStdKeyRightCtrl,
       
   439 	EStdKeyLeftFunc,
       
   440 	EStdKeyRightFunc,
       
   441 	EStdKeyCapsLock,
       
   442 	EStdKeyNumLock,
       
   443 	EStdKeyScrollLock,
       
   444 	EStdKeyF1,
       
   445 	EStdKeyF2,
       
   446 	EStdKeyF3,
       
   447 	EStdKeyF4,
       
   448 	EStdKeyF5,
       
   449 	EStdKeyF6,
       
   450 	EStdKeyF7,
       
   451 	EStdKeyF8,
       
   452 	EStdKeyF9,
       
   453 	EStdKeyF10,
       
   454 	EStdKeyF11,
       
   455 	EStdKeyF12,
       
   456 	EStdKeyF13,
       
   457 	EStdKeyF14,
       
   458 	EStdKeyF15,
       
   459 	EStdKeyF16,
       
   460 	EStdKeyF17,
       
   461 	EStdKeyF18,
       
   462 	EStdKeyF19,
       
   463 	EStdKeyF20,
       
   464 	EStdKeyF21,
       
   465 	EStdKeyF22,
       
   466 	EStdKeyF23,
       
   467 	EStdKeyF24,
       
   468 	EStdKeyXXX,
       
   469 	EStdKeyComma,
       
   470 	EStdKeyFullStop,
       
   471 	EStdKeyForwardSlash,
       
   472 	EStdKeyBackSlash,
       
   473 	EStdKeySemiColon,
       
   474 	EStdKeySingleQuote,
       
   475 	EStdKeyHash,
       
   476 	EStdKeySquareBracketLeft,
       
   477 	EStdKeySquareBracketRight,
       
   478 	EStdKeyMinus,
       
   479 	EStdKeyEquals,
       
   480 	EStdKeyNkpForwardSlash,
       
   481 	EStdKeyNkpAsterisk,
       
   482 	EStdKeyNkpMinus,
       
   483 	EStdKeyNkpPlus,
       
   484 	EStdKeyNkpEnter,
       
   485 	EStdKeyNkp1,
       
   486 	EStdKeyNkp2,
       
   487 	EStdKeyNkp3,
       
   488 	EStdKeyNkp4,
       
   489 	EStdKeyNkp5,
       
   490 	EStdKeyNkp6,
       
   491 	EStdKeyNkp7,
       
   492 	EStdKeyNkp8,
       
   493 	EStdKeyNkp9,
       
   494 	EStdKeyNkp0,
       
   495 	EStdKeyNkpFullStop,
       
   496     EStdKeyMenu,
       
   497     EStdKeyBacklightOn,
       
   498     EStdKeyBacklightOff,
       
   499     EStdKeyBacklightToggle,
       
   500     EStdKeyIncContrast,
       
   501     EStdKeyDecContrast,
       
   502     EStdKeySliderDown,
       
   503     EStdKeySliderUp,
       
   504     EStdKeyDictaphonePlay,
       
   505     EStdKeyDictaphoneStop,
       
   506     EStdKeyDictaphoneRecord,
       
   507     EStdKeyHelp,
       
   508     EStdKeyOff,
       
   509     EStdKeyDial,
       
   510     EStdKeyIncVolume,
       
   511     EStdKeyDecVolume,
       
   512     EStdKeyDevice0,
       
   513     EStdKeyDevice1,
       
   514     EStdKeyDevice2,
       
   515     EStdKeyDevice3,
       
   516     EStdKeyDevice4,
       
   517     EStdKeyDevice5,
       
   518     EStdKeyDevice6,
       
   519     EStdKeyDevice7,
       
   520     EStdKeyDevice8,
       
   521     EStdKeyDevice9,
       
   522     EStdKeyDeviceA,
       
   523     EStdKeyDeviceB,
       
   524     EStdKeyDeviceC,
       
   525     EStdKeyDeviceD,
       
   526     EStdKeyDeviceE,
       
   527     EStdKeyDeviceF,
       
   528     EStdKeyApplication0,
       
   529     EStdKeyApplication1,
       
   530     EStdKeyApplication2,
       
   531     EStdKeyApplication3,
       
   532     EStdKeyApplication4,
       
   533     EStdKeyApplication5,
       
   534     EStdKeyApplication6,
       
   535     EStdKeyApplication7,
       
   536     EStdKeyApplication8,
       
   537     EStdKeyApplication9,
       
   538     EStdKeyApplicationA,
       
   539     EStdKeyApplicationB,
       
   540     EStdKeyApplicationC,
       
   541     EStdKeyApplicationD,
       
   542     EStdKeyApplicationE,
       
   543     EStdKeyApplicationF,
       
   544 	EStdKeyYes,
       
   545 	EStdKeyNo,
       
   546 	EStdKeyIncBrightness,
       
   547 	EStdKeyDecBrightness
       
   548 };
       
   549 
       
   550 //------------------------------------------------------------------------------
       
   551 
       
   552 #endif