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.
Public Member Functions | |
---|---|
~CPsData () | |
IMPORT_C void | AddIntDataExtL ( TInt ) |
IMPORT_C void | ClearDataMatches () |
IMPORT_C TInt | CompareByData (const CPsData &, const CPsData &) |
IMPORT_C TBool | CompareById (const CPsData &, const CPsData &) |
IMPORT_C HBufC * | Data ( TInt ) |
IMPORT_C TInt | DataElementCount () |
IMPORT_C TAny * | DataExtension () |
IMPORT_C TUint8 | DataMatch () |
IMPORT_C void | ExternalizeL ( RWriteStream &) |
IMPORT_C TInt | Id () |
IMPORT_C void | IntDataExt ( RArray < TInt > &) |
IMPORT_C void | InternalizeL ( RReadStream &) |
IMPORT_C TBool | IsDataMatch ( TInt ) |
IMPORT_C CPsData * | NewL () |
IMPORT_C void | RemoveIntDataExt ( TInt ) |
IMPORT_C void | SetDataExtension ( TAny *) |
IMPORT_C void | SetDataL (const TInt , const TDesC &) |
IMPORT_C void | SetDataMatch ( TInt ) |
IMPORT_C void | SetId (const TInt ) |
IMPORT_C void | SetUriId (const TUint8 ) |
IMPORT_C TUint8 | UriId () |
Private Member Functions | |
---|---|
CPsData () | |
void | ConstructL () |
Private Attributes | |
---|---|
RPointerArray < HBufC > * | iData |
TAny * | iDataExtension |
TUint8 | iDataMatches |
RPointerArray < HBufC > * | iGc |
TInt | iId |
RArray < TInt > * | iIntDataExt |
TUint8 | iUriId |
IMPORT_C void | AddIntDataExtL | ( | TInt | aDataExt | ) |
Add element to the Integer Data Extention
TInt aDataExt | - Integer Data Extension to be added |
IMPORT_C TInt | CompareByData | ( | const CPsData & | aObject1, |
const CPsData & | aObject2 | |||
) | [static] |
Method to compare two CPsData objects
IMPORT_C TBool | CompareById | ( | const CPsData & | aObject1, |
const CPsData & | aObject2 | |||
) | [static] |
Method to compare two CPsData objects based on unique Id
IMPORT_C HBufC * | Data | ( | TInt | aIndex | ) | const |
Pointer to the data element at the specified location
TInt aIndex | Index of data element |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Writes 'this' to the stream
RWriteStream & aStream | WriteStream with externalized contents |
IMPORT_C void | IntDataExt | ( | RArray < TInt > & | aDataExtArray | ) |
Retrieve Integer Data Extention Array
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
Initializes 'this' from stream
RReadStream & aStream | ReadStream with data contents to be internalized |
IMPORT_C TBool | IsDataMatch | ( | TInt | aIndex | ) |
Checks if data at array index is matched for predictive search
TInt aIndex | Index of data element |
IMPORT_C void | RemoveIntDataExt | ( | TInt | aIndex | ) |
Remove element from the Integer Data Extention
TInt aIndex | - Integer Data Extension array index |
IMPORT_C void | SetDataExtension | ( | TAny * | aDataExt | ) |
Set the data extension
TAny * aDataExt | Data Extension for this object |
IMPORT_C void | SetDataL | ( | const TInt | aIndex, |
const TDesC & | aData | |||
) |
Sets the data at the specified location
IMPORT_C void | SetDataMatch | ( | TInt | aIndex | ) |
Sets data at array index has matched for predictive search
TInt aIndex | Index of data element |
IMPORT_C void | SetId | ( | const TInt | aId | ) |
Sets the unique identifier of this object
const TInt aId | The unique identifier |
IMPORT_C void | SetUriId | ( | const TUint8 | aUriId | ) |
Sets the unique URI identifier of this object
const TUint8 aUriId | The unique URI identifier |
TUint8 | iDataMatches | [private] |
Indicates in bit positions, what data fields are matched for predictive search
RPointerArray < HBufC > * | iGc | [private] |
Garbage collector to fix performance issue
RArray < TInt > * | iIntDataExt | [private] |
Extended Data field of Integers
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.