CSearchQuery Class Reference

class CSearchQuery : public CBase

This class is encapsulates the search request

This class encapsulates search condition( what to search ) and in what all plugins to search( where to search )

searchutilities.lib

Inherits from

Constructor & Destructor Documentation

CSearchQuery()

CSearchQuery()[private]

Constructor

~CSearchQuery()

~CSearchQuery()[virtual]

Destructor

Member Functions Documentation

Condition()

IMPORT_C const CSearchCondition &Condition()const

Returns condition

ConstructL(RReadStream &)

voidConstructL(RReadStream &aStream)[private]

2nd phase constructor

Parameters

RReadStream & aStream

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Extrenalizes the object

Parameters

RWriteStream & aStream- Stream

GetTargetContent(RArray< TUid > &)

IMPORT_C voidGetTargetContent(RArray< TUid > &aContentIdArray)const

Get the target content that should be searched.

Parameters

RArray< TUid > & aContentIdArray

NewL()

IMPORT_C CSearchQuery *NewL()[static]

1st phase constructor

NewL(RReadStream &)

IMPORT_C CSearchQuery *NewL(RReadStream &aStream)[static]

1st phase constructor

Parameters

RReadStream & aStream

SetCondition(CSearchCondition *)

IMPORT_C voidSetCondition(CSearchCondition *aCondition)

Sets the search condition. With this the search scope can be limited to match only the specified condition. Must be set before requesting for search.

Parameters

CSearchCondition * aCondition

SetSnippetSize(const TDesC8 &, const TDesC8 &)

IMPORT_C voidSetSnippetSize(const TDesC8 &aFormat,
const TDesC8 &aSize
)

Parameters

const TDesC8 & aFormat
const TDesC8 & aSize

SetTargetContent(const RArray< TUid > &)

IMPORT_C voidSetTargetContent(const RArray< TUid > &aContentIdArray)

Set the target content that should be searched. Must be set before requesting for search.

Parameters

const RArray< TUid > & aContentIdArray- an array of Tuid

SetTargetService(TUid)

IMPORT_C voidSetTargetService(TUidaServiceId)

Set the service that the search should be limited to. This is optional. If not set, search is targeted to all services.

Parameters

TUid aServiceIdUid of the service.

TargetService()

IMPORT_C TUidTargetService()const

Get the service that the search should be limited to.

Member Data Documentation

CSearchCondition * iCondition

CSearchCondition *iCondition[private]

Search Condition( what to search )

RArray< TUid > iContentIdArray

RArray< TUid >iContentIdArray[private]

Array of content ids( where to search )

TUid iServiceId

TUid iServiceId[private]

Service Id