CPsQuery Class Reference

class CPsQuery : public CBase

Utility class to hold the search sequence for predictive search. The Max length of search sequence = KPsQueryMaxLen.

pcsutils.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CPsQuery()

CPsQuery()[private]

Default Constructor

~CPsQuery()

IMPORT_C~CPsQuery()

Destructor

Member Functions Documentation

AppendL(const CPsQueryItem &)

IMPORT_C voidAppendL(const CPsQueryItem &aQueryItem)

Appends a query item to the search sequence (if the current length < KPsQueryMaxLen)

Parameters

const CPsQueryItem & aQueryItemThe object pointer to be appended

ConstructL()

voidConstructL()[private]

Second phase constructor

Count()

IMPORT_C TIntCount()

Returns the length of the query

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]

Writes 'this' to the stream

Parameters

RWriteStream & aStreamWriteStream with externalized contents

GetItemAtL(TInt)

IMPORT_C CPsQueryItem &GetItemAtL(TIntaIndex)

Returns the query item at the specified index

Parameters

TInt aIndex

InsertL(const CPsQueryItem &, TInt)

IMPORT_C voidInsertL(const CPsQueryItem &aQueryItem,
TIntaIndex
)

Insert a query item to the search sequence (if the current length < KPsQueryMaxLen)

Parameters

const CPsQueryItem & aQueryItemThe object pointer to be inserted
TInt aIndexThe position within the array where the object pointer is to be inserted

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]

Initializes 'this' from stream

Parameters

RReadStream & aStreamReadStream with data contents to be internalized

KeyboardModeL()

IMPORT_C TKeyboardModesKeyboardModeL()

Returns the keyboard input mode for the search query if all the keys are entered in the same mode then returns the mode e.g. ITU-T, QWERTY else returns unspecified mode

NewL()

IMPORT_C CPsQuery *NewL()[static]

Two phase construction

PrintQuery()

IMPORT_C voidPrintQuery()

Prints the query as array of query items Used only for debugging.

QueryAsStringLC()

IMPORT_C TDesC &QueryAsStringLC()

Returns the search sequence as a single string (This does not return the keyboard mode)

Remove(TInt)

IMPORT_C voidRemove(TIntaIndex)

Removes the query item at the specified index

Parameters

TInt aIndexThe position within the array from where the object pointer is to be removed.

Reset()

IMPORT_C voidReset()

Deletes the entire search query

Member Data Documentation

RPointerArray< CPsQueryItem > iSearchQuery

RPointerArray< CPsQueryItem >iSearchQuery[private]

The search query.