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 &)

voidConstructL(RReadStream &aStream)[private]

2nd phase constructor

Parameters

RReadStream & aStream

DataType()

IMPORT_C TSearchFieldDataTypeDataType()const

Sets the field data type

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalize function

Parameters

RWriteStream & aStream

FieldId()

IMPORT_C TSearchFieldIdFieldId()const

Gets the field id.

GetData(TInt &)

IMPORT_C TIntGetData(TInt &aData)const

Gets the field data.

Parameters

TInt & aDataOn return contains the field data.

GetData(TReal &)

IMPORT_C TIntGetData(TReal &aData)const

Gets the field data.

Parameters

TReal & aDataOn return contains the field data.

GetData(TTime &)

IMPORT_C TIntGetData(TTime &aData)const

Gets the field data.

Parameters

TTime & aDataOn return contains the field data.

GetData(TPtrC8 &)

IMPORT_C TIntGetData(TPtrC8 &aData)const

Gets the field data.

Parameters

TPtrC8 & aDataOn 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 voidSetDataL(TDesC8 &aData,
TSearchFieldDataTypeaDataType
)

Sets the field data and its type

Parameters

TDesC8 & aData
TSearchFieldDataType aDataType

SetFieldId(TSearchFieldId)

IMPORT_C voidSetFieldId(TSearchFieldIdaFieldId)

Sets the field id.

Parameters

TSearchFieldId aFieldIdId 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