CDscDatabase Class Reference
class CDscDatabase : public CBase
|
Constructor & Destructor Documentation
CDscDatabase()
CDscDatabase
|
(
|
)
|
[private]
|
Member Functions Documentation
AddItemL(CDscItem &, TDscPosition)
void
|
AddItemL
|
(
|
CDscItem
&
|
aItem,
|
|
TDscPosition
|
aPos
|
|
)
|
|
CleanupDatabaseRollback(TAny *)
void
|
CleanupDatabaseRollback
|
(
|
TAny
*
|
aDatabase
|
)
|
[private, static]
|
CleanupEnumRollback(TAny *)
void
|
CleanupEnumRollback
|
(
|
TAny
*
|
aDatabase
|
)
|
[private, static]
|
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
|
)
|
|
DeleteItemL(const CDscItem &)
void
|
DeleteItemL
|
(
|
const
CDscItem
&
|
aItem
|
)
|
|
DscExistsL(const TUid &)
TBool
|
DscExistsL
|
(
|
const
TUid
&
|
aDscId
|
)
|
const
|
EnumBeginLC()
void
|
EnumBeginLC
|
(
|
)
|
[private]
|
EnumOpenLC(const TUid &)
void
|
EnumOpenLC
|
(
|
const
TUid
&
|
aDscId
|
)
|
|
GetDatabaseNameL(TDes &)
void
|
GetDatabaseNameL
|
(
|
TDes
&
|
aDatabaseName
|
)
|
[private, static]
|
GetDscDescriptionL(const TUid &, TDes &)
void
|
GetDscDescriptionL
|
(
|
const
TUid
&
|
aDscId,
|
|
TDes
&
|
aDescription
|
|
)
|
const
|
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 &)
MaxStringLength()
TInt
|
MaxStringLength
|
(
|
)
|
[static]
|
QueryItemL(RDbView &, const CDscItem &)
void
|
QueryItemL
|
(
|
RDbView
&
|
aView,
|
|
const
CDscItem
&
|
aItem
|
|
)
|
const [private]
|
ReadDscItemL(RDbRowSet &, CDscItem &)
Rollback()
void
|
Rollback
|
(
|
)
|
[private]
|
UpdateItemL(const CDscItem &)
void
|
UpdateItemL
|
(
|
const
CDscItem
&
|
aItem
|
)
|
|
Member Data Documentation
RDbNamedDatabase
iDatabase
RDbs
iDbsSession
RDbs
|
iDbsSession
|
[private]
|
TBool
iIsEnumOpened
TBool
|
iIsEnumOpened
|
[private]
|
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.