CSortArray Class Reference
class CSortArray : public CBase |
Constructor & Destructor Documentation
Member Functions Documentation
AppendL(const TDesC &, TContactItemId)
Create a CTextFieldMinimal object using the given text and Contact ID and append it to the sort array.
Parameters
const TDesC & Text | Text for CTextFieldMinimal object. |
TContactItemId aId | Contact ID for CTextFieldMinimal object. |
Count()
TInt
| Count | ( | ) | const [inline] |
DefaultAlgorithmToCompareNames(const CTextFieldMinimal &, const CTextFieldMinimal &)
Compare the text in the given CTextFieldMinimal objects.
The custom TCollation method is required to ensure that the collated comparison will not ignore spaces and punctuation (which it does by default).
Mem::CollationMethodByIndex() is an exec call and is hence relatively expensive. Although it is inefficient to create a collation method each time this method is called, there is no benefit in storing TCollationMethod as a member of CSortArray because this method must be static.
Id(TInt)
Get the Contact ID at the given index in the sort array.
Merge(CSortArray *, TInt)
Merge the given sort array with this sort array starting from the given position in this sort array.
Parameters
CSortArray * aDuplicates | The sort array to be merged with this sort array. |
TInt aStartPos | The starting position for the merge in this sort array. |
SortL(CContactDatabase::TSortPref::TOrder)
Sort the sort array using the given sort order.
Text(TInt)
Get the text at the given index in the sort array.
Member Data Documentation
RPointerArray< CTextFieldMinimal > iArray
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.