MFsTreeVisualizer Class Reference

class MFsTreeVisualizer

MFsTreeVisualizer is an interface for the tree visualizers.


			
Public Member Functions
~MFsTreeVisualizer()
voidCollapseAllL()
voidExpandAllL()
TFsTreeItemId FocusedItem()
TBool HandleKeyEventL(const TAlfEvent &)
TBool HandlePointerEventL(const TAlfEvent &)
voidHideList(const TBool, const TBool)
TBool IsFocused(const TFsTreeItemId)
TBool IsItemsAlwaysExtended()
TInt ItemExpansionDelay()
TFsTreeListLoopingType LoopingType()
voidNotifyControlVisibilityChange(TBool)
voidRefreshListViewL()
MFsTreeItemData *RootItemData()
MFsTreeNodeVisualizer *RootNodeVisualizer()
voidSetEmptyListTextL(const TDesC &)
voidSetFocusedItemL(TFsTreeItemId, TBool)
voidSetItemExpansionDelay(const TInt)
voidSetItemSeparatorColor(const TRgb &)
voidSetItemSeparatorSize(const TSize)
voidSetItemsAlwaysExtendedL(TBool)
voidSetLoopingType(const TFsTreeListLoopingType)
voidSetSlideInDirection(TFsSlideEffect)
voidSetSlideInDuration(TInt)
voidSetSlideOutDirection(TFsSlideEffect)
voidSetSlideOutDuration(TInt)
voidSetTextMarqueeRepetitions(const TInt)
voidSetTextMarqueeSpeed(const TInt)
voidSetTextMarqueeStartDelay(const TInt)
voidSetTextMarqueeType(const TFsTextMarqueeType)
voidShowListL(const TBool, const TBool)
TFsSlideEffect SlideInDirection()
TInt SlideInDuration()
TFsSlideEffect SlideOutDirection()
TInt SlideOutDuration()
TInt TextMarqueeRepetitions()
TInt TextMarqueeSpeed()
TInt TextMarqueeStartDelay()
TFsTextMarqueeType TextMarqueeType()
voidUpdateItemL(const TFsTreeItemId)
Public Member Enumerations
enumTFsSlideEffect { ESlideNone = 0, ESlideFromTop, ESlideFromBottom, ESlideFromRight, ESlideFromLeft }

Constructor & Destructor Documentation

~MFsTreeVisualizer()

~MFsTreeVisualizer()[inline, virtual]

C++ destructor

Member Functions Documentation

CollapseAllL()

voidCollapseAllL()[pure virtual]

ExpandAllL()

voidExpandAllL()[pure virtual]

FocusedItem()

TFsTreeItemId FocusedItem()const [pure virtual]

Returns item id of the currently focused item.

HandleKeyEventL(const TAlfEvent &)

TBool HandleKeyEventL(const TAlfEvent &aEvent)[pure virtual]

Handles key event forwarded by the controller.

Parameters

const TAlfEvent & aEventKey event to handle.

HandlePointerEventL(const TAlfEvent &)

TBool HandlePointerEventL(const TAlfEvent &aEvent)[pure virtual]

Handles key event forwarded by the controller.

Parameters

const TAlfEvent & aEventPointer event to investigate.

HideList(const TBool, const TBool)

voidHideList(const TBoolaFadeOut = EFalse,
const TBoolaSlideOut = EFalse
)[pure virtual]

Hides the list.

Parameters

const TBool aFadeOut = EFalseDefines if list visual should or shouldn't fade out from the screen.
const TBool aSlideOut = EFalseETrue if slide out effect should be used,EFalse if not

IsFocused(const TFsTreeItemId)

TBool IsFocused(const TFsTreeItemIdaItem)const [pure virtual]

Checks if the specified item is focused.

Parameters

const TFsTreeItemId aItemItem to be checked.

IsItemsAlwaysExtended()

TBool IsItemsAlwaysExtended()[pure virtual]

ItemExpansionDelay()

TInt ItemExpansionDelay()const [pure virtual]

Gets the delay for the item expansion animation.

LoopingType()

TFsTreeListLoopingType LoopingType()const [pure virtual]

Returns information about looping type of the list.

NotifyControlVisibilityChange(TBool)

voidNotifyControlVisibilityChange(TBoolaIsVisible)[pure virtual]

Parameters

TBool aIsVisible

RefreshListViewL()

voidRefreshListViewL()[pure virtual]

Refreshes all visible items in the list.

RootItemData()

MFsTreeItemData *RootItemData()[pure virtual]

Gets a pointer to the root's item data object.

RootNodeVisualizer()

MFsTreeNodeVisualizer *RootNodeVisualizer()[pure virtual]

Gets a pointer to the root's item visualizer object.

SetEmptyListTextL(const TDesC &)

voidSetEmptyListTextL(const TDesC &aText)[pure virtual]

The function sets a text for empty list's view.

Parameters

const TDesC & aTextText to be displayed.

SetFocusedItemL(TFsTreeItemId, TBool)

voidSetFocusedItemL(TFsTreeItemIdaItem,
TBoolaCheckFocus = ETrue
)[pure virtual]

Sets the specified item as focused.

