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)

void AddItemL ( CDscItem & aItem,
TDscPosition aPos
)

Parameters

CDscItem & aItem
TDscPosition aPos

CleanupDatabaseRollback(TAny *)

void CleanupDatabaseRollback ( TAny * aDatabase ) [private, static]

Parameters

TAny * aDatabase

CleanupEnumRollback(TAny *)

void CleanupEnumRollback ( TAny * aDatabase ) [private, static]

Parameters

TAny * aDatabase

ConstructL()

void ConstructL ( ) [private]

CreateDatabaseL(const TDesC &)

void CreateDatabaseL ( const TDesC & aDatabaseName ) [private]

Parameters

const TDesC & aDatabaseName

CreateDscL(const TUid &, const TDesC &)

void CreateDscL ( const TUid & aDscId,
const TDesC & aDescription
)

Parameters

const TUid & aDscId
const TDesC & aDescription

CreateTablesL()

void CreateTablesL ( ) [private]

DatabaseBeginLC()

void DatabaseBeginLC ( ) [private]

DatabaseCommitL()

void DatabaseCommitL ( ) [private]

DeleteDb()

TInt DeleteDb ( ) [private]

DeleteDscL(const TUid &)

void DeleteDscL ( const TUid & aDscId )

Parameters

const TUid & aDscId

DeleteItemL(const CDscItem &)

void DeleteItemL ( const CDscItem & aItem )

Parameters

const CDscItem & aItem

DscExistsL(const TUid &)

TBool DscExistsL ( const TUid & aDscId ) const

Parameters

const TUid & aDscId

EnumBeginLC()

void EnumBeginLC ( ) [private]

EnumClose()

void EnumClose ( )

EnumOpenLC(const TUid &)

void EnumOpenLC ( const TUid & aDscId )

Parameters

const TUid & aDscId

EnumReadNextL()

CDscItem * EnumReadNextL ( )

GetDatabaseNameL(TDes &)

void GetDatabaseNameL ( TDes & aDatabaseName ) [private, static]

Parameters

TDes & aDatabaseName

GetDscDescriptionL(const TUid &, TDes &)

void GetDscDescriptionL ( const TUid & aDscId,
TDes & aDescription
) const

Parameters

const TUid & aDscId
TDes & aDescription

GetNextItemIdL(TDscPosition, const TUid &)

TInt GetNextItemIdL ( TDscPosition aPos,
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 &)

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

Parameters

RDbView & aView
const CDscItem & aItem

ReadDscItemL(RDbRowSet &, CDscItem &)

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

Parameters

RDbRowSet & aRowSet
CDscItem & aItem

ReadItemL(CDscItem &)

void ReadItemL ( CDscItem & aItem )

Parameters

CDscItem & aItem

Rollback()

void Rollback ( ) [private]

UpdateItemL(const CDscItem &)

void UpdateItemL ( 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]