equal
deleted
inserted
replaced
67 * Gets keycode according to current keyboard mapping. |
67 * Gets keycode according to current keyboard mapping. |
68 */ |
68 */ |
69 IMPORT_C TInt NumericKeyCode( const TKeyEvent& aKeyEvent ); |
69 IMPORT_C TInt NumericKeyCode( const TKeyEvent& aKeyEvent ); |
70 |
70 |
71 /** |
71 /** |
|
72 * Converts the key code of the event to numeric mode code and removes |
|
73 * any modifiers so that editor component will not do any more conversions. |
|
74 * Does nothing if the key doesn't map to any numeric mode characters. |
|
75 * @return ETrue if key contained any numeric mode character |
|
76 */ |
|
77 IMPORT_C TBool ConvertToNumeric( TKeyEvent& aKeyEvent ); |
|
78 |
|
79 /** |
72 * Add qwerty mode observer. |
80 * Add qwerty mode observer. |
73 */ |
81 */ |
74 IMPORT_C void AddQwertyModeObserverL( MPhoneQwertyModeObserver& aObserver ); |
82 IMPORT_C void AddQwertyModeObserverL( MPhoneQwertyModeObserver& aObserver ); |
75 |
83 |
76 private: |
84 private: |
92 |
100 |
93 /** |
101 /** |
94 * C++ default constructor. |
102 * C++ default constructor. |
95 */ |
103 */ |
96 CPhoneQwertyHandler(); |
104 CPhoneQwertyHandler(); |
97 |
105 |
98 /** |
106 /** |
99 * By default Symbian 2nd phase constructor is private. |
107 * By default Symbian 2nd phase constructor is private. |
100 */ |
108 */ |
101 void ConstructL(); |
109 void ConstructL(); |
102 |
110 |
103 /** |
111 /** |
104 * LoadNumericKeyBindings |
112 * LoadNumericKeyBindings |
105 */ |
113 */ |
106 void LoadNumericKeyBindings( TInt aLanguage, TInt aKeyboard ); |
114 void LoadNumericKeyBindings( TInt aLanguage, TInt aKeyboard ); |
|
115 |
|
116 /** |
|
117 * Check if given character is a number character |
|
118 */ |
|
119 TBool IsNumber( TText aChar ) const; |
107 |
120 |
108 |
121 |
109 private: // Data |
122 private: // Data |
110 |
123 |
111 // Input language |
124 // Input language |
112 TInt iInputLanguageId; |
125 TInt iInputLanguageId; |
113 |
126 |
114 // Qwerty mode |
127 // Qwerty mode |
115 TInt iQwertyMode; |
128 TInt iQwertyMode; |
116 |
129 |
117 // Language setting monitor |
130 // Language setting monitor |
118 CPhoneLangSettingMonitor* iLangSettingMonitor; |
131 CPhoneLangSettingMonitor* iLangSettingMonitor; |
119 |
132 |
120 // Qwerty mode monitor |
133 // Qwerty mode monitor |
121 CPhoneQwertyModeMonitor* iQwertyModeMonitor; |
134 CPhoneQwertyModeMonitor* iQwertyModeMonitor; |
122 |
135 |