panic
EFsListPanicInvalidItemID Item with specified ID is not found.

Parameters

TFsTreeItemId aItemindicates item to be focused.
TBool aCheckFocus = ETrue

SetItemExpansionDelay(const TInt)

voidSetItemExpansionDelay(const TIntaDelay)[pure virtual]

Sets the delay for the item expansion animation.

Parameters

const TInt aDelayDelay in miliseconds.

SetItemSeparatorColor(const TRgb &)

voidSetItemSeparatorColor(const TRgb &aColor)[pure virtual]

Parameters

const TRgb & aColor

SetItemSeparatorSize(const TSize)

voidSetItemSeparatorSize(const TSizeaSize)[pure virtual]

Parameters

const TSize aSize

SetItemsAlwaysExtendedL(TBool)

voidSetItemsAlwaysExtendedL(TBoolaAlwaysExtended)[pure virtual]

The functions sets wether all item in the list should be always in extended state or in normal state. The list view is refreshed.

Parameters

TBool aAlwaysExtendedETrue if items should be always extended. EFalse if items should be in normal state.

SetLoopingType(const TFsTreeListLoopingType)

voidSetLoopingType(const TFsTreeListLoopingTypeaLoopingType)[pure virtual]

Sets type of list's looping.

Parameters

const TFsTreeListLoopingType aLoopingTypetype of list looping.

SetSlideInDirection(TFsSlideEffect)

voidSetSlideInDirection(TFsSlideEffectaDirection)[pure virtual]

The function sets direction of the slide in effect.

Parameters

TFsSlideEffect aDirectionA direction of the slide in effect.

SetSlideInDuration(TInt)

voidSetSlideInDuration(TIntaTimeMiliseconds)[pure virtual]

The function sets duration of the slide-in effect.

Parameters

TInt aTimeMilisecondsSlide in time in milliseconds.

SetSlideOutDirection(TFsSlideEffect)

voidSetSlideOutDirection(TFsSlideEffectaDirection)[pure virtual]

The function sets direction of the slide out effect.

Parameters

TFsSlideEffect aDirectionA direction of the slide out effect.

SetSlideOutDuration(TInt)

voidSetSlideOutDuration(TIntaTimeMiliseconds)[pure virtual]

The function sets duration of the slide-out effect.

Parameters

TInt aTimeMilisecondsSlide out time in milliseconds.

SetTextMarqueeRepetitions(const TInt)

voidSetTextMarqueeRepetitions(const TIntaMarqueeRepetitions)[pure virtual]

Sets repetitions number of marquee cycle.

Parameters

const TInt aMarqueeRepetitions

SetTextMarqueeSpeed(const TInt)

voidSetTextMarqueeSpeed(const TIntaPixelsPerSec)[pure virtual]

Sets the speed of marquee.

Parameters

const TInt aPixelsPerSecHow many pixels per second.

SetTextMarqueeStartDelay(const TInt)

voidSetTextMarqueeStartDelay(const TIntaStartDelay)[pure virtual]

Sets delay for text marquee start.

Parameters

const TInt aStartDelayTime after which the text marquee starts (in miliseconds).

SetTextMarqueeType(const TFsTextMarqueeType)

voidSetTextMarqueeType(const TFsTextMarqueeTypeaMarquee)[pure virtual]

Sets the type of text marquee.

Parameters

const TFsTextMarqueeType aMarqueeType of marquee.

ShowListL(const TBool, const TBool)

voidShowListL(const TBoolaFadeIn = EFalse,
const TBoolaSlideIn = EFalse
)[pure virtual]

Displays the list.

Parameters

const TBool aFadeIn = EFalseDefines if list visual should or shouldn't fade in to the screen.
const TBool aSlideIn = EFalseETrue if slide in effect should be used, EFalse if not.

SlideInDirection()

TFsSlideEffect SlideInDirection()const [pure virtual]

The function returns direction of the slide in effect.

SlideInDuration()

TInt SlideInDuration()const [pure virtual]

The function returns slide in effect's duration.

SlideOutDirection()

TFsSlideEffect SlideOutDirection()const [pure virtual]

The function returns direction of the slide out effect.

SlideOutDuration()

TInt SlideOutDuration()const [pure virtual]

The function returns slide out effect's duration.

TextMarqueeRepetitions()

TInt TextMarqueeRepetitions()const [pure virtual]

Gets repetitions number of marquee cycle.

TextMarqueeSpeed()

TInt TextMarqueeSpeed()const [pure virtual]

Gets the speed of marquee.

TextMarqueeStartDelay()

TInt TextMarqueeStartDelay()const [pure virtual]

Gets delay for text marquee.

TextMarqueeType()

TFsTextMarqueeType TextMarqueeType()const [pure virtual]

Gets the type of text marquee.

UpdateItemL(const TFsTreeItemId)

voidUpdateItemL(const TFsTreeItemIdaItemId)[pure virtual]

Refreshes all visible items in the list.

Parameters

const TFsTreeItemId aItemId

Member Enumerations Documentation

Enum TFsSlideEffect

Pre-defined slide effects directions

Enumerators

ESlideNone = 0
ESlideFromTop
ESlideFromBottom
ESlideFromRight
ESlideFromLeft