CSearchField Class Reference

class CSearchField : public CBase

Class for all search field.

searchutilities.lib

Inherits from

Constructor & Destructor Documentation

CSearchField()

CSearchField ( ) [private]

constructor

~CSearchField()

~CSearchField ( ) [virtual]

destructor

Member Functions Documentation

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

2nd phase constructor

Parameters

RReadStream & aStream

DataType()

IMPORT_C TSearchFieldDataType DataType ( ) const

Sets the field data type

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalize function

Parameters

RWriteStream & aStream

FieldId()

IMPORT_C TSearchFieldId FieldId ( ) const

Gets the field id.

GetData(TInt &)

IMPORT_C TInt GetData ( TInt & aData ) const

Gets the field data.

Parameters

TInt & aData On return contains the field data.

GetData(TReal &)

IMPORT_C TInt GetData ( TReal & aData ) const

Gets the field data.

Parameters

TReal & aData On return contains the field data.

GetData(TTime &)

IMPORT_C TInt GetData ( TTime & aData ) const

Gets the field data.

Parameters

TTime & aData On return contains the field data.

GetData(TPtrC8 &)

IMPORT_C TInt GetData ( TPtrC8 & aData ) const

Gets the field data.

Parameters

TPtrC8 & aData On return contains the field data.

NewL()

IMPORT_C CSearchField * NewL ( ) [static]

two phased constructor

NewL(RReadStream &)

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

two phased constructor - Contructing from a stream

Parameters

RReadStream & aStream

SetDataL(TDesC8 &, TSearchFieldDataType)

IMPORT_C void SetDataL ( TDesC8 & aData,
TSearchFieldDataType aDataType
)

Sets the field data and its type

Parameters

TDesC8 & aData
TSearchFieldDataType aDataType

SetFieldId(TSearchFieldId)

IMPORT_C void SetFieldId ( TSearchFieldId aFieldId )

Sets the field id.

Parameters

TSearchFieldId aFieldId Id of the field.

Member Data Documentation

HBufC * iBuf16Data

HBufC * iBuf16Data [private]

Buffer for unicode

HBufC8 * iBuf8Data

HBufC8 * iBuf8Data [private]

Buffer for utf8

HBufC8 * iCustomFieldId

HBufC8 * iCustomFieldId [private]

Custom field

HBufC8 * iField

HBufC8 * iField [private]

Field Own

TSearchFieldId iFieldId

TSearchFieldId iFieldId [private]

Field Id

TInt iIntData

TInt iIntData [private]

int data

TReal iRealData

TReal iRealData [private]

real data

TTime iTimeData

TTime iTimeData [private]

time data

TSearchFieldDataType iType

TSearchFieldDataType iType [private]

Field Data type