class CContactViewRangeBase : public CBase |
The abstract base class for all contact view range classes.
Range classes are used by contact sub views to specify the upper and lower range boundaries and for searching their underlying view.
Public Member Functions | |
---|---|
~CContactViewRangeBase () | |
TInt | HighIndex () |
IMPORT_C TBool | IndicesValid () |
TInt | LowIndex () |
void | SetL () |
Protected Member Functions | |
---|---|
CContactViewRangeBase (const CContactViewBase &) | |
void | ConstructL () |
TInt | FindIndexL (const TDesC &, TCriteria ) |
TBool | MatchesCriteriaL ( TCriteria , const TDesC &, TInt ) |
void | ValidateIndices () |
Public Member Enumerations | |
---|---|
enum | TCriteria { ELessThan , ELessThanOrEqualTo , EGreaterThan , EGreaterThanOrEqualTo } |
Protected Attributes | |
---|---|
TCollationMethod * | iCollateMethod |
TInt | iHigh |
TInt | iLow |
const CContactViewBase & | iView |
CContactViewRangeBase | ( | const CContactViewBase & | aView | ) | [protected] |
const CContactViewBase & aView |
void | ConstructL | ( | ) | [protected] |
Called by derived classes to set the collation method iCollateMethod to be the standard collation method for the current locale.
TInt | FindIndexL | ( | const TDesC & | aMatch, |
TCriteria | aCriteria | |||
) | const [protected] |
Called by implementations of SetL() to search the sub view's underlying view for the index of the first item whose field content matches aMatch, using the specified search criteria.
TInt | HighIndex | ( | ) | const [inline] |
Gets the index into the sub view's underlying view of the item at the top of the range.
IMPORT_C TBool | IndicesValid | ( | ) | const |
Tests whether the lower and upper indexes are valid, i.e. not KErrNotFound.
TInt | LowIndex | ( | ) | const [inline] |
Gets the index into the sub view's underlying view of the item at the bottom of the range.
TBool | MatchesCriteriaL | ( | TCriteria | aCriteria, |
const TDesC & | aMatch, | |||
TInt | aIndex | |||
) | const [protected] |
void | ValidateIndices | ( | ) | [protected] |
Called by derived classes to validate the upper and lower indexes (iLow and iHigh).
If either index is KErrNotFound, or iLow is greater than iHigh, then both are set to KErrNotFound.
Defines the range criteria.
ELessThan |
Less than. |
ELessThanOrEqualTo |
Less than or equal to. |
EGreaterThan |
Greater than. |
EGreaterThanOrEqualTo |
Greater than or equal to. |
TCollationMethod * | iCollateMethod | [protected] |
The collation method used to sort the strings.
By default, this is the standard collation method for the current locale.
TInt | iHigh | [protected] |
The index into the sub view's underlying view of the item at the upper limit of the range.
TInt | iLow | [protected] |
The index into the sub view's underlying view of the item at the lower limit of the range.
const CContactViewBase & | iView | [protected] |
The sub view's underlying view.
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.