CBookmarkDb Class Reference

class CBookmarkDb : public CRepositoryAccessor

Internal representation for the bookmark database. The database object creates the connection to the repositories and is the entry point for browsing the boomark tree. It is also responsible for all database-wide properties.

Inherits from

Nested Classes and Structures

Public Member Functions
~CBookmarkDb()
voidBWONotify(TBkmrkWatcherType)
CRepository &BookmarkRepository()
voidCommitL()
voidConstructTreeL()
CBookmark &CreateBookmarkL(CBookmarkFolder &)
voidCreateDefaultRepositoriesL()
CBookmarkFolder &CreateFolderL(const TDesC &, CBookmarkFolder &)
Bookmark::TAttachmentId CreateIconL(const TDesC8 &)
CPropertyList &CustomProperties()
TUint32 DefaultNap()
TUint32 DefaultProxy()
TInt DeleteIconL(Bookmark::TAttachmentId)
voidDeleteItemL(Bookmark::TItemId, TBool)
CBookmarkFolder *FindFolder(const TDesC &)
CBookmarkBase *FindItem(Bookmark::TItemId)
TBool FindUnloadedFolder(const TDesC &)
CRepository &FolderRepository()
CBookmark *Home()
const TDesC &HomePageText()
const TDesC8 &IconL(Bookmark::TAttachmentId)
TUint32 IndexBase()
TBool IsLoading()
TBool IsTreeConstructed()
CBookmarkDb *NewL(Bookmark::TVisibility, MBookmarkObserver *)
CPropertyReg &PropertyRegister()
voidRefreshL()
voidRemoveBookmarkL(CBookmark *)
voidRemoveFolderL(CBookmarkFolder *)
CBookmarkFolder &RootL()
const TDesC8 &SearchUri()
voidSetDefaultNap(TUint32)
voidSetDefaultProxy(TUint32)
voidSetHome(CBookmark *)
voidSetHomePageTextL(const TDesC &)
voidSetIdFromIndexBase(TUint32)
voidSetSearchUriL(const TDesC8 &)
voidTransLoadL()
voidTransNewL()
voidTransRemoveL()
voidTransSaveL()
TVersion Version()
Bookmark::TVisibility Visibility()
Private Member Functions
CBookmarkDb(MBookmarkObserver *)
voidAddItemsToFolderTreeL(TBkmrkList &)
TBool CheckAccessL(CBookmarkBase &)
voidConstructL(Bookmark::TVisibility)
TInt FindIcon(Bookmark::TAttachmentId)
TBool HasDataInRepositoryL()
TBool HasOpenHandles()
voidInitialiseRepL(CRepository &)
voidLoadBookmarkListL(CRepository &, TBkmrkList &, Bookmark::TType, TBool)
voidLoadIconsL()
voidLoadTreeL()
TBool RemoveFolderIfPublicL(CBookmarkFolder &)
voidReset()
voidResetAndDestroyBkmrkList(TAny *)
voidResetIcons()
voidResetTree()
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()
CRepositoryAccessor::CRepositoryAccessor()
CRepositoryAccessor::DeleteL()
CRepositoryAccessor::NextIndexL()
CRepositoryAccessor::SetClean()
CRepositoryAccessor::SetDirty()
CRepositoryAccessor::SetRepository(CRepository &)
CRepositoryAccessor::TransactionL(TTransType)
Inherited Enumerations
CRepositoryAccessor:TBkmrkStatus
CRepositoryAccessor:TTransType
Private Attributes
TBool iBkmrkDbInitialized
TBkmrkList iBookmarkList
CRepository *iBookmarkRepository
CBkmrkWatcher *iBookmarkWatcher
TBool iConfigSync
CPropertyList *iCustomProperties
CRepository *iDatabaseRepository
CBkmrkWatcher *iDatabaseWatcher
TInt iDefaultNap
TInt iDefaultProxy
TBkmrkAccessorList iDeletedList
TBkmrkList iFolderList
CRepository *iFolderRepository
CBkmrkWatcher *iFolderWatcher
CBookmark *iHome
TInt iHomeId
HBufC *iHomeText
RArray< CBkmrkAttachment * >iIconList
CRepository *iIconRepository
TBool iIconSync
CBkmrkWatcher *iIconWatcher
TBool iLoading
MBookmarkObserver *iObserver
CPropertyReg *iPropertyRegister
CBookmarkFolder *iRoot
HBufC8 *iSearchUri
TBool iTreeConstructed
TBool iTreeSync
CDesCArrayFlat *iUnloadedFolderList
Bookmark::TVisibility iVisibility
Inherited Attributes
CRepositoryAccessor::iRepository
CRepositoryAccessor::iStatus

