CSearchLightResult Class Reference

class CSearchLightResult : public CBase

This class is a container for one search result

searchutilities.lib

Inherits from

Constructor & Destructor Documentation

CSearchLightResult(CSearchDocumentId *)

CSearchLightResult ( CSearchDocumentId * aDocId ) [private]

Paramterized Constructor

Parameters

CSearchDocumentId * aDocId

CSearchLightResult()

CSearchLightResult ( ) [private]

Default Constructor

~CSearchLightResult()

~CSearchLightResult ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL(const CSearchDocumentId &)

void ConstructL ( const CSearchDocumentId & aDocId ) [private]

ConstructL function that intializes data members from CSerachResult

Parameters

const CSearchDocumentId & aDocId - const reference to CSearchDocumentId

ConstructL(const CSearchLightResult &)

void ConstructL ( const CSearchLightResult & aSearchResult ) [private]

ConstructL function that intializes data members from CSerachResult

Parameters

const CSearchLightResult & aSearchResult - pointer to CSerachResult

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

ConstructL function that initializes data members from stream

Parameters

RReadStream & aStream - Stream from where to read

ContentClassId()

IMPORT_C TUid ContentClassId ( ) const

Getter function for the content class id

ContentFolderId()

IMPORT_C TUid ContentFolderId ( ) const

Getter function for the content folder id

DocumentId()

IMPORT_C const CSearchDocumentId & DocumentId ( ) const

This is a getter function for the document id

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalizes the class to the stream

Parameters

RWriteStream & aStream - Stream to be written to

NewL(CSearchDocumentId *)

IMPORT_C CSearchLightResult * NewL ( CSearchDocumentId * aDocId ) [static]

Two phased constructor takes aDocIdIn as arg. Ownership is transfered to this object

Parameters

CSearchDocumentId * aDocId - pointer to CSearchDocumentId object

NewL(const CSearchDocumentId &)

IMPORT_C CSearchLightResult * NewL ( const CSearchDocumentId & aDocumentId ) [static]

Two phased constructor takes aDocIdIn as arg. Ownership is not transfered to this object.

Parameters

const CSearchDocumentId & aDocumentId

NewL(RReadStream &)

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

Two phased constructor - constructs from the stream

Parameters

RReadStream & aStream - Stream from which to read

NewL(const CSearchLightResult &)

IMPORT_C CSearchLightResult * NewL ( const CSearchLightResult & aSearchReult ) [static]

Two phased constructor - constructs from another CSearchResult object

Parameters

const CSearchLightResult & aSearchReult

ServiceId()

IMPORT_C TUid ServiceId ( ) const

Getter function for the service id

SetContentClassId(TUid)

IMPORT_C void SetContentClassId ( TUid aContentClassId )

Sets the content class id

Parameters

TUid aContentClassId

SetContentFolderId(TUid)

IMPORT_C void SetContentFolderId ( TUid aContentFolderId )

Sets the content folder id

Parameters

TUid aContentFolderId

SetServiceId(TUid)

IMPORT_C void SetServiceId ( TUid aServiceId )

Sets the service id

Parameters

TUid aServiceId - service id to be set to

SetSubContentId(TInt32)

IMPORT_C void SetSubContentId ( TInt32 aSubContentId )

Sets the sub content id

Parameters

TInt32 aSubContentId

SubContentId()

IMPORT_C TInt32 SubContentId ( ) const

Getter function for the Realm

Member Data Documentation

TUid iContentClassId

TUid iContentClassId [private]

content class id

TUid iContentFolderId

TUid iContentFolderId [private]

content folder id

CSearchDocumentId * iDocId

CSearchDocumentId * iDocId [private]

Document Id

Own

TUid iServiceId

TUid iServiceId [private]

Service id

TInt32 iSubContentId

TInt32 iSubContentId [private]

Realm of the search