MNcdSearchFilter Class Reference

class MNcdSearchFilter

Search filter interface.

Allows setting of keywords and/or content types to limit searches.

Note:

Default implementation class can be found in ncdutils.h.

Public Member Functions
TUint ContentPurposes ()
const MDesCArray & Keywords ()
TUint RecursionDepth ()
TSearchMode SearchMode ()
Protected Member Functions
~MNcdSearchFilter ()
Public Member Enumerations
enum TSearchMode { ENormal  = 0, EAcceptItems }

Constructor & Destructor Documentation

~MNcdSearchFilter()

~MNcdSearchFilter ( ) [protected, inline, virtual]

Destructor.

Member Functions Documentation

ContentPurposes()

TUint ContentPurposes ( ) const [pure virtual]

Returns content types set for the filter. Items must match one of the types in order to be included in search results.

TNcdItemPurpose

Keywords()

const MDesCArray & Keywords ( ) const [pure virtual]

Returns keywords set for the filter. Items must match all keywords in order to be included in search results.

RecursionDepth()

TUint RecursionDepth ( ) const [pure virtual]

Depth of recursion

SearchMode()

TSearchMode SearchMode ( ) const [pure virtual]

Returns search mode

Member Enumerations Documentation

Enum TSearchMode

Search mode

Enumerators

ENormal = 0

Normal search

Items returned by the server in the search response are ignored. This mode should be used always when doing recursive searches

EAcceptItems

Accept items in the search response

This mode should be used if the server returns items in its search responses.
Note:

Recursive searching is discouraged because it can cause performance issues.