CCommsDatabaseProtect Class Reference

class CCommsDatabaseProtect : public CCommsDatabase

Inherits from

Public Member Functions
~CCommsDatabaseProtect()
IMPORT_C RDbRowSet::TAccessGetTableAccessL(const TDesC &)
IMPORT_C CCommsDatabaseProtect *NewL()
IMPORT_C CCommsDatabaseProtect *NewL(TBool)
IMPORT_C CCommsDatabaseProtect *NewL(TCommDbOpeningMethod &)
IMPORT_C TIntProtectTable(const TDesC &)
IMPORT_C TIntProtectTables(CPtrCArray &)
IMPORT_C TIntUnProtectTable(const TDesC &)
IMPORT_C TIntUnprotectTables(CPtrCArray &)
Private Member Functions
CCommsDatabaseProtect()
voidConstructL()
voidDoTableProtectionL(CMDBRecordSetBase *, TBool)
voidDoTablesProtectionL(CPtrCArray &, TBool)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCommsDatabase::CCommsDatabase()
CCommsDatabase::ClearAgentAndExtL(const TDesC &)
CCommsDatabase::ClearGlobalSettingL(const TDesC &)
CCommsDatabase::DoOpenL(TCommDbOpeningMethod &,TBool)
CCommsDatabase::GetAgentClientTimeoutL(const TDesC &)
CCommsDatabase::GetAgentExtL(const TDesC &,TDes &)
CCommsDatabase::GetAgentL(const TDesC &,TDes &)
CCommsDatabase::GetAgentRouteTimeoutL(const TDesC &)
CCommsDatabase::GetCurrentDialInSettingL(const TDesC &,TUint32 &)
CCommsDatabase::GetCurrentDialOutSettingL(const TDesC &,TUint32 &)
CCommsDatabase::GetDefaultTsyL(TDes &)
CCommsDatabase::GetGlobalSettingL(const TDesC &,TDes &)
CCommsDatabase::GetGlobalSettingL(const TDesC &,TUint32 &)
CCommsDatabase::NewL(TCommDbDatabaseType)
CCommsDatabase::NewL(TCommDbDatabaseType,TCommDbOpeningMethod &)
CCommsDatabase::OpenConnectionPrefTableInRankOrderLC(TCommDbConnectionDirection)
CCommsDatabase::OpenConnectionPrefTableLC()
CCommsDatabase::OpenConnectionPrefTableLC(TCommDbConnectionDirection)
CCommsDatabase::OpenConnectionPrefTableViewOnRankLC(TCommDbConnectionDirection,TUint32)
CCommsDatabase::OpenIAPTableViewMatchingBearerSetLC(TUint32,TCommDbConnectionDirection)
CCommsDatabase::OpenIAPTableViewMatchingNetworkLC(TUint32)
CCommsDatabase::OpenViewOnProxyRecordLC(TUint32,const TDesC &)
CCommsDatabase::SetAgentClientTimeoutL(const TDesC &,TInt)
CCommsDatabase::SetAgentExtL(const TDesC &,const TDesC &)
CCommsDatabase::SetAgentL(const TDesC &,const TDesC &)
CCommsDatabase::SetAgentRouteTimeoutL(const TDesC &,TInt)
CCommsDatabase::SetGlobalSettingL(const TDesC &,TUint32)
CCommsDatabase::SetGlobalSettingL(const TDesC &,const TDesC &)
CCommsDatabase::~CCommsDatabase()
CCommsDatabaseBase::BeginInternalTransactionL()
CCommsDatabaseBase::BeginTransaction()
CCommsDatabaseBase::CCommsDatabaseBase()
CCommsDatabaseBase::CancelRequestNotification()
CCommsDatabaseBase::CheckDBCapability(RDbs::TPolicyType,const TDesC &,const RMessagePtr2 *)
CCommsDatabaseBase::CheckReadCapability(const TDesC &,const RMessagePtr2 *)
CCommsDatabaseBase::CheckWriteCapability(const TDesC &,const RMessagePtr2 *)
CCommsDatabaseBase::CommitInternalTransaction()
CCommsDatabaseBase::CommitTransaction()
CCommsDatabaseBase::ConvertToUid(const TDesC &,TUint32,TCommDbPublishSubscribeNotification &)
CCommsDatabaseBase::Database()
CCommsDatabaseBase::DatabaseUpdateHasOccurred()
CCommsDatabaseBase::DoClose()
CCommsDatabaseBase::DoOpenIAPTableViewL(const TDesC &,const TDesC &)
CCommsDatabaseBase::DoOpenTableViewL(const TDesC &,const TDesC &)
CCommsDatabaseBase::DoOpenViewMatchingTextL(const TDesC &,const TDesC &,const TDesC16 &,TBool)
CCommsDatabaseBase::DoOpenViewMatchingTextL(const TDesC &,const TDesC &,const TDesC8 &,TBool)
CCommsDatabaseBase::DoOpenViewMatchingUintL(const TDesC &,const TDesC &,TUint32,TBool)
CCommsDatabaseBase::GetNewNumber(TUid)
CCommsDatabaseBase::InTransaction()
CCommsDatabaseBase::InitializeFilestore()
CCommsDatabaseBase::IsDatabaseWriteLockedL()
CCommsDatabaseBase::NotifyAllChanges()
CCommsDatabaseBase::NotifyChangeL(const TDesC &,TUint32)
CCommsDatabaseBase::OpenTableLC(const TDesC &)
CCommsDatabaseBase::OpenViewLC(const TDesC &,const TDesC &)
CCommsDatabaseBase::OpenViewMatchingBoolLC(const TDesC &,const TDesC &,TBool)
CCommsDatabaseBase::OpenViewMatchingTextLC(const TDesC &,const TDesC &,const TDesC16 &)
CCommsDatabaseBase::OpenViewMatchingTextLC(const TDesC &,const TDesC &,const TDesC8 &)
CCommsDatabaseBase::OpenViewMatchingUintLC(const TDesC &,const TDesC &,TUint32)
CCommsDatabaseBase::PopulateChargeCardL(TUint32,TChargeCard &)
CCommsDatabaseBase::PopulateDialLocationL(TUint32,TDialLocation &)
CCommsDatabaseBase::RequestNotification(TRequestStatus &)
CCommsDatabaseBase::ResolvePhoneNumberFromDatabaseL(TDesC &,TDes &,TParseMode,TUint32,TUint32)
CCommsDatabaseBase::ResolvePhoneNumberL(TDesC &,TDes &,TParseMode,TUint32,TUint32)
CCommsDatabaseBase::RollbackInternalTransaction()
CCommsDatabaseBase::RollbackTransaction()
CCommsDatabaseBase::ShowHiddenRecords()
CCommsDatabaseBase::Version()const
CCommsDatabaseBase::~CCommsDatabaseBase()
Private Attributes
CCommDbTableExtension *iTableExt
Inherited Attributes
CCommsDatabaseBase::iDatabase
CCommsDatabaseBase::iImpl
CCommsDatabaseBase::iImplNotCreated
CCommsDatabaseBase::iInInternalTransaction
CCommsDatabaseBase::iNotifications
CCommsDatabaseBase::iNotifier
CCommsDatabaseBase::iNotifierOpenError
CCommsDatabaseBase::iShowHiddenRecords

