UserPromptService::CDecisionDb Class Reference

class UserPromptService::CDecisionDb : public CBase

A read-only interface for UPS decision database. Provide methods to query database.

Inherits from

  • UserPromptService::CDecisionDb

Constructor & Destructor Documentation

CDecisionDb()

CDecisionDb ( ) [protected]

Constructor for read-only decision database object

~CDecisionDb()

~CDecisionDb ( )

Destructor for read-only decision database object

Member Functions Documentation

AppendQueryInteger(const TUint32 &, TDes &, TBool &, const TUint32 &, const TUint32 &, const TDesC &)

void AppendQueryInteger ( const TUint32 & aValue,
TDes & aSql,
TBool & aMultiple,
const TUint32 & aFlag,
const TUint32 & aSetCol,
const TDesC & aColName
) [private]

Appends an integer-based query key field to an SQL query string.

Parameters

const TUint32 & aValue The integer value which will be added to the query.
TDes & aSql The SQL query string.
TBool & aMultiple EFalse, if there is only one query key in the query string. Otherwise, ETrue.
const TUint32 & aFlag The flag value corresponding to the query key.
const TUint32 & aSetCol A constant value indicating whether or not a specific column is set.
const TDesC & aColName The column name of the query key.

AppendQueryStringL(const TDesC &, TDes &, TBool &, const TUint32 &, const TUint32 &, const TDesC &)

void AppendQueryStringL ( const TDesC & aValue,
TDes & aSql,
TBool & aMultiple,
const TUint32 & aFlag,
const TUint32 & aSetCol,
const TDesC & aColName
) [private]

Appends an string query key to an SQL query string.

Parameters

const TDesC & aValue The string value which will be added to the query.
TDes & aSql The SQL query string.
TBool & aMultiple EFalse, if there is only one query key in the query string. Otherwise, ETrue.
const TUint32 & aFlag The flag value corresponding to the query key.
const TUint32 & aSetCol A constant value indicating whether or not a specific column is set.
const TDesC & aColName The column name of the query key.

CreateSqlStatementLC(CDecisionFilter &, RBuf &)

void CreateSqlStatementLC ( CDecisionFilter & aFilter,
RBuf & aSql
) [protected]

Creates an sql statement from a given filter.

Parameters

CDecisionFilter & aFilter A filter object used to create the SQL statement.
RBuf & aSql The newly created SQL statement.

CreateViewL(CDecisionFilter &)

IMPORT_C CDecisionView * CreateViewL ( CDecisionFilter & aFilter )

Generates an SQL view rowset to the decision table by using a filter. The view rowset contains a set of rows which depend on the filter.

Parameters

CDecisionFilter & aFilter A filter object to query the decision database

DoubleSingleQuotesL(const TDesC &, RBuf &)

void DoubleSingleQuotesL ( const TDesC & aSource,
RBuf & aDestination
) [protected]

Copies a source descriptor into a destination descriptor. If a single quote character is found an extra single quote is copied to the destination. Because, it is not possible to search for a string in SQL with single quote (').

Parameters

const TDesC & aSource A source descriptor.
RBuf & aDestination A destination descriptor.

GetComparisonOperator(const TUint32 &)

const TDesC * GetComparisonOperator ( const TUint32 & aFlag ) const [private]

Finds and returns the correspondent comparision operator string.

Parameters

const TUint32 & aFlag

Member Data Documentation

RDbStoreDatabase iDatabase

RDbStoreDatabase iDatabase [protected]

Handle to the decision store database

CFileStore * iStore

CFileStore * iStore [protected]

Pointer to the database file storage object