CSearchResult Class Reference

class CSearchResult : public CBase

Class representing a search result with title, snippet

This class represents heavy result that will be displayed with icon, snippet and title

searchutilities.lib

Inherits from

Constructor & Destructor Documentation

CSearchResult()

CSearchResult ( ) [private]

Constructor

CSearchResult(CSearchLightResult *)

CSearchResult ( CSearchLightResult * aResult ) [private]

Constructor

Parameters

CSearchLightResult * aResult

~CSearchResult()

~CSearchResult ( ) [virtual]

virtual destructor

Member Functions Documentation

ConstructL(const CSearchResult &)

void ConstructL ( const CSearchResult & aSearchResult ) [private]

2nd phase constructor

Parameters

const CSearchResult & aSearchResult

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

2nd phase constructor

Parameters

RReadStream & aStream

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalizes the class to the stream

Parameters

RWriteStream & aStream - Stream to be written to

NewL(CSearchLightResult *)

IMPORT_C CSearchResult * NewL ( CSearchLightResult * aLightResult ) [static]

1st phase constructor - Creates new object CSearchResult from the CSearchLightResult pointer

Parameters

CSearchLightResult * aLightResult

NewL(const CSearchResult &)

IMPORT_C CSearchResult * NewL ( const CSearchResult & aSearchResult ) [static]

1st phase constructor - Creates new object CSearchResult from the CSearchResult reference

Parameters

const CSearchResult & aSearchResult

NewL(RReadStream &)

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

1st phase constructor - Creates new object CSearchResult from the CSearchResult reference

Parameters

RReadStream & aStream

Result()

IMPORT_C const CSearchLightResult & Result ( ) const

This function returns const reference to the CSearchLightResult

SetSnippetFormatL(const TDesC8 &)

IMPORT_C void SetSnippetFormatL ( const TDesC8 & aSnippetFormat )

Sets the snippet format of this result.

Parameters

const TDesC8 & aSnippetFormat Snippet format of the result.

SetSnippetL(const TDesC8 &)

IMPORT_C void SetSnippetL ( const TDesC8 & aSnippet )

Sets the snippet of this result.

Parameters

const TDesC8 & aSnippet Snippet of the result.

SetTitleL(const TDesC &)

IMPORT_C void SetTitleL ( const TDesC & aTitle )

Sets the human readable title of this result.

Parameters

const TDesC & aTitle The title.

Snippet()

IMPORT_C const TDesC8 & Snippet ( ) const

Gets the snippet of this result.

SnippetFormat()

IMPORT_C const TDesC8 & SnippetFormat ( ) const

Gets the snippet format of this result.

Title()

IMPORT_C const TDesC & Title ( ) const

Gets the human readable title of this result.

Member Data Documentation

CSearchLightResult * iLightResult

CSearchLightResult * iLightResult [private]

Pointer to light result Own

HBufC8 * iSnippet

HBufC8 * iSnippet [private]

Pointer to Snippet Own

HBufC8 * iSnippetFormat

HBufC8 * iSnippetFormat [private]

Pointer to Snippet format Own

HBufC * iTitle

HBufC * iTitle [private]

Pointer to title Own