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 &)

voidAppendQueryInteger(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 & aValueThe integer value which will be added to the query.
TDes & aSqlThe SQL query string.
TBool & aMultipleEFalse, if there is only one query key in the query string. Otherwise, ETrue.
const TUint32 & aFlagThe flag value corresponding to the query key.
const TUint32 & aSetColA constant value indicating whether or not a specific column is set.
const TDesC & aColNameThe column name of the query key.

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

voidAppendQueryStringL(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 & aValueThe string value which will be added to the query.
TDes & aSqlThe SQL query string.
TBool & aMultipleEFalse, if there is only one query key in the query string. Otherwise, ETrue.
const TUint32 & aFlagThe flag value corresponding to the query key.
const TUint32 & aSetColA constant value indicating whether or not a specific column is set.
const TDesC & aColNameThe column name of the query key.

CreateSqlStatementLC(CDecisionFilter &, RBuf &)

voidCreateSqlStatementLC(CDecisionFilter &aFilter,
RBuf &aSql
)[protected]

Creates an sql statement from a given filter.

Parameters

CDecisionFilter & aFilterA filter object used to create the SQL statement.
RBuf & aSqlThe 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 & aFilterA filter object to query the decision database

DoubleSingleQuotesL(const TDesC &, RBuf &)

voidDoubleSingleQuotesL(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 & aSourceA source descriptor.
RBuf & aDestinationA 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