1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
65 /** |
65 /** |
66 * PS Keyboard Modes |
66 * PS Keyboard Modes |
67 */ |
67 */ |
68 enum TKeyboardModes |
68 enum TKeyboardModes |
69 { |
69 { |
70 EItut, |
70 /** |
71 EQwerty, |
71 * Predictive matching mode with default keyboard. |
72 EModeUndefined |
72 * The key mappings used are either those of the first available |
|
73 * hardware keyboard or those of virtual-ITU-T if no hardware keyboard |
|
74 * is available. |
|
75 */ |
|
76 EPredictiveDefaultKeyboard = 0, |
|
77 |
|
78 /** |
|
79 * Non-predictive matching mode. |
|
80 * Keyboard mappings of any kind are not used. Entered characters are |
|
81 * matched just as themselves, but using locale specific tolerant |
|
82 * matching rules (i.e. the collated comparison). |
|
83 */ |
|
84 ENonPredictive = 1, |
|
85 |
|
86 /** |
|
87 * Predictive matching using 12-key ITU-T keymappings. |
|
88 */ |
|
89 EPredictiveItuT = 2, |
|
90 |
|
91 /** |
|
92 * Predictive matching using hardware QWERTY key mappings. |
|
93 * Also half-QWERTY is here considered as QWERTY. |
|
94 */ |
|
95 EPredictiveQwerty = 3, |
|
96 |
|
97 // These modes are provided for backward source and binary compatibility. |
|
98 EItut = EPredictiveDefaultKeyboard, //! deprecated |
|
99 EQwerty = ENonPredictive, //! deprecated |
|
100 |
|
101 EModeUndefined = -1 |
73 }; |
102 }; |
74 |
103 |
75 /** |
104 /** |
76 * Different states of Caching |
105 * Different states of Caching |
77 */ |
106 */ |
115 const TInt KSearchResultsBufferLen = 8192; |
144 const TInt KSearchResultsBufferLen = 8192; |
116 |
145 |
117 /** |
146 /** |
118 * Data Stores Constants |
147 * Data Stores Constants |
119 */ |
148 */ |
120 _LIT(KVPbkDefaultCntDbURI, "cntdb://c:contacts.cdb"); //Phone Store |
149 _LIT(KVPbkDefaultCntDbURI, "cntdb://c:contacts.cdb"); // Phone Store |
121 _LIT(KVPbkSimGlobalAdnURI, "sim://global_adn"); // SIM ADN Store |
150 _LIT(KVPbkSimGlobalAdnURI, "sim://global_adn"); // SIM ADN Store |
122 _LIT(KVPbkSimGlobalFdnURI, "sim://global_fdn"); // SIM FDN Store |
151 _LIT(KVPbkSimGlobalFdnURI, "sim://global_fdn"); // SIM FDN Store |
123 _LIT(KVPbkSimGlobalSdnURI, "sim://global_sdn"); // SIM SDN Store |
152 _LIT(KVPbkSimGlobalSdnURI, "sim://global_sdn"); // SIM SDN Store |
124 _LIT(KVPbkDefaultGrpDbURI, "cntdb://c:contacts.gdb"); // groups Store |
153 _LIT(KVPbkDefaultGrpDbURI, "cntdb://c:contacts.gdb"); // Groups Store |
125 |
154 |
126 /** |
155 /** |
127 * Data Structure to identify the matched locations |
156 * Data Structure to identify the matched locations |
128 */ |
157 */ |
129 struct TPsMatchLocation |
158 struct TPsMatchLocation |
130 { |
159 { |
131 public: |
160 public: |
132 TInt index; // starting index for the match sequence |
161 TInt index; // Starting index for the match sequence |
133 TInt length; // lenght of the match sequence |
162 TInt length; // Lenght of the match sequence |
134 TBidiText::TDirectionality direction; // directionality for the sequence |
163 TBidiText::TDirectionality direction; // Directionality for the sequence |
135 }; |
164 }; |
136 |
165 |
137 /** |
166 /** |
138 * Character constants |
167 * Character constants |
139 */ |
168 */ |