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
Constructor & Destructor Documentation
Member Functions Documentation
AppendL(const CPsQueryItem &)
Appends a query item to the search sequence (if the current length < KPsQueryMaxLen)
Parameters
const CPsQueryItem & aQueryItem | The object pointer to be appended |
ConstructL()
void | ConstructL | ( | ) | [private] |
Count()
Returns the length of the query
ExternalizeL(RWriteStream &)
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Writes 'this' to the stream
Parameters
RWriteStream & aStream | WriteStream with externalized contents |
GetItemAtL(TInt)
Returns the query item at the specified index
InsertL(const CPsQueryItem &, TInt)
Insert a query item to the search sequence (if the current length < KPsQueryMaxLen)
Parameters
const CPsQueryItem & aQueryItem | The object pointer to be inserted |
TInt aIndex | The position within the array where the object pointer is to be inserted |
InternalizeL(RReadStream &)
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Initializes 'this' from stream
Parameters
RReadStream & aStream | ReadStream with data contents to be internalized |
KeyboardModeL()
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
PrintQuery()
IMPORT_C void | PrintQuery | ( | ) | |
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 void | Remove | ( | TInt | aIndex | ) | |
Removes the query item at the specified index
Parameters
TInt aIndex | The position within the array from where the object pointer is to be removed. |
Reset()
Deletes the entire search query
Member Data Documentation
RPointerArray< CPsQueryItem > iSearchQuery
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.