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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
//SYSTEM INCLUDES
|
|
20 |
#include <vpbkeng.rsg>
|
|
21 |
#include <collate.h>
|
|
22 |
|
|
23 |
//USER INCLUDES
|
|
24 |
#include "pstestqueryhandler.h"
|
|
25 |
#include "CPsQuery.h"
|
|
26 |
#include "CPsQueryItem.h"
|
|
27 |
#include "CPsSettings.h"
|
|
28 |
|
|
29 |
// ---------------------------------------------------------------------------------
|
|
30 |
// 1st phase constructor
|
|
31 |
// ---------------------------------------------------------------------------------
|
|
32 |
CPsTestQueryHandler* CPsTestQueryHandler::NewL()
|
|
33 |
{
|
|
34 |
CPsTestQueryHandler* self = new ( ELeave ) CPsTestQueryHandler();
|
|
35 |
CleanupStack::PushL( self );
|
|
36 |
self->ConstructL();
|
|
37 |
CleanupStack::Pop( self );
|
|
38 |
|
|
39 |
return self;
|
|
40 |
}
|
|
41 |
|
|
42 |
// ---------------------------------------------------------------------------------
|
|
43 |
// Constructor
|
|
44 |
// ---------------------------------------------------------------------------------
|
|
45 |
//
|
|
46 |
CPsTestQueryHandler::CPsTestQueryHandler()
|
|
47 |
{
|
|
48 |
}
|
|
49 |
|
|
50 |
// ---------------------------------------------------------------------------------
|
|
51 |
// CPsTestQueryHandler::ConstructL()
|
|
52 |
// 2nd phase constructor
|
|
53 |
// ---------------------------------------------------------------------------------
|
|
54 |
void CPsTestQueryHandler::ConstructL()
|
|
55 |
{
|
|
56 |
iAsyncHandler = CPSRequestHandler::NewL();
|
|
57 |
iAsyncHandler->AddObserverL(this);
|
|
58 |
iSettings = CPsSettings::NewL();
|
|
59 |
iPsQuery = CPsQuery::NewL();
|
|
60 |
iCurrentTestCase = EDefaultCase;
|
|
61 |
iCurrentErrorCode = KErrNone;
|
|
62 |
}
|
|
63 |
|
|
64 |
// ---------------------------------------------------------------------------------
|
|
65 |
// Destructor
|
|
66 |
// ---------------------------------------------------------------------------------
|
|
67 |
CPsTestQueryHandler::~CPsTestQueryHandler()
|
|
68 |
{
|
|
69 |
if(iAsyncHandler)
|
|
70 |
{
|
|
71 |
delete iAsyncHandler;
|
|
72 |
iAsyncHandler = NULL;
|
|
73 |
}
|
|
74 |
if(iSettings)
|
|
75 |
{
|
|
76 |
delete iSettings;
|
|
77 |
iSettings = NULL;
|
|
78 |
}
|
|
79 |
if(iPsQuery)
|
|
80 |
{
|
|
81 |
delete iPsQuery;
|
|
82 |
iPsQuery = NULL;
|
|
83 |
}
|
|
84 |
iContactsList.Reset();
|
|
85 |
}
|
|
86 |
|
|
87 |
// ---------------------------------------------------------------------------------
|
|
88 |
// CPsTestQueryHandler::SetCurrentTestCase()
|
|
89 |
//
|
|
90 |
// ---------------------------------------------------------------------------------
|
|
91 |
void CPsTestQueryHandler :: SetCurrentTestCase(TTestCase aCurrentTestCase)
|
|
92 |
{
|
|
93 |
iCurrentTestCase = aCurrentTestCase;
|
|
94 |
}
|
|
95 |
|
|
96 |
// ---------------------------------------------------------------------------------
|
|
97 |
// CPsTestQueryHandler::SetCurrentErrorCode()
|
|
98 |
//
|
|
99 |
// ---------------------------------------------------------------------------------
|
|
100 |
void CPsTestQueryHandler :: SetCurrentErrorCode(TInt aCurrentErrorCode)
|
|
101 |
{
|
|
102 |
iCurrentErrorCode = aCurrentErrorCode;
|
|
103 |
}
|
|
104 |
|
|
105 |
// ---------------------------------------------------------------------------------
|
|
106 |
// CPsTestQueryHandler::CurrentErrorCode()
|
|
107 |
//
|
|
108 |
// ---------------------------------------------------------------------------------
|
|
109 |
TInt CPsTestQueryHandler :: CurrentErrorCode()
|
|
110 |
{
|
|
111 |
return(iCurrentErrorCode);
|
|
112 |
}
|
|
113 |
|
|
114 |
// ---------------------------------------------------------------------------------
|
|
115 |
// CPsTestQueryHandler::GetAllContentsL()
|
|
116 |
//
|
|
117 |
// ---------------------------------------------------------------------------------
|
|
118 |
void CPsTestQueryHandler::GetAllContentsL()
|
|
119 |
{
|
|
120 |
iAsyncHandler->GetAllContentsL();
|
|
121 |
}
|
|
122 |
|
|
123 |
// ---------------------------------------------------------------------------------
|
|
124 |
// CPsTestQueryHandler::StartSearchL()
|
|
125 |
//
|
|
126 |
// ---------------------------------------------------------------------------------
|
|
127 |
void CPsTestQueryHandler :: StartSearchL(const CPsQuery& aSearchQuery)
|
|
128 |
{
|
|
129 |
// Send a search request
|
|
130 |
iAsyncHandler->SearchL(aSearchQuery);
|
|
131 |
}
|
|
132 |
|
|
133 |
// ---------------------------------------------------------------------------------
|
|
134 |
// CPsTestQueryHandler::TestSearchL()
|
|
135 |
//
|
|
136 |
// ---------------------------------------------------------------------------------
|
|
137 |
void CPsTestQueryHandler :: TestSearchL(const TDesC& aBuf, TKeyboardModes aMode)
|
|
138 |
{
|
|
139 |
FormTestSearchQueryL(aBuf, aMode);
|
|
140 |
|
|
141 |
// Send a search request
|
|
142 |
iAsyncHandler->SearchL(*iPsQuery);
|
|
143 |
}
|
|
144 |
|
|
145 |
// ---------------------------------------------------------------------------------
|
|
146 |
// CPsTestQueryHandler::InputSearchL()
|
|
147 |
//
|
|
148 |
// ---------------------------------------------------------------------------------
|
|
149 |
void CPsTestQueryHandler :: InputSearchL(const CPsQuery& aSearchQuery, const TDesC& aInput, RPointerArray<TDesC>& aResultSet)
|
|
150 |
{
|
|
151 |
SetCurrentErrorCode(KErrNotFound);
|
|
152 |
|
|
153 |
//to obtain the result;
|
|
154 |
RPointerArray<TDesC> matchSet;
|
|
155 |
RArray<TPsMatchLocation> matchLocation;
|
|
156 |
|
|
157 |
// send a search request
|
|
158 |
iAsyncHandler->SearchL(aSearchQuery, aInput, matchSet, matchLocation);
|
|
159 |
|
|
160 |
// compare the obtained result with desired result set
|
|
161 |
if(matchSet.Count() == aResultSet.Count())
|
|
162 |
{
|
|
163 |
TInt count = matchSet.Count();
|
|
164 |
if(count == 0)
|
|
165 |
{
|
|
166 |
SetCurrentErrorCode(KErrNone);
|
|
167 |
}
|
|
168 |
for(TInt i = 0; i < count; i++)
|
|
169 |
{
|
|
170 |
TBufC<20> buf1(*(aResultSet[i]));
|
|
171 |
for(TInt j = 0; j < count; j++)
|
|
172 |
{
|
|
173 |
TBufC<20> buf2(*(matchSet[j]));
|
|
174 |
if(buf1.Compare(buf2) == 0)
|
|
175 |
{
|
|
176 |
SetCurrentErrorCode(KErrNone);
|
|
177 |
break;
|
|
178 |
}
|
|
179 |
}
|
|
180 |
}
|
|
181 |
}
|
|
182 |
}
|
|
183 |
|
|
184 |
// ---------------------------------------------------------------------------------
|
|
185 |
// CPsTestQueryHandler::SetSearchSettingsL()
|
|
186 |
//
|
|
187 |
// ---------------------------------------------------------------------------------
|
|
188 |
void CPsTestQueryHandler :: SetSearchSettingsL(RPointerArray<TDesC>& aSearchUri, RArray<TInt>& aDisplayFields, TInt aMaxResults)
|
|
189 |
{
|
|
190 |
iSettings->SetSearchUrisL(aSearchUri);
|
|
191 |
iSettings->SetDisplayFieldsL(aDisplayFields);
|
|
192 |
iSettings->SetMaxResults(aMaxResults);
|
|
193 |
|
|
194 |
iAsyncHandler->SetSearchSettingsL(*iSettings);
|
|
195 |
}
|
|
196 |
|
|
197 |
// ---------------------------------------------------------------------------------
|
|
198 |
// CPsTestQueryHandler::FormTestSearchQueryL()
|
|
199 |
//
|
|
200 |
// ---------------------------------------------------------------------------------
|
|
201 |
void CPsTestQueryHandler :: FormTestSearchQueryL(const TDesC& aBuf, TKeyboardModes aMode)
|
|
202 |
{
|
|
203 |
for ( int i = 0; i < aBuf.Length(); i++ )
|
|
204 |
{
|
|
205 |
CPsQueryItem* item = CPsQueryItem::NewL();
|
|
206 |
item->SetCharacter(aBuf[i]);
|
|
207 |
if(aMode != EModeUndefined)
|
|
208 |
{
|
|
209 |
item->SetMode(aMode);
|
|
210 |
}
|
|
211 |
iPsQuery->AppendL(*item);
|
|
212 |
}
|
|
213 |
|
|
214 |
CPsQueryItem* item1 = CPsQueryItem::NewL();
|
|
215 |
item1->SetCharacter(aBuf[0]);
|
|
216 |
item1->SetMode(EItut);
|
|
217 |
|
|
218 |
iPsQuery->InsertL(*item1,0);
|
|
219 |
|
|
220 |
iPsQuery->Remove(0);
|
|
221 |
|
|
222 |
iPsQuery->InsertL(*item1,aBuf.Length()+2);
|
|
223 |
|
|
224 |
iPsQuery->Remove(-1);
|
|
225 |
}
|
|
226 |
|
|
227 |
// ---------------------------------------------------------------------------------
|
|
228 |
// CPsTestQueryHandler::HandlePsResultsUpdate()
|
|
229 |
//
|
|
230 |
// ---------------------------------------------------------------------------------
|
|
231 |
void CPsTestQueryHandler :: HandlePsResultsUpdate(RPointerArray<CPsClientData>& searchResults, RPointerArray<TDesC>& /*searchSeqs*/)
|
|
232 |
{
|
|
233 |
// search results should always be a subset of iContactslist
|
|
234 |
TInt itemstoshow = searchResults.Count();
|
|
235 |
switch(iCurrentTestCase)
|
|
236 |
{
|
|
237 |
case EAddContact:
|
|
238 |
{
|
|
239 |
VerifyResult(searchResults, ETrue);
|
|
240 |
break;
|
|
241 |
}
|
|
242 |
case EDeleteContact:
|
|
243 |
case EAddContactNeg:
|
|
244 |
case EFilter:
|
|
245 |
{
|
|
246 |
VerifyResult(searchResults, EFalse);
|
|
247 |
break;
|
|
248 |
}
|
|
249 |
/*
|
|
250 |
case EPsData:
|
|
251 |
{
|
|
252 |
SwitchEPsData(searchResults);
|
|
253 |
break;
|
|
254 |
}
|
|
255 |
*/
|
|
256 |
case ETruncateResult:
|
|
257 |
{
|
|
258 |
SetCurrentErrorCode(KErrGeneral);
|
|
259 |
if(itemstoshow == (iContactsList.Count() - 2))
|
|
260 |
{
|
|
261 |
// SetCurrentErrorCode(KErrNone);
|
|
262 |
VerifyResult(searchResults, ETrue);
|
|
263 |
}
|
|
264 |
break;
|
|
265 |
}
|
|
266 |
case ESort:
|
|
267 |
{
|
|
268 |
SetCurrentErrorCode(KErrNotFound);
|
|
269 |
|
|
270 |
// first verify if the contact items created are present in result set
|
|
271 |
VerifyResult(searchResults, ETrue);
|
|
272 |
|
|
273 |
if(CurrentErrorCode() == KErrNone)
|
|
274 |
{
|
|
275 |
// then verify if the result is sorted or not
|
|
276 |
if( !VerifySortResult(searchResults) )
|
|
277 |
{
|
|
278 |
SetCurrentErrorCode(KErrGeneral);
|
|
279 |
}
|
|
280 |
}
|
|
281 |
|
|
282 |
break;
|
|
283 |
}
|
|
284 |
default:
|
|
285 |
{
|
|
286 |
SetCurrentErrorCode(KErrNone);
|
|
287 |
break;
|
|
288 |
}
|
|
289 |
}
|
|
290 |
CActiveScheduler::Stop();
|
|
291 |
}
|
|
292 |
|
|
293 |
// ---------------------------------------------------------------------------------
|
|
294 |
// CPsTestQueryHandler::ShutDownL()
|
|
295 |
//
|
|
296 |
// ---------------------------------------------------------------------------------
|
|
297 |
void CPsTestQueryHandler :: ShutDownL()
|
|
298 |
{
|
|
299 |
iAsyncHandler->ShutdownServerL();
|
|
300 |
}
|
|
301 |
|
|
302 |
// ---------------------------------------------------------------------------------
|
|
303 |
// CPsTestQueryHandler::Cancel()
|
|
304 |
//
|
|
305 |
// ---------------------------------------------------------------------------------
|
|
306 |
void CPsTestQueryHandler :: Cancel()
|
|
307 |
{
|
|
308 |
iAsyncHandler->CancelSearch();
|
|
309 |
}
|
|
310 |
|
|
311 |
// ---------------------------------------------------------------------------------
|
|
312 |
// CPsTestQueryHandler::Version()
|
|
313 |
//
|
|
314 |
// ---------------------------------------------------------------------------------
|
|
315 |
TVersion CPsTestQueryHandler :: Version()
|
|
316 |
{
|
|
317 |
return (iAsyncHandler->Version());
|
|
318 |
}
|
|
319 |
|
|
320 |
// ---------------------------------------------------------------------------------
|
|
321 |
// CPsTestQueryHandler::IsLanguageSupportedL()
|
|
322 |
//
|
|
323 |
// ---------------------------------------------------------------------------------
|
|
324 |
TBool CPsTestQueryHandler::IsLanguageSupportedL(TLanguage aLang)
|
|
325 |
{
|
|
326 |
return(iAsyncHandler->IsLanguageSupportedL(aLang));
|
|
327 |
}
|
|
328 |
|
|
329 |
// ---------------------------------------------------------------------------------
|
|
330 |
// CPsTestQueryHandler::HandlePsErrorL()
|
|
331 |
//
|
|
332 |
// ---------------------------------------------------------------------------------
|
|
333 |
void CPsTestQueryHandler :: HandlePsError(TInt /*aErrorCode*/)
|
|
334 |
{
|
|
335 |
}
|
|
336 |
|
|
337 |
// ---------------------------------------------------------------------------------
|
|
338 |
// CPsTestQueryHandler::SetContactsDetails()
|
|
339 |
//
|
|
340 |
// ---------------------------------------------------------------------------------
|
|
341 |
void CPsTestQueryHandler :: SetContactsDetails(RPointerArray<CPsClientData>& aContactsList)
|
|
342 |
{
|
|
343 |
for(TInt i =0 ; i < aContactsList.Count();i++)
|
|
344 |
{
|
|
345 |
iContactsList.Append(aContactsList[i]);
|
|
346 |
}
|
|
347 |
}
|
|
348 |
|
|
349 |
// ---------------------------------------------------------------------------------
|
|
350 |
// CPsTestQueryHandler::VerifyResult()
|
|
351 |
//
|
|
352 |
// This function verifies
|
|
353 |
// for positive test case: if the contacts/ groups created are present in result set
|
|
354 |
// for negative test case: contacts/ groups created are not be present in result set
|
|
355 |
// ---------------------------------------------------------------------------------
|
|
356 |
void CPsTestQueryHandler :: VerifyResult(RPointerArray<CPsClientData>& aSearchResults, TBool aResultType)
|
|
357 |
{
|
|
358 |
SetCurrentErrorCode(KErrGeneral);
|
|
359 |
if(aSearchResults.Count() == 0 && !aResultType)
|
|
360 |
{
|
|
361 |
// result match is 0 AND is negative test case
|
|
362 |
SetCurrentErrorCode(KErrNone);
|
|
363 |
return;
|
|
364 |
}
|
|
365 |
|
|
366 |
for(TInt i = 0; i < aSearchResults.Count(); i++)
|
|
367 |
{
|
|
368 |
for(TInt j = 0; j < iContactsList.Count(); j++)
|
|
369 |
{
|
|
370 |
if(CompareByData(*(aSearchResults[i]), *(iContactsList[j])) == 0)
|
|
371 |
{
|
|
372 |
iContactsList[j]->SetId(aSearchResults[i]->Id());
|
|
373 |
if(aResultType)
|
|
374 |
{
|
|
375 |
SetCurrentErrorCode(KErrNone);
|
|
376 |
break;
|
|
377 |
}
|
|
378 |
else
|
|
379 |
{
|
|
380 |
SetCurrentErrorCode(KErrGeneral);
|
|
381 |
break;
|
|
382 |
}
|
|
383 |
}
|
|
384 |
else
|
|
385 |
{
|
|
386 |
if(aResultType)
|
|
387 |
{
|
|
388 |
SetCurrentErrorCode(KErrGeneral);
|
|
389 |
}
|
|
390 |
else
|
|
391 |
{
|
|
392 |
SetCurrentErrorCode(KErrNone);
|
|
393 |
}
|
|
394 |
}
|
|
395 |
}
|
|
396 |
}
|
|
397 |
}
|
|
398 |
|
|
399 |
// ---------------------------------------------------------------------------------
|
|
400 |
// CPsTestQueryHandler::IndexForGroupDataL()
|
|
401 |
//
|
|
402 |
//
|
|
403 |
// ---------------------------------------------------------------------------------
|
|
404 |
TInt CPsTestQueryHandler::IndexForGroupDataL()
|
|
405 |
{
|
|
406 |
TInt grpIndex;
|
|
407 |
RArray<TInt> dataOrder;
|
|
408 |
TBufC<30> groupUri(KGroupUri);
|
|
409 |
iAsyncHandler->GetDataOrderL(groupUri, dataOrder);
|
|
410 |
|
|
411 |
for(TInt i=0; i < dataOrder.Count(); i++)
|
|
412 |
{
|
|
413 |
if(dataOrder[i] == R_VPBK_FIELD_TYPE_LASTNAME)
|
|
414 |
{
|
|
415 |
grpIndex = i;
|
|
416 |
}
|
|
417 |
}
|
|
418 |
|
|
419 |
return grpIndex;
|
|
420 |
}
|
|
421 |
|
|
422 |
// ---------------------------------------------------------------------------------
|
|
423 |
// CPsTestQueryHandler::VerifySortResult()
|
|
424 |
//
|
|
425 |
// This function verifies if the result set is sorted or not
|
|
426 |
// ---------------------------------------------------------------------------------
|
|
427 |
TBool CPsTestQueryHandler::VerifySortResult(RPointerArray<CPsClientData>& aSearchResults)
|
|
428 |
{
|
|
429 |
TBool isSorted = EFalse;
|
|
430 |
TInt i = 0;
|
|
431 |
|
|
432 |
for(i = 0; i < aSearchResults.Count() - 1 ; i++)
|
|
433 |
{
|
|
434 |
if(CompareByData(*(aSearchResults[i]), *(aSearchResults[i+1])) > 0)
|
|
435 |
{
|
|
436 |
break;
|
|
437 |
}
|
|
438 |
}
|
|
439 |
|
|
440 |
if( i == aSearchResults.Count() - 1)
|
|
441 |
{
|
|
442 |
isSorted = ETrue;
|
|
443 |
}
|
|
444 |
return isSorted;
|
|
445 |
}
|
|
446 |
|
|
447 |
void CPsTestQueryHandler::SwitchEPsData(RPointerArray<CPsClientData>& searchResults)
|
|
448 |
{
|
|
449 |
TInt itemstoshow = searchResults.Count();
|
|
450 |
SetCurrentErrorCode(KErrNotFound);
|
|
451 |
for(TInt i = 0; i < itemstoshow; i++)
|
|
452 |
{
|
|
453 |
/*
|
|
454 |
InsertContactId(searchResults[i]->Id(),i);
|
|
455 |
if((iFirstName.Compare(searchResults[i]->Data(0)->Des()) == 0) && (iLastName.Compare(searchResults[i]->Data(1)->Des())==0) && (iCompanyName.Compare(searchResults[i]->Data(2)->Des())==0))
|
|
456 |
{
|
|
457 |
if(searchResults[i]->IsDataMatch(0) == EFalse && searchResults[i]->IsDataMatch(1) == EFalse && searchResults[i]->IsDataMatch(2))
|
|
458 |
{
|
|
459 |
SetCurrentErrorCode(KErrNone);
|
|
460 |
}
|
|
461 |
|
|
462 |
TBool fl = searchResults[i]->IsWordMatch(2,0);
|
|
463 |
}
|
|
464 |
*/
|
|
465 |
for(TInt j = 0; j < iContactsList.Count(); j++)
|
|
466 |
{
|
|
467 |
// compare searchResult[i] with iContactsList[j]
|
|
468 |
/*
|
|
469 |
if((CompareByData(*(searchResults[i]), *(iContactsList[j])) == 0) &&
|
|
470 |
(searchResults[i]->IsDataMatch(0) == EFalse && searchResults[i]->IsDataMatch(1) == EFalse && searchResults[i]->IsDataMatch(2)))
|
|
471 |
{
|
|
472 |
SetCurrentErrorCode(KErrNone);
|
|
473 |
iContactsList[j]->SetId(searchResults[i]->Id());
|
|
474 |
break;
|
|
475 |
}
|
|
476 |
else
|
|
477 |
{
|
|
478 |
SetCurrentErrorCode(KErrNotFound);
|
|
479 |
}
|
|
480 |
*/
|
|
481 |
}
|
|
482 |
}
|
|
483 |
}
|
|
484 |
|
|
485 |
void CPsTestQueryHandler::CachingStatus(TCachingStatus& /*aStatus*/, TInt& /*aError*/)
|
|
486 |
{
|
|
487 |
// implement later
|
|
488 |
}
|
|
489 |
|
|
490 |
TInt CPsTestQueryHandler::CompareByData ( const CPsClientData& aObject1, const CPsClientData& aObject2 )
|
|
491 |
{
|
|
492 |
TBuf<KBufferMaxLen> data1;
|
|
493 |
TBuf<255> data2;
|
|
494 |
|
|
495 |
_LIT(KSpace, " ");
|
|
496 |
|
|
497 |
data1 = KNullDesC;
|
|
498 |
for ( int i = 0; i < aObject1.DataElementCount(); i++ )
|
|
499 |
{
|
|
500 |
if ( aObject1.Data(i) )
|
|
501 |
{
|
|
502 |
data1 += aObject1.Data(i)->Des();
|
|
503 |
data1 += KSpace;
|
|
504 |
}
|
|
505 |
}
|
|
506 |
|
|
507 |
// Trim the unnecessary white spaces before we compare
|
|
508 |
data1.TrimAll();
|
|
509 |
|
|
510 |
data2 = KNullDesC;
|
|
511 |
for ( int i = 0; i < aObject2.DataElementCount(); i++ )
|
|
512 |
{
|
|
513 |
if ( aObject2.Data(i) )
|
|
514 |
{
|
|
515 |
data2 += aObject2.Data(i)->Des();
|
|
516 |
data2 += KSpace;
|
|
517 |
}
|
|
518 |
}
|
|
519 |
|
|
520 |
// Trim the unnecessary white spaces before we compare
|
|
521 |
data2.TrimAll();
|
|
522 |
|
|
523 |
// Get the standard method
|
|
524 |
TCollationMethod meth = *Mem::CollationMethodByIndex( 0 );
|
|
525 |
meth.iFlags |= TCollationMethod::EIgnoreNone;
|
|
526 |
meth.iFlags |= TCollationMethod::EFoldCase;
|
|
527 |
|
|
528 |
// Magic: Collation level 3 is used
|
|
529 |
TInt comparison(data1.CompareC( data2, 3, &meth ));
|
|
530 |
return comparison;
|
|
531 |
}
|
|
532 |
|
|
533 |
// End of file
|