CPosLmCatNameCriteria Class Reference

class CPosLmCatNameCriteria : public CPosLmSearchCriteria

Criterion for searching landmark categories with a certain name.

Wild-card characters are supported.

The client specifies the search pattern and starts the search using CPosLandmarkSearch . The search returns all categories which match the search pattern.

This criterion is only valid when searching for landmark categories, i.e. if it is passed to CPosLandmarkSearch::StartLandmarkSearchL, the function will fail with error code KErrArgument.

eposlmsearchlib.lib
Since
S60 3.0

Inherits from

Constructor & Destructor Documentation

CPosLmCatNameCriteria()

CPosLmCatNameCriteria()[private]

CPosLmCatNameCriteria(const CPosLmCatNameCriteria &)

CPosLmCatNameCriteria(const CPosLmCatNameCriteria &)[private]

Parameters

const CPosLmCatNameCriteria &

~CPosLmCatNameCriteria()

~CPosLmCatNameCriteria()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

NewLC()

IMPORT_C CPosLmCatNameCriteria *NewLC()[static]

Two-phased constructor.

SearchPattern()

IMPORT_C TPtrCSearchPattern()const

Retrieves the search pattern.

SetSearchPatternL(const TDesC &)

IMPORT_C voidSetSearchPatternL(const TDesC &aSearchPattern)

Sets the search pattern.

A non-empty search pattern must be set, otherwise CPosLandmarkSearch::StartCategorySearchL will leave with error code KErrArgument.

The search is case insensitive.

Wild-card characters "?" and "*" are supported in the search string. "?" matches a single occurrence of any character and "*" matches zero or more consecutive occurrences of any characters.

leave
KErrArgument The search pattern is longer than KPosLmMaxCategoryNameLength.

Parameters

const TDesC & aSearchPatternThe pattern used to find categories.

operator=(const CPosLmCatNameCriteria &)

CPosLmCatNameCriteria &operator=(const CPosLmCatNameCriteria &)[private]

Parameters

const CPosLmCatNameCriteria &

Member Data Documentation

HBufC * iSearchPattern

HBufC *iSearchPattern[private]