Criterion for searching for landmarks which contain a certain text.
The search is defined by providing a text to search for and the position fields and text attributes to search.
If no attributes are specified for the search, all text attributes in the landmarks are searched. If no position fields are specified, then all fields are searched.
This criterion is only valid when searching for landmarks, i.e. if it is passed to CPosLandmarkSearch::StartCategorySearchL, the function will fail with error code KErrArgument.
Retrieves the landmark attributes which should be searched.
This function returns a bitmap of landmark attributes. The landmark attributes are defined by CPosLandmark::_TAttributes. It is only possible to search the ELandmarkName and EDescription attributes.
Returns:
A bitmap indicating which landmark attributes should be searched.
Retrieves a list of the position fields to search.
Parameters:
[out]
aFieldArray
On return, contains a list of the position fields which are used in a search. If no position fields have been set, the array is empty. Position fields are identified by values defined in TPositionFieldId.
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.
A landmark matches the criterion if specified text is found anywhere in selected attributes or position fields.
Parameters:
aText
The text to search for.
Leave:
KErrArgument The search string is longer than KPosLmMaxSearchStringLength.
IMPORT_C TPtrC CPosLmTextCriteria::Text
(
)
const
Retrieves the text to search for.
Returns:
The text to search for.
The documentation for this class was generated from the following file: