RBkFolder Class Reference

class RBkFolder : public RBkNode

The bookmark tree maintained by the database is made up to folders containing bookmarks. The RBkFolder class is a handle to a bookmark folder. Bookmark folders contain a list of children which can be bookmarks or other folders. As with all items in the database, the client application never owns the folder item itself. All actions are performed through this handle.

Inherits from

Constructor & Destructor Documentation

RBkFolder()

IMPORT_CRBkFolder()

RBkFolder constructor

Member Functions Documentation

AppendL(RBkNode &)

IMPORT_C voidAppendL(RBkNode &aItem)

Moves the given bookmark item into this folder. Append simply adds the bookmark to the end of the folder's child list.

Parameters

RBkNode & aItemThe bookmark item to add

Count()

IMPORT_C TIntCount()const

Returns the number of items in the folder's child list

Folder()

CBookmarkFolder *Folder()const

Not intended for external use

Index(const RBkNode &)

IMPORT_C TIntIndex(const RBkNode &aItem)const

Gets the index of the child with the given ID.

Parameters

const RBkNode & aItemId of the bookmark item to be found

InsertL(RBkNode &, TInt)

IMPORT_C voidInsertL(RBkNode &aItem,
TIntaIndexPosition
)

Moves the given bookmark item into this folder. Insert adds the bookmark into a specific position in the folder's child list. The item is just added to the end if the specified index is greater than the number of current children.

Parameters

RBkNode & aItemThe bookmark item to add
TInt aIndexPositionThe index position in which to place the bookmark item

Move(TInt, TInt)

IMPORT_C TIntMove(TIntaOldPosition,
TIntaNewPosition
)

Shifts the position of a bookmark item in the child list.

Parameters

TInt aOldPositionThe index position of the bookmark item to be moved
TInt aNewPositionThe new index position where the bookmark item is to be placed

OpenItemL(TInt)

IMPORT_C RBkNodeOpenItemL(TIntaIndex)

Method for opening a handle to a child bookmark item by index value

Parameters

TInt aIndexIndex position to retrieve