|
1 /* |
|
2 * Copyright (c) 2002-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: vkb number keymapping manager header file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AKNFEPVKBNUMERICKEYMAPPINGMGR_H |
|
20 #define C_AKNFEPVKBNUMERICKEYMAPPINGMGR_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <barsread.h> |
|
25 |
|
26 /** |
|
27 * vkb number keymapping manager class |
|
28 * |
|
29 * This class is to manage number keymapping. When this class contructs, keymapping |
|
30 * manager loads all mapping number key string from resource file. User can get |
|
31 * mapping key string according to keymapping id and delete all internal value when |
|
32 * destructing or calling reset. |
|
33 * |
|
34 * @lib peninputvkbcn.lib |
|
35 * @since S60 v3.2 |
|
36 */ |
|
37 class CAknFepVkbNumericKepMappingMgr: public CBase |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Symbian constructor |
|
44 * |
|
45 * @since S60 v3.2 |
|
46 * @param aReader Resource reader |
|
47 * @return Pointer to keymapping manager |
|
48 */ |
|
49 static CAknFepVkbNumericKepMappingMgr* NewL(TResourceReader aReader); |
|
50 |
|
51 /** |
|
52 * Symbian constructor |
|
53 * |
|
54 * @since S60 v3.2 |
|
55 * @param aReader Resource reader |
|
56 * @return Pointer to keymapping manager |
|
57 */ |
|
58 static CAknFepVkbNumericKepMappingMgr* NewLC(TResourceReader aReader); |
|
59 |
|
60 /** |
|
61 * Destructor |
|
62 * |
|
63 * @since S60 v3.2 |
|
64 * @return None |
|
65 */ |
|
66 virtual ~CAknFepVkbNumericKepMappingMgr(); |
|
67 |
|
68 /** |
|
69 * Remove all keymapping id and string in array |
|
70 * |
|
71 * @since S60 v3.2 |
|
72 * @return None |
|
73 */ |
|
74 void Reset(); |
|
75 |
|
76 /** |
|
77 * Get Keymapping id array item count |
|
78 * |
|
79 * @since S60 v3.2 |
|
80 * @return Key mapping array item count |
|
81 */ |
|
82 TInt Count() const; |
|
83 |
|
84 /** |
|
85 * Get number keymapping string |
|
86 * |
|
87 * @since S60 v3.2 |
|
88 * @param aKeyMappingId Keymapping id |
|
89 * @return Pointer to keymapping string |
|
90 */ |
|
91 HBufC* KeyMappingStringL(const TInt aKeyMappingId) const; |
|
92 |
|
93 protected: |
|
94 |
|
95 /** |
|
96 * Symbian second-phase constructor |
|
97 * |
|
98 * @since S60 v3.2 |
|
99 * @param aReader Resource reader |
|
100 * @return None |
|
101 */ |
|
102 void ConstructL(TResourceReader aReader); |
|
103 |
|
104 private: // Data |
|
105 |
|
106 /** |
|
107 * Keymapping id array |
|
108 */ |
|
109 RArray<TInt> iKeyMappingIdList; |
|
110 |
|
111 /** |
|
112 * Keymapping string array |
|
113 */ |
|
114 RPointerArray<HBufC> iKeyMappingStringList; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // C_AKNFEPVKBNUMERICKEYMAPPINGMGR_H |
|
119 |
|
120 // End Of File |