Constructor & Destructor Documentation

CBookmarkDb(MBookmarkObserver *)

CBookmarkDb(MBookmarkObserver *aObserver)[private]

Parameters

MBookmarkObserver * aObserver

~CBookmarkDb()

~CBookmarkDb()

Member Functions Documentation

AddItemsToFolderTreeL(TBkmrkList &)

voidAddItemsToFolderTreeL(TBkmrkList &aList)[private]

Parameters

TBkmrkList & aList

BWONotify(TBkmrkWatcherType)

voidBWONotify(TBkmrkWatcherTypeaType)

Parameters

TBkmrkWatcherType aType

BookmarkRepository()

CRepository &BookmarkRepository()

CheckAccessL(CBookmarkBase &)

TBool CheckAccessL(CBookmarkBase &aItem)[private]

Parameters

CBookmarkBase & aItem

CommitL()

voidCommitL()[virtual]

ConstructL(Bookmark::TVisibility)

voidConstructL(Bookmark::TVisibilityaVisibility)[private]

Parameters

Bookmark::TVisibility aVisibility

ConstructTreeL()

voidConstructTreeL()

CreateBookmarkL(CBookmarkFolder &)

CBookmark &CreateBookmarkL(CBookmarkFolder &aParent)

Parameters

CBookmarkFolder & aParent

CreateDefaultRepositoriesL()

voidCreateDefaultRepositoriesL()

CreateFolderL(const TDesC &, CBookmarkFolder &)

CBookmarkFolder &CreateFolderL(const TDesC &aFolderName,
CBookmarkFolder &aParent
)

Parameters

const TDesC & aFolderName
CBookmarkFolder & aParent

CreateIconL(const TDesC8 &)

Bookmark::TAttachmentId CreateIconL(const TDesC8 &aData)

Parameters

const TDesC8 & aData

CustomProperties()

CPropertyList &CustomProperties()

DefaultNap()

TUint32 DefaultNap()const

DefaultProxy()

TUint32 DefaultProxy()const

DeleteIconL(Bookmark::TAttachmentId)

TInt DeleteIconL(Bookmark::TAttachmentIdaIconId)

Parameters

Bookmark::TAttachmentId aIconId

DeleteItemL(Bookmark::TItemId, TBool)

voidDeleteItemL(Bookmark::TItemIdaItem,
TBoolaRecursive
)

Parameters

Bookmark::TItemId aItem
TBool aRecursive

FindFolder(const TDesC &)

CBookmarkFolder *FindFolder(const TDesC &aFolderName)

Parameters

const TDesC & aFolderName

FindIcon(Bookmark::TAttachmentId)

TInt FindIcon(Bookmark::TAttachmentIdaIconId)[private]

Parameters

Bookmark::TAttachmentId aIconId

FindItem(Bookmark::TItemId)

CBookmarkBase *FindItem(Bookmark::TItemIdaItem)

Parameters

Bookmark::TItemId aItem

FindUnloadedFolder(const TDesC &)

TBool FindUnloadedFolder(const TDesC &aFolderName)

Parameters

const TDesC & aFolderName

FolderRepository()

CRepository &FolderRepository()

HasDataInRepositoryL()

TBool HasDataInRepositoryL()[private]

HasOpenHandles()

TBool HasOpenHandles()[private]

Home()

CBookmark *Home()

HomePageText()

const TDesC &HomePageText()const

IconL(Bookmark::TAttachmentId)

const TDesC8 &IconL(Bookmark::TAttachmentIdaIconId)

Parameters

Bookmark::TAttachmentId aIconId

IndexBase()

TUint32 IndexBase()[virtual]

InitialiseRepL(CRepository &)

voidInitialiseRepL(CRepository &aRepository)[private]

Parameters

CRepository & aRepository

IsLoading()

TBool IsLoading()

IsTreeConstructed()

TBool IsTreeConstructed()

LoadBookmarkListL(CRepository &, TBkmrkList &, Bookmark::TType, TBool)

voidLoadBookmarkListL(CRepository &aRepository,
TBkmrkList &aList,
Bookmark::TTypeaType,
TBoolaLoadAll
)[private]

Parameters

CRepository & aRepository
TBkmrkList & aList
Bookmark::TType aType
TBool aLoadAll

LoadIconsL()

voidLoadIconsL()[private]

LoadTreeL()

voidLoadTreeL()[private]

NewL(Bookmark::TVisibility, MBookmarkObserver *)

CBookmarkDb *NewL(Bookmark::TVisibilityaVisibility,
MBookmarkObserver *aObserver
)[static]

Parameters

Bookmark::TVisibility aVisibility
MBookmarkObserver * aObserver

