equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "cphonekeys.h" |
20 #include "cphonekeys.h" |
21 #include <aknkeys.h> |
|
22 #include <AknUtils.h> |
|
23 #include "phonelogger.h" |
21 #include "phonelogger.h" |
24 |
22 |
25 // CONSTANTS |
23 // CONSTANTS |
26 _LIT( KPhoneValidChars, "0123456789*#+pwPW" ); |
24 _LIT( KPhoneValidChars, "0123456789*#+pwPW" ); |
27 |
25 |
36 TEventCode /*aType*/ ) |
34 TEventCode /*aType*/ ) |
37 { |
35 { |
38 // Convert key code to western. |
36 // Convert key code to western. |
39 TBuf<1> buffer; // one character |
37 TBuf<1> buffer; // one character |
40 buffer.Append( aKeyEvent.iCode ); |
38 buffer.Append( aKeyEvent.iCode ); |
41 AknTextUtils::ConvertDigitsTo( buffer, EDigitTypeWestern ); |
39 |
42 |
|
43 TBool result = EFalse; |
40 TBool result = EFalse; |
44 |
41 |
45 switch ( buffer[ 0 ] ) // first char |
42 switch ( buffer[ 0 ] ) // first char |
46 { |
43 { |
47 // Digits, 0 .. 9 |
44 // Digits, 0 .. 9 |