|
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 TAknFepInputStateCandidateQwertyBasePhrase definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_PHRASE_H__ |
|
31 #define __AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_PHRASE_H__ |
|
32 |
|
33 #include "AknFepUiInputStateChineseBase.h" |
|
34 #include <PtiDefs.h> |
|
35 |
|
36 class TAknFepInputStateCandidateQwertyBasePhrase : public TAknFepInputStateChineseBase |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Handling Command events. |
|
41 * This Method is called by CAknFepUIManagerJapanese. |
|
42 * |
|
43 * @param aCommandId Command ID value |
|
44 */ |
|
45 void HandleCommandL( TInt aCommandId ); |
|
46 protected: |
|
47 TAknFepInputStateCandidateQwertyBasePhrase(MAknFepUIManagerStateInterface* aOwner, |
|
48 MAknFepUICtrlContainerChinese* aUIContainer); |
|
49 |
|
50 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
51 |
|
52 TBool HandleHorizontalNavigation(TInt aKey); |
|
53 TBool HandleVerticalNavigation(TInt aKey); |
|
54 inline TInt MapKeyToIndex(TInt aKey); |
|
55 }; |
|
56 |
|
57 inline TInt TAknFepInputStateCandidateQwertyBasePhrase::MapKeyToIndex(TInt aKey) |
|
58 { |
|
59 TInt index = aKey - EPtiKey0; // get zero-based value first |
|
60 return !index ? 9 : --index; // map it for one-based keys... |
|
61 } |
|
62 |
|
63 #endif //__AKN_FEP_UI_INPUT_STATE_CANDIDATE_QWERTY_BASE_PHRASE_H__ |
|
64 |
|
65 // End of file |