CDscDatabase Class Reference

class CDscDatabase : public CBase

A database of DSC items

Inherits from

Constructor & Destructor Documentation

CDscDatabase()

CDscDatabase()[private]

~CDscDatabase()

~CDscDatabase()

Member Functions Documentation

AddItemL(CDscItem &, TDscPosition)

voidAddItemL(CDscItem &aItem,
TDscPositionaPos
)

Parameters

CDscItem & aItem
TDscPosition aPos

CleanupDatabaseRollback(TAny *)

voidCleanupDatabaseRollback(TAny *aDatabase)[private, static]

Parameters

TAny * aDatabase

CleanupEnumRollback(TAny *)

voidCleanupEnumRollback(TAny *aDatabase)[private, static]

Parameters

TAny * aDatabase

ConstructL()

voidConstructL()[private]

CreateDatabaseL(const TDesC &)

voidCreateDatabaseL(const TDesC &aDatabaseName)[private]

Parameters

const TDesC & aDatabaseName

CreateDscL(const TUid &, const TDesC &)

voidCreateDscL(const TUid &aDscId,
const TDesC &aDescription
)

Parameters

const TUid & aDscId
const TDesC & aDescription

CreateTablesL()

voidCreateTablesL()[private]

DatabaseBeginLC()

voidDatabaseBeginLC()[private]

DatabaseCommitL()

voidDatabaseCommitL()[private]

DeleteDb()

TInt DeleteDb()[private]

DeleteDscL(const TUid &)

voidDeleteDscL(const TUid &aDscId)

Parameters

const TUid & aDscId

DeleteItemL(const CDscItem &)

voidDeleteItemL(const CDscItem &aItem)

Parameters

const CDscItem & aItem

DscExistsL(const TUid &)

TBool DscExistsL(const TUid &aDscId)const

Parameters

const TUid & aDscId

EnumBeginLC()

voidEnumBeginLC()[private]

EnumClose()

voidEnumClose()

EnumOpenLC(const TUid &)

voidEnumOpenLC(const TUid &aDscId)

Parameters

const TUid & aDscId

EnumReadNextL()

CDscItem *EnumReadNextL()

GetDatabaseNameL(TDes &)

voidGetDatabaseNameL(TDes &aDatabaseName)[private, static]

Parameters

TDes & aDatabaseName

GetDscDescriptionL(const TUid &, TDes &)

voidGetDscDescriptionL(const TUid &aDscId,
TDes &aDescription
)const

Parameters

const TUid & aDscId
TDes & aDescription

GetNextItemIdL(TDscPosition, const TUid &)

TInt GetNextItemIdL(TDscPositionaPos,
const TUid &aDscId
)const [private]

Helper function. Get the next available itemId for the item. Reads all existing ItemIds for the specified DscId, then calculates last+1 or first-1 depending on aPos. Will never return 0 as its reserved to mean not yet persistent.

Parameters

TDscPosition aPos
const TUid & aDscId

ItemExistsL(const CDscItem &)

TBool ItemExistsL(const CDscItem &aItem)const

Parameters

const CDscItem & aItem

MaxStringLength()

TInt MaxStringLength()[static]

NewL()

CDscDatabase *NewL()[static]

QueryItemL(RDbView &, const CDscItem &)

voidQueryItemL(RDbView &aView,
const CDscItem &aItem
)const [private]

Parameters

RDbView & aView
const CDscItem & aItem

ReadDscItemL(RDbRowSet &, CDscItem &)

voidReadDscItemL(RDbRowSet &aRowSet,
CDscItem &aItem
)const [private]

Parameters

RDbRowSet & aRowSet
CDscItem & aItem

ReadItemL(CDscItem &)

voidReadItemL(CDscItem &aItem)

Parameters

CDscItem & aItem

Rollback()

voidRollback()[private]

UpdateItemL(const CDscItem &)

voidUpdateItemL(const CDscItem &aItem)

Parameters

const CDscItem & aItem

Member Data Documentation

RDbNamedDatabase iDatabase

RDbNamedDatabase iDatabase[private]

RDbs iDbsSession

RDbs iDbsSession[private]

TBool iIsEnumOpened

TBool iIsEnumOpened[private]

RDbView iView

RDbView iView[private]