|
1 /* |
|
2 * Copyright (c) 2005 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 * Provides the TAknFepInputStateChineseBaseQwerty methods. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #include "AknFepUIInputStateChineseBaseQwerty.h" |
|
31 #include "AknFepUIManagerStateInterface.h" //MAknFepUIManagerStateInterface |
|
32 #include "AknFepManagerUIInterface.h" //MAknFepManagerUIInterface |
|
33 #include "AknFepCaseManager.h" |
|
34 |
|
35 #include <PtiEngine.h> |
|
36 #include <PtiDefs.h> |
|
37 |
|
38 TAknFepInputStateChineseBaseQwerty::TAknFepInputStateChineseBaseQwerty( |
|
39 MAknFepUIManagerStateInterface* aOwner, |
|
40 MAknFepUICtrlContainerChinese* aUIContainer) |
|
41 :TAknFepInputStateChineseBase(aOwner,aUIContainer) |
|
42 { |
|
43 } |
|
44 |
|
45 TBool TAknFepInputStateChineseBaseQwerty::IsQwertyKey(const TInt aKey) |
|
46 { |
|
47 TBool response = EFalse; |
|
48 if ( (aKey >= EPtiKeyQwertyA && aKey <= EPtiKeyQwertyZ) || |
|
49 IsNumberKey( aKey ) || |
|
50 aKey == EPtiKeyQwertyPlus || |
|
51 aKey == EPtiKeyQwertyMinus || |
|
52 aKey == EPtiKeyQwertyComma || |
|
53 aKey == EPtiKeyQwertySemicolon || |
|
54 aKey == EPtiKeyQwertyFullstop || |
|
55 aKey == EPtiKeyQwertyHash || |
|
56 aKey == EPtiKeyQwertySlash || |
|
57 aKey == EPtiKeyQwertyApostrophe) |
|
58 { |
|
59 response = ETrue; |
|
60 } |
|
61 return response; |
|
62 } |
|
63 |
|
64 TBool TAknFepInputStateChineseBaseQwerty::IsNumberKey(const TInt aKey) |
|
65 { |
|
66 TBool response = EFalse; |
|
67 if (aKey >= EPtiKeyQwerty0 && aKey <= EPtiKeyQwerty9) |
|
68 { |
|
69 response = ETrue; |
|
70 } |
|
71 return response; |
|
72 } |
|
73 |
|
74 // End of file |