#include <app/cntview.h>
Link against: cntview.lib
class CContactViewRangeBase : public CBase, 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.
Defines the range criteria.
Enumerator | Value | Description |
---|---|---|
ELessThan |
Less than. | |
ELessThanOrEqualTo |
Less than or equal to. | |
EGreaterThan |
Greater than. | |
EGreaterThanOrEqualTo |
Greater than or equal to. |
CContactViewRangeBase | ( | const CContactViewBase & | aView | ) | [protected] |
~CContactViewRangeBase | ( | ) |
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.
Parameters | |
---|---|
aMatch | The text to search for. |
aCriteria | The 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.