CPsData Class Reference

class CPsData : public CBase

Utility class to store data for predictive search. This is the basic data class that is used to marshal data between the client, server and data plugins.

pcsutils.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CPsData()

CPsData()[private]

Default Constructor

~CPsData()

IMPORT_C~CPsData()

Destructor

Member Functions Documentation

AddIntDataExtL(TInt)

IMPORT_C voidAddIntDataExtL(TIntaDataExt)

Add element to the Integer Data Extention

Parameters

TInt aDataExt- Integer Data Extension to be added

ClearDataMatches()

IMPORT_C voidClearDataMatches()

Clear all the bits set in data matches

CompareByData(const CPsData &, const CPsData &)

IMPORT_C TIntCompareByData(const CPsData &aObject1,
const CPsData &aObject2
)[static]

Method to compare two CPsData objects

Parameters

const CPsData & aObject1Instance 1 to be compared
const CPsData & aObject2Instance 2 to be compared

CompareById(const CPsData &, const CPsData &)

IMPORT_C TBoolCompareById(const CPsData &aObject1,
const CPsData &aObject2
)[static]

Method to compare two CPsData objects based on unique Id

Parameters

const CPsData & aObject1Instance 1 to be compared
const CPsData & aObject2Instance 2 to be compared

ConstructL()

voidConstructL()[private]

Second phase constructor

Data(TInt)

IMPORT_C HBufC *Data(TIntaIndex)const

Pointer to the data element at the specified location

Parameters

TInt aIndexIndex of data element

DataElementCount()

IMPORT_C TIntDataElementCount()const

Returns the number of data elements

DataExtension()

IMPORT_C TAny *DataExtension()const

Returns the data extension

DataMatch()

IMPORT_C TUint8DataMatch()

Returns the data match attribute

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]

Writes 'this' to the stream

Parameters

RWriteStream & aStreamWriteStream with externalized contents

Id()

IMPORT_C TIntId()const

Provides the unique identifier of this object

IntDataExt(RArray< TInt > &)

IMPORT_C voidIntDataExt(RArray< TInt > &aDataExtArray)

Retrieve Integer Data Extention Array

Parameters

RArray< TInt > & aDataExtArray- Integer Data Extension array

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]

Initializes 'this' from stream

Parameters

RReadStream & aStreamReadStream with data contents to be internalized

IsDataMatch(TInt)

IMPORT_C TBoolIsDataMatch(TIntaIndex)

Checks if data at array index is matched for predictive search

Parameters

TInt aIndexIndex of data element

NewL()

IMPORT_C CPsData *NewL()[static]

Two phase construction

RemoveIntDataExt(TInt)

IMPORT_C voidRemoveIntDataExt(TIntaIndex)

Remove element from the Integer Data Extention

Parameters

TInt aIndex- Integer Data Extension array index

SetDataExtension(TAny *)

IMPORT_C voidSetDataExtension(TAny *aDataExt)

Set the data extension

Parameters

TAny * aDataExtData Extension for this object

SetDataL(const TInt, const TDesC &)

IMPORT_C voidSetDataL(const TIntaIndex,
const TDesC &aData
)

Sets the data at the specified location

Parameters

const TInt aIndexIndex of data element
const TDesC & aDataData descriptor to be searched

SetDataMatch(TInt)

IMPORT_C voidSetDataMatch(TIntaIndex)

Sets data at array index has matched for predictive search

Parameters

TInt aIndexIndex of data element

SetId(const TInt)

IMPORT_C voidSetId(const TIntaId)

Sets the unique identifier of this object

Parameters

const TInt aIdThe unique identifier

SetUriId(const TUint8)

IMPORT_C voidSetUriId(const TUint8aUriId)

Sets the unique URI identifier of this object

Parameters

const TUint8 aUriIdThe unique URI identifier

UriId()

IMPORT_C TUint8UriId()const

Provides the unique URI identifier of this object

Member Data Documentation

RPointerArray< HBufC > * iData

RPointerArray< HBufC > *iData[private]

Data fields

TAny * iDataExtension

TAny *iDataExtension[private]

Extended Data field

TUint8 iDataMatches

TUint8 iDataMatches[private]

Indicates in bit positions, what data fields are matched for predictive search

RPointerArray< HBufC > * iGc

RPointerArray< HBufC > *iGc[private]

Garbage collector to fix performance issue

TInt iId

TInt iId[private]

Unique id

RArray< TInt > * iIntDataExt

RArray< TInt > *iIntDataExt[private]

Extended Data field of Integers

TUint8 iUriId

TUint8 iUriId[private]

URI ID. Indicates the data source.