class CCommsDatabaseBase : public CBase |
Base class for CCommsDatabase.
This class is never instantiated, but its member functions are used through the derived class.
Responsible for Transactions, Notifications, Write protection, Hidden records, Phone number resolution and Creating views. Stores the database, the session, transaction and notifier information.
CCommsDatabaseBase is an abstract base class as the CreateDatabaseL() and Open() methods are pure virtual.
Private Member Functions | |
---|---|
TBool | ConvertTableName(const TDesC &, TDes &) |
TInt | DoCheckReadCapabilityL(const TDesC &, const RMessagePtr2 *) |
TInt | DoCheckWriteCapabilityL(const TDesC &, const RMessagePtr2 *) |
Protected Attributes | |
---|---|
RDbNamedDatabase | iDatabase |
CCommsDatabaseImpl * | iImpl |
TBool | iImplNotCreated |
TBool | iInInternalTransaction |
RArray< TCommDbPublishSubscribeNotification > | iNotifications |
RDbNotifier | iNotifier |
TInt | iNotifierOpenError |
TBool | iShowHiddenRecords |
TInt | CheckDBCapability | ( | RDbs::TPolicyType | aType, |
const TDesC & | aField, | |||
const RMessagePtr2 * | aMessage | |||
) | [protected] |
RDbs::TPolicyType aType | |
const TDesC & aField | |
const RMessagePtr2 * aMessage |
IMPORT_C TInt | CheckReadCapability | ( | const TDesC & | aField, |
const RMessagePtr2 * | aMessage | |||
) |
const TDesC & aField | |
const RMessagePtr2 * aMessage |
IMPORT_C TInt | CheckWriteCapability | ( | const TDesC & | aField, |
const RMessagePtr2 * | aMessage | |||
) |
const TDesC & aField | |
const RMessagePtr2 * aMessage |
TBool | ConvertTableName | ( | const TDesC & | aTableName, |
TDes & | aResult | |||
) | [private] |
void | ConvertToUid | ( | const TDesC & | aSetting, |
TUint32 | aVal, | |||
TCommDbPublishSubscribeNotification & | aNotification | |||
) | [protected] |
const TDesC & aSetting | |
TUint32 aVal | |
TCommDbPublishSubscribeNotification & aNotification |
RDbNamedDatabase * | Database | ( | ) | [protected, inline] |
Returns the interface for creating and opening a database identified by name and format.
A pointer to the interface for creating and opening a database identified by name and format.
TInt | DoCheckReadCapabilityL | ( | const TDesC & | aField, |
const RMessagePtr2 * | aMessage | |||
) | [private] |
const TDesC & aField | |
const RMessagePtr2 * aMessage |
TInt | DoCheckWriteCapabilityL | ( | const TDesC & | aField, |
const RMessagePtr2 * | aMessage | |||
) | [private] |
const TDesC & aField | |
const RMessagePtr2 * aMessage |
CCommsDbTableView * | DoOpenIAPTableViewL | ( | const TDesC & | aTableName, |
const TDesC & | aSqlQuery | |||
) | [protected] |
CCommsDbTableView * | DoOpenTableViewL | ( | const TDesC & | aTableName, |
const TDesC & | aSqlQuery | |||
) | [protected] |
CCommsDbTableView * | DoOpenViewMatchingTextL | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
const TDesC8 & | aValueToMatch, | |||
TBool | aIncludeHiddenRecords | |||
) | [protected] |
CCommsDbTableView * | DoOpenViewMatchingTextL | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
const TDesC16 & | aValueToMatch, | |||
TBool | aIncludeHiddenRecords | |||
) | [protected] |
CCommsDbTableView * | DoOpenViewMatchingUintL | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
TUint32 | aValueToMatch, | |||
TBool | aIncludeHiddenRecords | |||
) | [protected] |
void | NotifyChangeL | ( | const TDesC & | aSetting, |
TUint32 | aVal | |||
) | [protected] |
IMPORT_C CCommsDbTableView * | OpenTableLC | ( | const TDesC & | aTableName | ) |
const TDesC & aTableName |
IMPORT_C CCommsDbTableView * | OpenViewLC | ( | const TDesC & | aTableName, |
const TDesC & | aSqlQuery | |||
) |
IMPORT_C CCommsDbTableView * | OpenViewMatchingBoolLC | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
TBool | aValueToMatch | |||
) |
IMPORT_C CCommsDbTableView * | OpenViewMatchingTextLC | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
const TDesC8 & | aValueToMatch | |||
) |
IMPORT_C CCommsDbTableView * | OpenViewMatchingTextLC | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
const TDesC16 & | aValueToMatch | |||
) |
IMPORT_C CCommsDbTableView * | OpenViewMatchingUintLC | ( | const TDesC & | aTableName, |
const TDesC & | aColumnToMatch, | |||
TUint32 | aValueToMatch | |||
) |
void | PopulateChargeCardL | ( | TUint32 | aId, |
TChargeCard & | aChargeCard | |||
) | [protected] |
TUint32 aId | |
TChargeCard & aChargeCard |
void | PopulateDialLocationL | ( | TUint32 | aId, |
TDialLocation & | aLocation | |||
) | [protected] |
TUint32 aId | |
TDialLocation & aLocation |
IMPORT_C TInt | RequestNotification | ( | TRequestStatus & | aStatus | ) |
TRequestStatus & aStatus |
IMPORT_C void | ResolvePhoneNumberFromDatabaseL | ( | TDesC & | aNumber, |
TDes & | aDialString, | |||
TParseMode | aDialParseMode, | |||
TUint32 | aLocationId, | |||
TUint32 | aChargecardId | |||
) |
TDesC & aNumber | |
TDes & aDialString | |
TParseMode aDialParseMode | |
TUint32 aLocationId | |
TUint32 aChargecardId |
IMPORT_C void | ResolvePhoneNumberL | ( | TDesC & | aNumber, |
TDes & | aDialString, | |||
TParseMode | aDialParseMode, | |||
TUint32 | aLocationId, | |||
TUint32 | aChargecardId | |||
) | [static] |
TDesC & aNumber | |
TDes & aDialString | |
TParseMode aDialParseMode | |
TUint32 aLocationId | |
TUint32 aChargecardId |
RArray< TCommDbPublishSubscribeNotification > | iNotifications | [protected] |