#include <app/cntview.h>
class CContactViewRangeBase : public CBase |
Protected Attributes | |
---|---|
TCollationMethod * | iCollateMethod |
TInt | iHigh |
TInt | iLow |
const CContactViewBase & | iView |
Public Member Enumerations | |
---|---|
enum | TCriteria { ELessThan, ELessThanOrEqualTo, EGreaterThan, EGreaterThanOrEqualTo } |
Public Member Functions | |
---|---|
~CContactViewRangeBase() | |
TInt | HighIndex() |
IMPORT_C TBool | IndicesValid() |
TInt | LowIndex() |
pure virtual void | SetL() |
Protected Member Functions | |
---|---|
CContactViewRangeBase(const CContactViewBase &) | |
void | ConstructL() |
TInt | FindIndexL(const TDesC &, TCriteria) |
TBool | MatchesCriteriaL(TCriteria, const TDesC &, TInt) |
void | ValidateIndices() |
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.
See also: CContactSubView
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.
CContactViewRangeBase | ( | const CContactViewBase & | aView | ) | [protected] |
void | ConstructL | ( | ) | [protected] |
Called by derived classes to set the collation method iCollateMethod to be the standard collation method for the current locale.
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.
Parameter | Description |
---|---|
aMatch | The text to search for. |
aCriteria | The search criteria. |
Returns: The index of the first matching item in the view. KErrNotFound if the view is empty or if none match.
TInt | HighIndex | ( | ) | const [inline] |
Gets the index into the sub view's underlying view of the item at the top of the range.
Returns: The index 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.
Returns: ETrue if the indexes are valid, EFalse if not.
TInt | LowIndex | ( | ) | const [inline] |
Gets the index into the sub view's underlying view of the item at the bottom of the range.
Returns: The index of the item at the bottom of the range.