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
Private Member Functions |
---|
void | AppendQueryInteger(const TUint32 &, TDes &, TBool &, const TUint32 &, const TUint32 &, const TDesC &) |
void | AppendQueryStringL(const TDesC &, TDes &, TBool &, const TUint32 &, const TUint32 &, const TDesC &) |
const TDesC * | GetComparisonOperator(const TUint32 &) |
Constructor & Destructor Documentation
CDecisionDb()
Constructor for read-only decision database object
~CDecisionDb()
Destructor for read-only decision database object
Member Functions Documentation
AppendQueryInteger(const TUint32 &, TDes &, TBool &, const TUint32 &, const TUint32 &, const TDesC &)
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 &)
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 &)
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 &)
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.
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.
Member Data Documentation
RDbStoreDatabase
iDatabase
Handle to the decision store database
CFileStore * iStore
Pointer to the database file storage object
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.