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 ()
void BWONotify ( TBkmrkWatcherType )
CRepository & BookmarkRepository ()
void CommitL ()
void ConstructTreeL ()
CBookmark & CreateBookmarkL ( CBookmarkFolder &)
void CreateDefaultRepositoriesL ()
CBookmarkFolder & CreateFolderL (const TDesC &, CBookmarkFolder &)
Bookmark::TAttachmentId CreateIconL (const TDesC8 &)
CPropertyList & CustomProperties ()
TUint32 DefaultNap ()
TUint32 DefaultProxy ()
TInt DeleteIconL ( Bookmark::TAttachmentId )
void DeleteItemL ( 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 ()
void RefreshL ()
void RemoveBookmarkL ( CBookmark *)
void RemoveFolderL ( CBookmarkFolder *)
CBookmarkFolder & RootL ()
const TDesC8 & SearchUri ()
void SetDefaultNap ( TUint32 )
void SetDefaultProxy ( TUint32 )
void SetHome ( CBookmark *)
void SetHomePageTextL (const TDesC &)
void SetIdFromIndexBase ( TUint32 )
void SetSearchUriL (const TDesC8 &)
void TransLoadL ()
void TransNewL ()
void TransRemoveL ()
void TransSaveL ()
TVersion Version ()
Bookmark::TVisibility Visibility ()
Private Member Functions
CBookmarkDb ( MBookmarkObserver *)
void AddItemsToFolderTreeL ( TBkmrkList &)
TBool CheckAccessL ( CBookmarkBase &)
void ConstructL ( Bookmark::TVisibility )
TInt FindIcon ( Bookmark::TAttachmentId )
TBool HasDataInRepositoryL ()
TBool HasOpenHandles ()
void InitialiseRepL ( CRepository &)
void LoadBookmarkListL ( CRepository &, TBkmrkList &, Bookmark::TType , TBool )
void LoadIconsL ()
void LoadTreeL ()
TBool RemoveFolderIfPublicL ( CBookmarkFolder &)
void Reset ()
void ResetAndDestroyBkmrkList ( TAny *)
void ResetIcons ()
void ResetTree ()
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 &)

void AddItemsToFolderTreeL ( TBkmrkList & aList ) [private]

Parameters

TBkmrkList & aList

BWONotify(TBkmrkWatcherType)

void BWONotify ( TBkmrkWatcherType aType )

Parameters

TBkmrkWatcherType aType

BookmarkRepository()

CRepository & BookmarkRepository ( )

CheckAccessL(CBookmarkBase &)

TBool CheckAccessL ( CBookmarkBase & aItem ) [private]

Parameters

CBookmarkBase & aItem

CommitL()

void CommitL ( ) [virtual]

ConstructL(Bookmark::TVisibility)

void ConstructL ( Bookmark::TVisibility aVisibility ) [private]

Parameters

Bookmark::TVisibility aVisibility

ConstructTreeL()

void ConstructTreeL ( )

CreateBookmarkL(CBookmarkFolder &)

CBookmark & CreateBookmarkL ( CBookmarkFolder & aParent )

Parameters

CBookmarkFolder & aParent

CreateDefaultRepositoriesL()

void CreateDefaultRepositoriesL ( )

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::TAttachmentId aIconId )

Parameters

Bookmark::TAttachmentId aIconId

DeleteItemL(Bookmark::TItemId, TBool)

void DeleteItemL ( Bookmark::TItemId aItem,
TBool aRecursive
)

Parameters

Bookmark::TItemId aItem
TBool aRecursive

FindFolder(const TDesC &)

CBookmarkFolder * FindFolder ( const TDesC & aFolderName )

Parameters

const TDesC & aFolderName

FindIcon(Bookmark::TAttachmentId)

TInt FindIcon ( Bookmark::TAttachmentId aIconId ) [private]

Parameters

Bookmark::TAttachmentId aIconId

FindItem(Bookmark::TItemId)

CBookmarkBase * FindItem ( Bookmark::TItemId aItem )

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::TAttachmentId aIconId )

Parameters

Bookmark::TAttachmentId aIconId

IndexBase()

TUint32 IndexBase ( ) [virtual]

InitialiseRepL(CRepository &)

void InitialiseRepL ( CRepository & aRepository ) [private]

Parameters

CRepository & aRepository

IsLoading()

TBool IsLoading ( )

IsTreeConstructed()

TBool IsTreeConstructed ( )

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

void LoadBookmarkListL ( CRepository & aRepository,
TBkmrkList & aList,
Bookmark::TType aType,
TBool aLoadAll
) [private]

Parameters

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

LoadIconsL()

void LoadIconsL ( ) [private]

LoadTreeL()

void LoadTreeL ( ) [private]

NewL(Bookmark::TVisibility, MBookmarkObserver *)

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

Parameters

Bookmark::TVisibility aVisibility
MBookmarkObserver * aObserver

PropertyRegister()

CPropertyReg & PropertyRegister ( )

RefreshL()

void RefreshL ( )

RemoveBookmarkL(CBookmark *)

void RemoveBookmarkL ( CBookmark * aBookmark )

Parameters

CBookmark * aBookmark

RemoveFolderIfPublicL(CBookmarkFolder &)

TBool RemoveFolderIfPublicL ( CBookmarkFolder & aFolder ) [private]

Parameters

CBookmarkFolder & aFolder

RemoveFolderL(CBookmarkFolder *)

void RemoveFolderL ( CBookmarkFolder * aFolder )

Parameters

CBookmarkFolder * aFolder

Reset()

void Reset ( ) [private]

ResetAndDestroyBkmrkList(TAny *)

void ResetAndDestroyBkmrkList ( TAny * aPtr ) [private, static]

Parameters

TAny * aPtr

ResetIcons()

void ResetIcons ( ) [private]

ResetTree()

void ResetTree ( ) [private]

RootL()

CBookmarkFolder & RootL ( )

SearchUri()

const TDesC8 & SearchUri ( ) const

SetDefaultNap(TUint32)

void SetDefaultNap ( TUint32 aNetworkId )

Parameters

TUint32 aNetworkId

SetDefaultProxy(TUint32)

void SetDefaultProxy ( TUint32 aServiceId )

Parameters

TUint32 aServiceId

SetHome(CBookmark *)

void SetHome ( CBookmark * aHome )

Parameters

CBookmark * aHome

SetHomePageTextL(const TDesC &)

void SetHomePageTextL ( const TDesC & aHomePageText )

Parameters

const TDesC & aHomePageText

SetIdFromIndexBase(TUint32)

void SetIdFromIndexBase ( TUint32 aIndexBase ) [virtual]

Parameters

TUint32 aIndexBase

SetSearchUriL(const TDesC8 &)

void SetSearchUriL ( const TDesC8 & aUri )

Parameters

const TDesC8 & aUri

TransLoadL()

void TransLoadL ( ) [virtual]

TransNewL()

void TransNewL ( ) [virtual]

TransRemoveL()

void TransRemoveL ( ) [virtual]

TransSaveL()

void TransSaveL ( ) [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]