| class CPsQuery : public CBase |
Utility class to hold the search sequence for predictive search. The Max length of search sequence = KPsQueryMaxLen.
| Public Member Functions | |
|---|---|
| ~CPsQuery () | |
| IMPORT_C void | AppendL (const CPsQueryItem &) |
| IMPORT_C TInt | Count () |
| IMPORT_C void | ExternalizeL ( RWriteStream &) |
| IMPORT_C CPsQueryItem & | GetItemAtL ( TInt ) |
| IMPORT_C void | InsertL (const CPsQueryItem &, TInt ) |
| IMPORT_C void | InternalizeL ( RReadStream &) |
| IMPORT_C TKeyboardModes | KeyboardModeL () |
| IMPORT_C CPsQuery * | NewL () |
| IMPORT_C void | PrintQuery () |
| IMPORT_C TDesC & | QueryAsStringLC () |
| IMPORT_C void | Remove ( TInt ) |
| IMPORT_C void | Reset () |
| Private Member Functions | |
|---|---|
| CPsQuery () | |
| void | ConstructL () |
| Private Attributes | |
|---|---|
| RPointerArray < CPsQueryItem > | iSearchQuery |
| IMPORT_C void | AppendL | ( | const CPsQueryItem & | aQueryItem | ) |
Appends a query item to the search sequence (if the current length < KPsQueryMaxLen)
| const CPsQueryItem & aQueryItem | The object pointer to be appended |
| IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Writes 'this' to the stream
| RWriteStream & aStream | WriteStream with externalized contents |
| IMPORT_C CPsQueryItem & | GetItemAtL | ( | TInt | aIndex | ) |
Returns the query item at the specified index
| TInt aIndex |
| IMPORT_C void | InsertL | ( | const CPsQueryItem & | aQueryItem, |
| TInt | aIndex | |||
| ) | ||||
Insert a query item to the search sequence (if the current length < KPsQueryMaxLen)
| const CPsQueryItem & aQueryItem | The object pointer to be inserted |
| TInt aIndex | The position within the array where the object pointer is to be inserted |
| IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Initializes 'this' from stream
| RReadStream & aStream | ReadStream with data contents to be internalized |
| IMPORT_C TKeyboardModes | 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
| IMPORT_C void | PrintQuery | ( | ) |
Prints the query as array of query items Used only for debugging.
| IMPORT_C TDesC & | QueryAsStringLC | ( | ) |
Returns the search sequence as a single string (This does not return the keyboard mode)
| IMPORT_C void | Remove | ( | TInt | aIndex | ) |
Removes the query item at the specified index
| TInt aIndex | The position within the array from where the object pointer is to be removed. |
| RPointerArray < CPsQueryItem > | iSearchQuery | [private] |
The search query.
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.