Constructor & Destructor Documentation

CCommsDatabaseProtect()

CCommsDatabaseProtect()[private]

~CCommsDatabaseProtect()

IMPORT_C~CCommsDatabaseProtect()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

DoTableProtectionL(CMDBRecordSetBase *, TBool)

voidDoTableProtectionL(CMDBRecordSetBase *aElement,
TBoolaProtect
)[private]

Parameters

CMDBRecordSetBase * aElement
TBool aProtect

DoTablesProtectionL(CPtrCArray &, TBool)

voidDoTablesProtectionL(CPtrCArray &aTableList,
TBoolaProtect
)[private]

Parameters

CPtrCArray & aTableList
TBool aProtect

GetTableAccessL(const TDesC &)

IMPORT_C RDbRowSet::TAccessGetTableAccessL(const TDesC &aTableName)

returns the access rights for aTableName from the ACCESS_TYPE_TABLE

returns the access rights for aTableName from the ACCESS_TYPE_TABLE
capability
Dependent on table, see the guide page referenced below.

Parameters

const TDesC & aTableNameContains the descriptor of a CommDb table name

NewL()

IMPORT_C CCommsDatabaseProtect *NewL()[static]

Creates a `CCommsDatabase`. If the database filestore does not exist the default filestore is duplicated. If no default filestore exists an empty database is created.