PropertyRegister()

CPropertyReg &PropertyRegister()

RefreshL()

voidRefreshL()

RemoveBookmarkL(CBookmark *)

voidRemoveBookmarkL(CBookmark *aBookmark)

Parameters

CBookmark * aBookmark

RemoveFolderIfPublicL(CBookmarkFolder &)

TBool RemoveFolderIfPublicL(CBookmarkFolder &aFolder)[private]

Parameters

CBookmarkFolder & aFolder

RemoveFolderL(CBookmarkFolder *)

voidRemoveFolderL(CBookmarkFolder *aFolder)

Parameters

CBookmarkFolder * aFolder

Reset()

voidReset()[private]

ResetAndDestroyBkmrkList(TAny *)

voidResetAndDestroyBkmrkList(TAny *aPtr)[private, static]

Parameters

TAny * aPtr

ResetIcons()

voidResetIcons()[private]

ResetTree()

voidResetTree()[private]

RootL()

CBookmarkFolder &RootL()

SearchUri()

const TDesC8 &SearchUri()const

SetDefaultNap(TUint32)

voidSetDefaultNap(TUint32aNetworkId)

Parameters

TUint32 aNetworkId

SetDefaultProxy(TUint32)

voidSetDefaultProxy(TUint32aServiceId)

Parameters

TUint32 aServiceId

SetHome(CBookmark *)

voidSetHome(CBookmark *aHome)

Parameters

CBookmark * aHome

SetHomePageTextL(const TDesC &)

voidSetHomePageTextL(const TDesC &aHomePageText)

Parameters

const TDesC & aHomePageText

SetIdFromIndexBase(TUint32)

voidSetIdFromIndexBase(TUint32aIndexBase)[virtual]

Parameters

TUint32 aIndexBase

SetSearchUriL(const TDesC8 &)

voidSetSearchUriL(const TDesC8 &aUri)

Parameters

const TDesC8 & aUri

TransLoadL()

voidTransLoadL()[virtual]

TransNewL()

voidTransNewL()[virtual]

TransRemoveL()

voidTransRemoveL()[virtual]

TransSaveL()

voidTransSaveL()[virtual]

Version()

TVersion Version()

Visibility()

Bookmark::TVisibility Visibility()

Member Data Documentation

TBool iBkmrkDbInitialized

TBool iBkmrkDbInitialized[private]

TBkmrkList iBookmarkList

TBkmrkList iBookmarkList[private]

CRepository * iBookmarkRepository

CRepository *iBookmarkRepository[private]

CBkmrkWatcher * iBookmarkWatcher

CBkmrkWatcher *iBookmarkWatcher[private]

TBool iConfigSync

TBool iConfigSync[private]

CPropertyList * iCustomProperties

CPropertyList *iCustomProperties[private]

CRepository * iDatabaseRepository

CRepository *iDatabaseRepository[private]

CBkmrkWatcher * iDatabaseWatcher

CBkmrkWatcher *iDatabaseWatcher[private]

TInt iDefaultNap

TInt iDefaultNap[private]

TInt iDefaultProxy

TInt iDefaultProxy[private]

TBkmrkAccessorList iDeletedList

TBkmrkAccessorList iDeletedList[private]

TBkmrkList iFolderList

TBkmrkList iFolderList[private]

CRepository * iFolderRepository

CRepository *iFolderRepository[private]

CBkmrkWatcher * iFolderWatcher

CBkmrkWatcher *iFolderWatcher[private]

CBookmark * iHome

CBookmark *iHome[private]

TInt iHomeId

TInt iHomeId[private]

HBufC * iHomeText

HBufC *iHomeText[private]

RArray< CBkmrkAttachment * > iIconList

RArray< CBkmrkAttachment * >iIconList[private]

CRepository * iIconRepository

CRepository *iIconRepository[private]

TBool iIconSync

TBool iIconSync[private]

CBkmrkWatcher * iIconWatcher

CBkmrkWatcher *iIconWatcher[private]

TBool iLoading

TBool iLoading[private]

MBookmarkObserver * iObserver

MBookmarkObserver *iObserver[private]

CPropertyReg * iPropertyRegister

CPropertyReg *iPropertyRegister[private]

CBookmarkFolder * iRoot

CBookmarkFolder *iRoot[private]

HBufC8 * iSearchUri

HBufC8 *iSearchUri[private]

TBool iTreeConstructed

TBool iTreeConstructed[private]

TBool iTreeSync

TBool iTreeSync[private]

CDesCArrayFlat * iUnloadedFolderList

CDesCArrayFlat *iUnloadedFolderList[private]

Bookmark::TVisibility iVisibility

Bookmark::TVisibility iVisibility[private]