#include <mw/EPos_CPosLmCatNameCriteria.h>
class CPosLmCatNameCriteria : public CPosLmSearchCriteria |
Public Member Functions | |
---|---|
virtual | ~CPosLmCatNameCriteria() |
IMPORT_C CPosLmCatNameCriteria * | NewLC() |
IMPORT_C TPtrC | SearchPattern() |
IMPORT_C void | SetSearchPatternL(const TDesC &) |
Inherited Enumerations | |
---|---|
CPosLmSearchCriteria:TCriteriaType |
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.
IMPORT_C CPosLmCatNameCriteria * | NewLC | ( | ) | [static] |
Two-phased constructor.
Returns: A new instance of this class.
IMPORT_C TPtrC | SearchPattern | ( | ) | const |
Retrieves the search pattern.
Returns: The category name search pattern.
IMPORT_C void | SetSearchPatternL | ( | 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.
Parameter | Description |
---|---|
aSearchPattern | The pattern used to find categories. |