API published in: S60 3rd Ed
Link against: eposlmsearchlib.lib eposlmmultidbsearch.lib
Required Capabilities
None
Exceptions
The capability ReadUserData is required in:
CPosLandmarkSearch::StartLandmarkSearchL( const CPosLmSearchCriteria & aCriteria, TBool aSearchOnlyPreviousMatches = EFalse );
CPosLandmarkSearch::StartLandmarkSearchL( const CPosLmSearchCriteria & aCriteria, const TPosLmSortPref & aSortPref, TBool aSearchOnlyPreviousMatches = EFalse );
CPosLandmarkSearch::StartCategorySearchL( const CPosLmSearchCriteria & aCriteria, CPosLmCategoryManager::TCategorySortPref aSortPref, TBool aSearchOnlyPreviousMatches = EFalse );
CPosLmMultiDbSearch::StartLandmarkSearchL( const CPosLmSearchCriteria & aCriteria, TBool aSearchOnlyPreviousMatches = EFalse );
CPosLmMultiDbSearch::StartLandmarkSearchL( const CPosLmSearchCriteria & aCriteria, const TPosLmSortPref & aSortPref, TBool aSearchOnlyPreviousMatches = EFalse );
CPosLmMultiDbSearch::StartCategorySearchL( const CPosLmSearchCriteria & aCriteria, CPosLmCategoryManager::TCategorySortPref aSortPref, TBool aSearchOnlyPreviousMatches = EFalse );
Other Information
The capability NetworkServices is required to work with remote databases.
#include <epos_cposlmtextcriteria.h>
Inherits CPosLmSearchCriteria.
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.
If this criterion is passed to CPosLandmarkSearch::StartLandmarkSearchL, only landmarks which contain the specified text are returned.
Wild-card characters are supported.
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
.
Public Member Functions |
|
virtual | ~CPosLmTextCriteria () |
Destructor. |
|
IMPORT_C TPtrC | Text () const |
Retrieves the text to search for. |
|
IMPORT_C void | SetTextL (const TDesC &aText) |
Sets the search string. |
|
IMPORT_C CPosLandmark::TAttributes | AttributesToSearch () const |
Retrieves the landmark attributes which should be searched. |
|
IMPORT_C void | SetAttributesToSearch (CPosLandmark::TAttributes aAttributes) |
Sets which landmark attributes to search. |
|
IMPORT_C void | GetPositionFieldsToSearchL (RArray< TUint > &aFieldArray) const |
Retrieves a list of the position fields to search. |
|
IMPORT_C void | SetPositionFieldsToSearchL (const RArray< TUint > &aFieldArray) |
Sets the position fields to search. |
|
IMPORT_C void | ClearPositionFieldsToSearch () |
Clears the position fields list used in a search. |
|
Static Public Member Functions |
|
static IMPORT_C CPosLmTextCriteria * | NewLC () |
Two-phased constructor. |
|
Destructor. |
|
Retrieves the landmark attributes which should be searched.
This function returns a bitmap of landmark attributes. The landmark attributes are defined by
|
|
Clears the position fields list used in a search. |
|
Retrieves a list of the position fields to search.
|
|
Two-phased constructor.
|
|
Sets which landmark attributes to search.
The client passes a bitmap of the landmark attributes to search. It is only possible to search the
|
|
Sets the position fields to search. Any previously set position fields are cleared by this call.
|
|
Sets the search string.
A non-empty text string must be set, otherwise CPosLandmarkSearch::StartLandmarkSearchL will leave with error code 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. A landmark matches the criterion if specified text is found anywhere in selected attributes or position fields.
|
|
Retrieves the text to search for.
|