Creates a `CCommsDatabaseProtect`. If the database filestore does not exist the default filestore is duplicated. If no default filestore exists an empty database is created.

NewL(TBool)

IMPORT_C CCommsDatabaseProtect *NewL(TBoolaUseDefaultDb)[static]

Creates a `CCommsDatabase`. If the database filestore exists and `aUseDefaultDb` is True the default filestore is duplicated. Otherwise an empty database is created.

Creates a `CCommsDatabaseProtect`. If the database filestore exists and `aUseDefaultDb` is True the default filestore is duplicated. Otherwise an empty database is created.

Parameters

TBool aUseDefaultDb

NewL(TCommDbOpeningMethod &)

IMPORT_C CCommsDatabaseProtect *NewL(TCommDbOpeningMethod &aOpeningMethod)[static]

Creates a `CCommsDatabase` as with `NewL()`. The method of opening: (Created, CopiedDefault or Opened) is returned in `aOpeningMethod`.

Creates a `CCommsDatabaseProtect` as with `NewL()`. The method of opening: (Created, CopiedDefault or Opened) is returned in `aOpeningMethod`.

Parameters

TCommDbOpeningMethod & aOpeningMethod

ProtectTable(const TDesC &)

IMPORT_C TIntProtectTable(const TDesC &aTableName)

Sets the access right field in the ACCESS_TYPE_TABLE for the table specified in aTableName to RDbRowSet::EReadOnly

Sets the access right field in the ACCESS_TYPE_TABLE for the table specified in aTableName to RDbRowSet::EReadOnly
capability
Dependent on table, see the guide page referenced below.

Parameters

const TDesC & aTableNameContains the descriptor of a CommDb table name

ProtectTables(CPtrCArray &)

IMPORT_C TIntProtectTables(CPtrCArray &aTableList)

Sets the access right fields in the ACCESS_TYPE_TABLE for the tables specified in aTableList to RDbRowSet::EReadOnly

Sets the access right fields in the ACCESS_TYPE_TABLE for the tables specified in aTableList to RDbRowSet::EReadOnly
capability
Dependent on table, see the guide page referenced below.

Parameters

CPtrCArray & aTableListarray of CommDb table names

UnProtectTable(const TDesC &)

IMPORT_C TIntUnProtectTable(const TDesC &aTableName)

Sets the access right field in the ACCESS_TYPE_TABLE for the table specified in aTableName to RDbRowSet::EUpdatable

Sets the access right field in the ACCESS_TYPE_TABLE for the table specified in aTableName to RDbRowSet::EUpdatable
capability
Dependent on table, see the guide page referenced below.

Parameters

const TDesC & aTableNameContains the descriptor of a CommDb table name

UnprotectTables(CPtrCArray &)

IMPORT_C TIntUnprotectTables(CPtrCArray &aTableList)

Sets the access right fields in the ACCESS_TYPE_TABLE for the tables specified in aTableList to RDbRowSet::EUpdatable

Sets the access right fields in the ACCESS_TYPE_TABLE for the tables specified in aTableList to RDbRowSet::EUpdatable
capability
Dependent on table, see the guide page referenced below.

Parameters

CPtrCArray & aTableListarray of CommDb table names

Member Data Documentation

CCommDbTableExtension * iTableExt

CCommDbTableExtension *iTableExt[private]