author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:15:33 +0300 | |
branch | RCL_3 |
changeset 85 | 38bb213f60ba |
parent 63 | f4a778e096c2 |
permissions | -rw-r--r-- |
63 | 1 |
/* |
2 |
* Copyright (c) 2006-2007 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: Identifies a contact in cache pools |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef C_PCS_ALGORITHM_2 |
|
19 |
#define C_PCS_ALGORITHM_2 |
|
20 |
||
21 |
// INCLUDES |
|
22 |
#include <e32cmn.h> |
|
23 |
#include <s32mem.h> |
|
24 |
#include <e32hashtab.h> |
|
25 |
#include <e32property.h> |
|
26 |
#include <centralrepository.h> |
|
27 |
||
28 |
#include "PSAlgorithmInternalCRKeys.h" |
|
29 |
#include "CPcsPlugin.h" |
|
30 |
#include "CPsData.h" |
|
31 |
#include "CPsClientData.h" |
|
32 |
#include "CPcsCache.h" |
|
33 |
#include "CPcsKeyMap.h" |
|
34 |
#include "CPsQuery.h" |
|
35 |
#include "CPsPattern.h" |
|
36 |
#include "mdatastoreobserver.h" |
|
37 |
#include "mstorelistobserver.h" |
|
38 |
#include <FindUtil.h> |
|
39 |
||
40 |
const TInt KSpace = 32; |
|
41 |
||
42 |
// FORWARD DECLARATION |
|
43 |
class CPsData; |
|
44 |
class CPsClientData; |
|
45 |
class CPsDataPluginInterface; |
|
46 |
class CPsQuery; |
|
47 |
class CPcsAlgorithm2Helper; |
|
48 |
class CPcsAlgorithm2MultiSearchHelper; |
|
49 |
class CPtiEngine; |
|
50 |
class CRepository; |
|
51 |
class CFindUtilChineseECE; |
|
52 |
class CFindUtil; |
|
53 |
||
54 |
// CLASS DECLARATION |
|
55 |
class CPcsAlgorithm2 : public CPcsPlugin, |
|
56 |
public MDataStoreObserver, |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
57 |
public MStoreListObserver, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
58 |
public MFindStringConverter |
63 | 59 |
{ |
60 |
public: |
|
61 |
||
62 |
/** |
|
63 |
* Two phase construction |
|
64 |
*/ |
|
65 |
static CPcsAlgorithm2* NewL(); |
|
66 |
||
67 |
/** |
|
68 |
* Destructor |
|
69 |
*/ |
|
70 |
virtual ~CPcsAlgorithm2(); |
|
71 |
||
72 |
||
73 |
public: |
|
74 |
||
75 |
// ------------------------ From base class CPcsPlugin ---------------- |
|
76 |
||
77 |
/** |
|
78 |
* Search Function for cache |
|
79 |
*/ |
|
80 |
void PerformSearchL(const CPsSettings& aPcsSettings, |
|
81 |
CPsQuery& aCondition, |
|
82 |
RPointerArray<CPsClientData>& aData, |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
83 |
RPointerArray<CPsPattern>& aPattern); |
63 | 84 |
|
85 |
/** |
|
86 |
* Search Function for input string |
|
87 |
*/ |
|
88 |
void SearchInputL(CPsQuery& aSearchQuery, |
|
89 |
TDesC& aSearchData, |
|
90 |
RPointerArray<TDesC>& aMatchSet, |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
91 |
RArray<TPsMatchLocation>& aMatchLocation ); |
63 | 92 |
|
93 |
||
94 |
/** |
|
95 |
* Performs search on a input string, and return result also as a string |
|
96 |
*/ |
|
97 |
void SearchMatchStringL( CPsQuery& aSearchQuery, |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
98 |
TDesC& aSearchData, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
99 |
TDes& aMatch ); |
63 | 100 |
|
101 |
/** |
|
102 |
* Returns ETrue if this language is supported |
|
103 |
*/ |
|
104 |
TBool IsLanguageSupportedL(const TUint32 aLanguage); |
|
105 |
||
106 |
/** |
|
107 |
* Returns supported data fields for a cache |
|
108 |
*/ |
|
109 |
void GetDataOrderL( TDesC& aURI, RArray<TInt>& aDataOrder ); |
|
110 |
||
111 |
/** |
|
112 |
* Returns supported sort order for a cache |
|
113 |
*/ |
|
114 |
void GetSortOrderL( TDesC& aURI, RArray<TInt>& aDataOrder ); |
|
115 |
||
116 |
/** |
|
117 |
* Sets the sort order for a cache |
|
118 |
*/ |
|
119 |
void ChangeSortOrderL(TDesC& aURI, RArray<TInt>& aSortOrder); |
|
120 |
||
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
121 |
/** |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
122 |
* Get the Adaptive Grid for one or more URIs |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
123 |
*/ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
124 |
void GetAdaptiveGridL( const MDesCArray& aURIs, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
125 |
const TBool aCompanyName, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
126 |
TDes& aAdaptiveGrid ); |
63 | 127 |
|
128 |
// -------------------------------------------------------------------- |
|
129 |
||
130 |
public: |
|
131 |
||
132 |
// --------------- From base class MDataStoreObserver ----------------- |
|
133 |
||
134 |
/** |
|
135 |
* Add a contact to the cache |
|
136 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
137 |
void AddData ( TDesC& aDataStore, CPsData* aData); |
63 | 138 |
|
139 |
/** |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
140 |
* Remove a contact from the cache based on contact id |
63 | 141 |
*/ |
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
142 |
void RemoveData ( TDesC& aDataStore, TInt aItemId ); |
63 | 143 |
|
144 |
/** |
|
145 |
* Removes all the contacts from a particular datastore |
|
146 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
147 |
void RemoveAll ( TDesC& aDataStore); |
63 | 148 |
|
149 |
/** |
|
150 |
* Updates the caching status for a particular datastore |
|
151 |
*/ |
|
152 |
void UpdateCachingStatus(TDesC& aDataStore, TInt aStatus); |
|
153 |
||
154 |
// -------------------------------------------------------------------- |
|
155 |
||
156 |
public: |
|
157 |
||
158 |
// ----------------- From base class MStoreListObserver --------------- |
|
159 |
||
160 |
/** |
|
161 |
* This method is called whenever any new store has been added |
|
162 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
163 |
void AddDataStore ( TDesC& aDataStore); |
63 | 164 |
|
165 |
/** |
|
166 |
* This method is called whenever a data store is removed |
|
167 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
168 |
void RemoveDataStore ( TDesC& aDataStore); |
63 | 169 |
|
170 |
// -------------------------------------------------------------------- |
|
171 |
||
172 |
public: |
|
173 |
||
174 |
/** |
|
175 |
* Returns the array index of cache (in iPcsCache) for a datastore |
|
176 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
177 |
TInt GetCacheIndex(TDesC& aDataStore); |
63 | 178 |
|
179 |
/** |
|
180 |
* Return the cache instance at a specific array index |
|
181 |
*/ |
|
182 |
inline CPcsCache* GetCache(TInt aIndex) |
|
183 |
{ |
|
184 |
return iPcsCache[aIndex]; |
|
185 |
} |
|
186 |
||
187 |
/** |
|
188 |
* Returns the key map instance |
|
189 |
*/ |
|
190 |
inline CPcsKeyMap* GetKeyMap() |
|
191 |
{ |
|
192 |
return iKeyMap; |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
193 |
}; |
63 | 194 |
|
195 |
||
196 |
private: |
|
197 |
||
198 |
/** |
|
199 |
* Constructor |
|
200 |
*/ |
|
201 |
CPcsAlgorithm2(); |
|
202 |
||
203 |
/** |
|
204 |
* 2nd phase construtor |
|
205 |
*/ |
|
206 |
void ConstructL(); |
|
207 |
||
208 |
private: |
|
209 |
||
210 |
/** |
|
211 |
* Define a P&S property with given key under the internal category |
|
212 |
* UID of PCS. Leave if definition fails for any other reason than |
|
213 |
* key already existing. |
|
214 |
*/ |
|
215 |
void DefinePropertyL( TPcsInternalKeyCacheStatus aPsKey ); |
|
216 |
||
217 |
/** |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
218 |
* Replace occurance of "0" in ITU-T mode with space |
63 | 219 |
*/ |
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
220 |
TBool ReplaceZeroWithSpaceL(CPsQuery& aQuery); |
63 | 221 |
|
222 |
/** |
|
223 |
* Search function helper |
|
224 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
225 |
void DoSearchL(const CPsSettings& aPcsSettings, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
226 |
CPsQuery& aCondition, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
227 |
RPointerArray<CPsData>& searchResults, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
228 |
RPointerArray<CPsPattern>& searchSeqs ); |
63 | 229 |
|
230 |
/** |
|
231 |
* Search function helper |
|
232 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
233 |
void DoSearchInputL(CPsQuery& aQuery, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
234 |
TDesC& aData, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
235 |
RPointerArray<TDesC>& searchSeqs, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
236 |
RArray<TPsMatchLocation>& aMatchLocation ); |
63 | 237 |
|
238 |
/** |
|
239 |
* Returns the index corresponding a URI in iDataStoreUri |
|
240 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
241 |
TInt FindStoreUri ( TDesC& aDataStoreUri ); |
63 | 242 |
|
243 |
/** |
|
244 |
* Function to return all cached content |
|
245 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
246 |
void GetAllContentsL(const CPsSettings& aPcsSettings, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
247 |
RPointerArray<CPsData>& searchResults ); |
63 | 248 |
|
249 |
/** |
|
250 |
* Checks if search is on groups |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
251 |
* Return ETrue if there is a valid group URI |
63 | 252 |
*/ |
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
253 |
TBool IsGroupSearchL ( CPsSettings& aSettings, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
254 |
RArray<TInt>& aGroupIdArray ); |
63 | 255 |
|
256 |
/** |
|
257 |
* Utility function to replace groups uri with that of contacts uri |
|
258 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
259 |
void ReplaceGroupsUriL ( CPsSettings& aSettings ); |
63 | 260 |
|
261 |
/** |
|
262 |
* Filters the search results array for groups |
|
263 |
*/ |
|
264 |
void FilterSearchResultsForGroupsL(RArray<TInt>& aGroupContactIds, |
|
265 |
RPointerArray<CPsData>& aSearchResults); |
|
266 |
||
267 |
/** |
|
268 |
* Get the list of contact ids that belong to a group. |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
269 |
*/ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
270 |
void GetContactsInGroupL ( TInt aGroupId, |
63 | 271 |
RArray<TInt>& aGroupContactIds ); |
272 |
||
273 |
/** |
|
274 |
* Read sort order for a data store from the central repository |
|
275 |
* @param aURI - The data store URI for which sort order is required |
|
276 |
* @param aSortOrder - The persisted sort order from the cenrep |
|
277 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
278 |
void ReadSortOrderFromCenRepL ( TDesC& aURI, |
63 | 279 |
RArray<TInt>& aSortOrder ); |
280 |
||
281 |
/** Write sort order for a data store to the central repository |
|
282 |
* @param aURI - The data store URI for which sort order is to be persisted |
|
283 |
* @param aSortOrder - The sort order to be persisted |
|
284 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
285 |
void WriteSortOrderToCenRepL ( TDesC& aURI, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
286 |
RArray<TInt>& aSortOrder ); |
63 | 287 |
|
288 |
/** |
|
289 |
* Utility function that sets the caching error value |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
290 |
*/ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
291 |
void SetCachingError ( TDesC& aDataStore, |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
292 |
TInt aError ); |
63 | 293 |
|
294 |
/** |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
295 |
* Write the content required by client |
63 | 296 |
*/ |
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
297 |
CPsClientData* WriteClientDataL ( CPsData& aPsData ); |
63 | 298 |
|
299 |
/** |
|
300 |
* Function to return data base URI for an internal identifier |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
301 |
*/ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
302 |
TDesC& GetUriForIdL( TUint8 aUriId ); |
63 | 303 |
|
304 |
/** |
|
305 |
* Inform clients about update happened on the cache |
|
306 |
*/ |
|
307 |
void HandleCacheUpdated( TCachingStatus aStatus ); |
|
308 |
||
309 |
/** |
|
310 |
* launch plugins by idle |
|
311 |
*/ |
|
312 |
void DoLaunchPluginsL(); |
|
313 |
||
314 |
/** |
|
315 |
* launch plugins |
|
316 |
*/ |
|
317 |
static TInt DoLaunchPluginsL(TAny* aPtr); |
|
318 |
||
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
319 |
public: |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
320 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
321 |
inline TInt GetFirstNameIndex() |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
322 |
{ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
323 |
return iFirstNameIndex; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
324 |
} |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
325 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
326 |
inline TInt GetLastNameIndex() |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
327 |
{ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
328 |
return iLastNameIndex; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
329 |
} |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
330 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
331 |
inline CFindUtilChineseECE* FindUtilECE() |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
332 |
{ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
333 |
return iFindUtilECE; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
334 |
} |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
335 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
336 |
inline CFindUtil* FindUtil() |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
337 |
{ |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
338 |
return iFindUtil; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
339 |
} |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
340 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
341 |
void ReconstructCacheDataL(); |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
342 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
343 |
public: // From MFindStringConverter |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
344 |
void Converter(const TDesC& aSourStr, TDes& aDestStr); |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
345 |
|
63 | 346 |
private: |
347 |
||
348 |
/** |
|
349 |
* Instance of contacts cache |
|
350 |
* Own |
|
351 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
352 |
RPointerArray<CPcsCache> iPcsCache; |
63 | 353 |
|
354 |
/** |
|
355 |
* Keeps the count of caches |
|
356 |
*/ |
|
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
357 |
TUint8 iCacheCount; |
63 | 358 |
|
359 |
/** |
|
360 |
* Instance of key map |
|
361 |
* Own. |
|
362 |
*/ |
|
363 |
CPcsKeyMap* iKeyMap; |
|
364 |
||
365 |
/** |
|
366 |
* Data plugin interface. Owned |
|
367 |
*/ |
|
368 |
CPsDataPluginInterface *iPsDataPluginInterface; |
|
369 |
||
370 |
/** |
|
371 |
* Instance of algorithm helper. Owned |
|
372 |
*/ |
|
373 |
CPcsAlgorithm2Helper* iHelper; |
|
374 |
CPcsAlgorithm2MultiSearchHelper* iMultiSearchHelper; |
|
375 |
||
376 |
||
377 |
/** |
|
378 |
* Global that keeps the updated status of the caching |
|
379 |
*/ |
|
380 |
TCachingStatus iCacheStatus; |
|
381 |
||
382 |
/** |
|
383 |
* Global that stores any error that occurs while caching |
|
384 |
*/ |
|
385 |
TInt iCacheError; |
|
386 |
||
387 |
// Own: Find util used to match contacts and construct character grid |
|
388 |
CFindUtilChineseECE* iFindUtilECE; |
|
389 |
||
85
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
390 |
// Own: Find util used to match contacts and construct character grid |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
391 |
CFindUtil* iFindUtil; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
392 |
|
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
393 |
// keep the index for Firstname and Lastname |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
394 |
TInt iFirstNameIndex; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
395 |
TInt iLastNameIndex; |
38bb213f60ba
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
63
diff
changeset
|
396 |
|
63 | 397 |
/** |
398 |
* plugin laucher, make the plugin instantiation async |
|
399 |
*/ |
|
400 |
CIdle* iPluginLauncher; |
|
401 |
||
402 |
}; |
|
403 |
||
404 |
||
405 |
#endif // C_PCS_ALGORITHM_2 |