equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 TAknFepInputStateCandidateBase definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 #ifndef __AKN_FEP_UI_INPUT_STATE_CANDIDATE_BASE_H__ |
|
31 #define __AKN_FEP_UI_INPUT_STATE_CANDIDATE_BASE_H__ |
|
32 |
|
33 #include "AknFepUiInputStateChineseBase.h" |
|
34 #include <PtiDefs.h> |
|
35 |
|
36 class TAknFepInputStateCandidateBase : public TAknFepInputStateChineseBase |
|
37 { |
|
38 public: |
|
39 void HandleCommandL(TInt aCommandId); |
|
40 |
|
41 protected: |
|
42 TAknFepInputStateCandidateBase(MAknFepUIManagerStateInterface* aOwner, |
|
43 MAknFepUICtrlContainerChinese* aUIContainer); |
|
44 |
|
45 TBool HandleKeyL(TInt aKey, TKeyPressLength aLength); |
|
46 |
|
47 TBool HandleHorizontalNavigation(TInt aKey); |
|
48 TBool HandleVerticalNavigation(TInt aKey); |
|
49 inline TInt MapKeyToIndex(TInt aKey); |
|
50 }; |
|
51 |
|
52 inline TInt TAknFepInputStateCandidateBase::MapKeyToIndex(TInt aKey) |
|
53 { |
|
54 TInt index = aKey - EPtiKey0; // get zero-based value first |
|
55 return !index ? 9 : --index; // map it for one-based keys... |
|
56 } |
|
57 |
|
58 #endif //__AKN_FEP_UI_INPUT_STATE_CANDIDATE_BASE_H__ |
|
59 |
|
60 // End of file |