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_C RBkFolder ( )

RBkFolder constructor

Member Functions Documentation

AppendL(RBkNode &)

IMPORT_C void AppendL ( 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 & aItem The bookmark item to add

Count()

IMPORT_C TInt Count ( ) 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 TInt Index ( const RBkNode & aItem ) const

Gets the index of the child with the given ID.

Parameters

const RBkNode & aItem Id of the bookmark item to be found

InsertL(RBkNode &, TInt)

IMPORT_C void InsertL ( RBkNode & aItem,
TInt aIndexPosition
)

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 & aItem The bookmark item to add
TInt aIndexPosition The index position in which to place the bookmark item

Move(TInt, TInt)

IMPORT_C TInt Move ( TInt aOldPosition,
TInt aNewPosition
)

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

Parameters

TInt aOldPosition The index position of the bookmark item to be moved
TInt aNewPosition The new index position where the bookmark item is to be placed

OpenItemL(TInt)

IMPORT_C RBkNode OpenItemL ( TInt aIndex )

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

Parameters

TInt aIndex Index position to retrieve