CHgVgMediaWall Class Reference

class CHgVgMediaWall : public CCoeControl

Inherits from

Public Member Functions
~CHgVgMediaWall()
IMPORT_C voidAddItem(CHgVgItem *)
IMPORT_C voidChangeStyleL(THgVgMediaWallStyle, const TRect &, TBool)
IMPORT_C voidClearFlags(TInt)
IMPORT_C voidDisableScrollBuffer()
voidDraw(const TRect &)
IMPORT_C voidEnableScrollBufferL(MHgScrollBufferObserver &, TInt, TInt)
IMPORT_C TIntFirstIndexOnScreen()
IMPORT_C TIntFlags()
voidFocusChanged(TDrawNow)
voidHandleGainingForeground()
voidHandleLosingForeground()
voidHandlePointerEventL(const TPointerEvent &)
voidHandleResourceChange(TInt)
IMPORT_C voidInitScreenL(const TRect &)
IMPORT_C voidInsertItem(CHgVgItem *, TInt)
IMPORT_C TIntItemCount()
IMPORT_C CHgVgItem &ItemL(TInt)
IMPORT_C TIntItemsOnScreen()
IMPORT_C CHgVgMediaWall *NewL(const TRect &, TInt, THgVgMediaWallStyle, TBool, MObjectProvider *, CGulIcon *)
TKeyResponse OfferKeyEventL(const TKeyEvent &, TEventCode)
IMPORT_C THgVgOpeningAnimationTypeOpeningAnimationType()
IMPORT_C voidRefreshScreen(TInt)
IMPORT_C voidRemoveItem(TInt)
IMPORT_C voidReset()
IMPORT_C voidResizeL(TInt)
IMPORT_C TIntSelectedIndex()
IMPORT_C voidSetDefaultIconL(CGulIcon *)
IMPORT_C voidSetEmptyTextL(const TDesC &)
IMPORT_C voidSetFlags(TInt)
IMPORT_C voidSetItem(CHgVgItem *, TInt)
IMPORT_C voidSetItemToOpenedState(TInt)
IMPORT_C voidSetObserver(MHgVgMediaWallObserver *)
IMPORT_C voidSetOpenedItemRect(const TRect &)
IMPORT_C voidSetOpeningAnimationType(THgVgOpeningAnimationType)
IMPORT_C voidSetSelectedIndex(TInt)
IMPORT_C voidSetSelectionObserver(MHgSelectionObserver &)
voidSizeChanged()
IMPORT_C voidStartOpeningAnimationL(TBool)
IMPORT_C THgVgMediaWallStyleStyle()
Protected Member Functions
CHgVgMediaWall(TInt, CGulIcon *, THgVgMediaWallStyle, TBool)
voidConstructL(const TRect &, MObjectProvider *)
Private Member Functions
TInt AnimationTimerCallback(TAny *)
TBool BeginSelection(TInt)
CGulIcon *CreateIconL(TInt, TInt, const TSize &)
TInt DelayedInit(TAny *)
voidDestroyRendering()
voidDoAnimation()
voidDoKeyScrolling()
TBool DoSelectionAnimation()
voidDoStartOpeningAnimationL()
TBool DoTransitionAnimation()
TBool DrawAll()
voidDrawButtonsAndScrollbar()
voidDrawLetterStripAndTitles()
voidDrawOpenVG()
voidDrawScene()
voidDrawTitles(TReal)
CFbsBitmap *DrawToBitmap()
voidEndSelection()
voidFillSystemGcWithSkin()
voidFreeItemsImages()
TReal GetAsPercentageOfScreenHeight(TInt)
TReal GetAsPercentageOfScreenWidth(TInt)
TInt GetStepsFromSpeed(TInt)
TBool HandleButtons(const TPointerEvent &)
voidHandleDragOn(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
voidHandleDragStart(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
voidHandleDragStop(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
voidHandleDragging(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
voidHandleFlick(const TPoint &)
voidHandleItemCountChanged()
voidHandleKeyDown()
TKeyResponse HandleKeyEvent(const TKeyEvent &)
voidHandleKeyUp()
voidHandleNaviStripChar(const TChar &)
voidHandleTapEventL(const TPoint &)
voidHandleTouchGestureL(AknTouchGestureFw::MAknTouchGestureFwEvent &)
voidHandleTransitionAnimationStop()
voidHandleViewPositionChanged(TBool)
voidInitButtonsL()
voidInitDefaultIconL()
voidInitItemsL()
voidInitLabelsL(TInt)
voidInitMediaWallFullScreenLandscapeL()
voidInitMediaWallGridLandscapeL()
voidInitMediaWallTBonePortraitL()
voidInitPopupL(TInt)
voidInitRenderingL(TBool)
voidInitScrollBarL(TBool)
voidInitSkinRendererL()
TInt KeyScrollingTimerCallback(TAny *)
TInt MaxViewPosition()
voidRelease(TInt, TInt)
voidReloadItemsImages()
voidScrollBarPositionChanged(const TPoint &)
TBool SearchItem(TChar &)
voidSetConstantsForStyle()
voidStartAnimationTimer()
voidStartAnimationToPosition(TReal, TBool)
voidStartAnimationToPosition(TReal, TReal, TBool)
voidStopKeyScrolling()
voidUpdateLabelsAndPopup()
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()
CCoeControl::AccumulatedZoom()const
CCoeControl::ActivateGc()const
CCoeControl::ActivateL()
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::ComponentControl(TInt)const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ConstructFromResourceL(TResourceReader &)
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CountComponentControls()const
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
CCoeControl::CreateWindowL()
CCoeControl::CreateWindowL(RWindowGroup *)
CCoeControl::CreateWindowL(RWindowTreeNode &)
CCoeControl::CreateWindowL(const CCoeControl *)
CCoeControl::CustomGc()const
CCoeControl::DeactivateGc()const
CCoeControl::DrawBackground(const TRect &)const
CCoeControl::DrawDeferred()const
CCoeControl::DrawForeground(const TRect &)const
CCoeControl::DrawNow()const
CCoeControl::DrawNow(const TRect &)const
CCoeControl::DrawableWindow()const
CCoeControl::EnableDragEvents()
CCoeControl::EnableReportControlStateChange(TBool)
CCoeControl::EnableWindowTransparency()
CCoeControl::FindBackground()const
CCoeControl::FindFontProvider()const
CCoeControl::GetColor(TInt,TRgb &)const
CCoeControl::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
CCoeControl::GetGc()const
CCoeControl::GetHelpContext(TCoeHelpContext &)const
CCoeControl::GrabbingComponent()const
CCoeControl::GrabbingComponent(TInt)const
CCoeControl::HandleComponentControlsResourceChange(TInt)
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
CCoeControl::HandlePointerBufferReadyL()
CCoeControl::HandleRedrawEvent(const TRect &)const
CCoeControl::HasBorder()const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::InputCapabilities()const
CCoeControl::IsActivated()const
CCoeControl::IsBackedUp()const
CCoeControl::IsBeingDestroyed()const
CCoeControl::IsBlank()const
CCoeControl::IsDimmed()const
CCoeControl::IsFocused()const
CCoeControl::IsNonFocusing()const
CCoeControl::IsReadyToDraw()const
CCoeControl::IsVisible()const
CCoeControl::LayoutManager()const
CCoeControl::MakeVisible(TBool)
CCoeControl::MaximumWidth()const
CCoeControl::MinimumSize()
CCoeControl::MopSupplyObject(TTypeUid)
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
CCoeControl::Observer()const
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
CCoeControl::PositionChanged()
CCoeControl::PositionRelativeToScreen()const
CCoeControl::PrepareForFocusGainL()
CCoeControl::PrepareForFocusLossL()
CCoeControl::ProcessPointerBufferReadyL()
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
CCoeControl::Rect()const
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
CCoeControl::RecursivelyMergedInputCapabilities()const
CCoeControl::RefetchPixelMappingL()
CCoeControl::RemoveFromParent()
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
CCoeControl::RequestRelayout(const CCoeControl *)
CCoeControl::ResetGc()const
CCoeControl::ScreenFont(const TCoeFont &)const
CCoeControl::SetAdjacent(TInt)
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetContainerWindowL(const CCoeControl &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetDimmed(TBool)
CCoeControl::SetExtent(const TPoint &,const TSize &)
CCoeControl::SetExtentToWholeScreen()
CCoeControl::SetFocus(TBool,TDrawNow)
CCoeControl::SetFocusing(TBool)
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
CCoeControl::SetGc(CWindowGc *)const
CCoeControl::SetGloballyCapturing(TBool)
CCoeControl::SetHitTest(const MCoeControlHitTest *)
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
CCoeControl::SetMaximumWidth(TInt)
CCoeControl::SetMopParent(MObjectProvider *)
CCoeControl::SetNeighbor(CCoeControl *)
CCoeControl::SetNonFocusing()
CCoeControl::SetObserver(MCoeControlObserver *)
CCoeControl::SetParent(CCoeControl *)
CCoeControl::SetPointerCapture(TBool)
CCoeControl::SetPosition(const TPoint &)
CCoeControl::SetRect(const TRect &)
CCoeControl::SetSize(const TSize &)
CCoeControl::SetSizeWithoutNotification(const TSize &)
CCoeControl::SetTextBaselineSpacing(TInt)
CCoeControl::SetUniqueHandle(TInt)
CCoeControl::SetZoomFactorL(TInt,TZoomType)
CCoeControl::Size()const
CCoeControl::SystemGc()const
CCoeControl::TextBaselineOffset(const TSize &)const
CCoeControl::TextDrawer(TInt)const
CCoeControl::UniqueHandle()const
CCoeControl::Window()const
CCoeControl::WriteInternalStateL(RWriteStream &)const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()
Public Member Enumerations
enumTHgVgAnimationState {
EHgVgMediaWallAnimationStateIdle, EHgVgMediaWallAnimationStateTransition, EHgVgMediaWallAnimationStateFastTransition, EHgVgMediaWallAnimationStateOpening, EHgVgMediaWallAnimationStateClosing, EHgVgMediaWallAnimationStateItemOpened
}
enumTHgVgMediaWallEvent { EHgVgMediaWallEventRequestHideSoftkeys, EHgVgMediaWallEventRequestShowSoftkeys, EHgVgMediaWallEventButtonGotoNowPlaying, EHgVgMediaWallEventButtonBack }
enumTHgVgMediaWallMode { EHgVgMediaWallDrawToWindowGC = 0x0001, EHgVgMediaWallFaded = 0x0002, EHgVgMediaWallUninitialized = 0x0004 }
enumTHgVgMediaWallStyle { EHgVgMediaWallStyleCoverflowFullScreen, EHgVgMediaWallStyleCoverflowTBonePortrait, EHgVgMediaWallStyleCoverflowTBoneLandscape, EHgVgMediaWallStyleGrid, EHgVgMediaWallStyleUnknown }
enumTHgVgOpeningAnimationType { EHgVgOpeningAnimationNone, EHgVgOpeningAnimationFlipToFront, EHgVgOpeningAnimationZoomToFront, EHgVgOpeningAnimationZoomIn }
Protected Member Enumerations
enumTKeyScrollingState { ENoKeyScrolling = 0, EKeyScrollingUp, EKeyScrollingDown, EKeyScrollingLeft, EKeyScrollingRight }
Inherited Enumerations
CCoeControl:TZoomType
Protected Attributes
CHgVgLabel *iAlbumLabel
TReal iAnimationAlpha
TInt64 iAnimationDuration
TTime iAnimationStartTime
THgVgAnimationState iAnimationState
CHgVgTimer *iAnimationTimer
CHgVgLabel *iArtistLabel
TInt iBufferPosition
TBool iButtonsHit
TReal iCameraRotationFactor
TReal iCameraZoomFactor
CAlfCompositionSource *iCompositionSource
CGulIcon *iDefaultIcon
CPeriodic *iDelayedInit
TInt iDragFrames
CHgVgEGL *iEGL
CHgVgLabel *iEmptyLabel
HBufC *iEmptyText
TBool iFirstTime
TInt iFlags
CHgVgButton *iHideSKButton
TBool iIsForeground
TInt iItemCount
RPointerArray< CHgVgItem >iItems
TInt iItemsOnScreen
TReal iItemsToMoveOnFullScreenDrag
TInt iKeyRepeats
enum CHgVgMediaWall::TKeyScrollingStateiKeyScrollingState
CPeriodic *iKeyScrollingTimer
CHgVgPopup *iLetterPopup
CHgScrollBufferManager *iManager
MHgVgMediaWallObserver *iMediaWallObserver
THgVgMediaWallStyle iMediaWallStyle
TBool iObserverNotified
TRect iOpenedItemRect
THgVgOpeningAnimationType iOpeningAnimationType
TInt iPickedGridItem
TBool iPointerDown
RBuf iPopupText1
RBuf iPopupText2
TInt iPrevGridItem
TTime iPrevTime
TInt iPreviousPointerDelta
TRect iRect
CHgVgMediaWallRenderer *iRenderer
TInt iRowCount
CHgVgScrollBar *iScrollBar
TBool iScrollBarEnabled
TBool iScrollBarHit
TInt iSelGridItem
TInt iSelectedIndex
TBool iSelectionMode
MHgSelectionObserver *iSelectionObserver
CHgVgSkinRenderer *iSkinRenderer
THgVgSpring *iSpring
TReal iSpringDragVel
TReal iSpringVelAtDragStart
TReal iSpringVelocityToAnimationFactor
CHgVgItem *iTempItem
AknTouchGestureFw::CAknTouchGestureFw *iTouchFw
TBool iUpdateScrollBar
TBool iUsingDefaultIcon
TReal iViewPositionAtDragStart
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize

Constructor & Destructor Documentation

CHgVgMediaWall(TInt, CGulIcon *, THgVgMediaWallStyle, TBool)

CHgVgMediaWall(TIntaItemCount,
CGulIcon *aDefaultIcon,
THgVgMediaWallStyleaStyle,
TBoolaEnableScrollBar
)[protected]

Parameters

TInt aItemCount
CGulIcon * aDefaultIcon
THgVgMediaWallStyle aStyle
TBool aEnableScrollBar

~CHgVgMediaWall()

IMPORT_C~CHgVgMediaWall()[virtual]

Member Functions Documentation

AddItem(CHgVgItem *)

IMPORT_C voidAddItem(CHgVgItem *aItem)

Adds Item.

Parameters

CHgVgItem * aItemNew item. Ownership transferred.

AnimationTimerCallback(TAny *)

TInt AnimationTimerCallback(TAny *aPtr)[private, static]

Callback method for animation

Parameters

TAny * aPtrPointer to an instance of CHgVgMediaWall class.

BeginSelection(TInt)

TBool BeginSelection(TIntaIndex)[private]

Parameters

TInt aIndex

ChangeStyleL(THgVgMediaWallStyle, const TRect &, TBool)

IMPORT_C voidChangeStyleL(THgVgMediaWallStyleaStyle,
const TRect &aRect,
TBoolaReuseSurface
)

Changes mediawalls style.

Parameters

THgVgMediaWallStyle aStylestyle.
const TRect & aRectnew window rectangle.
TBool aReuseSurfaceflag to indicate whether or not OpenVG surface should be reconstructed.

ClearFlags(TInt)

IMPORT_C voidClearFlags(TIntaFlags)

Clear mode flags. Possible values are defined in THgVgMediaWallMode.

Parameters

TInt aFlagsflags to be cleared.

ConstructL(const TRect &, MObjectProvider *)

voidConstructL(const TRect &aRect,
MObjectProvider *aParent
)[protected]

Parameters

const TRect & aRect
MObjectProvider * aParent

CreateIconL(TInt, TInt, const TSize &)

CGulIcon *CreateIconL(TIntaId1,
TIntaId2,
const TSize &aSize
)[private]

Parameters

TInt aId1
TInt aId2
const TSize & aSize

DelayedInit(TAny *)

TInt DelayedInit(TAny *aSelf)[private, static]

Parameters

TAny * aSelf

DestroyRendering()

voidDestroyRendering()[private]

DisableScrollBuffer()

IMPORT_C voidDisableScrollBuffer()

Disables Scrollbuffer.

DoAnimation()

voidDoAnimation()[private]

Called by callback to do actual animation.

DoKeyScrolling()

voidDoKeyScrolling()[private]

DoSelectionAnimation()

TBool DoSelectionAnimation()[private]

Does selection animation

DoStartOpeningAnimationL()

voidDoStartOpeningAnimationL()[private]

DoTransitionAnimation()

TBool DoTransitionAnimation()[private]

Does transition animation, called by DoAnimation.

Draw(const TRect &)

voidDraw(const TRect &aRect)const [virtual]

Parameters

const TRect & aRect

DrawAll()

TBool DrawAll()[private]

DrawButtonsAndScrollbar()

voidDrawButtonsAndScrollbar()[private]

DrawLetterStripAndTitles()

voidDrawLetterStripAndTitles()[private]

DrawOpenVG()

voidDrawOpenVG()const [private]

Draws using OpenVG

DrawScene()

voidDrawScene()[private]

DrawTitles(TReal)

voidDrawTitles(TRealaAlpha)[private]

Draws album and artist titles.

Parameters

TReal aAlpha

DrawToBitmap()

CFbsBitmap *DrawToBitmap()[private]

EnableScrollBufferL(MHgScrollBufferObserver &, TInt, TInt)

IMPORT_C voidEnableScrollBufferL(MHgScrollBufferObserver &aObserver,
TIntaBufferSize,
TIntaBufferTreshold
)

Enables Buffering.

Parameters

MHgScrollBufferObserver & aObserverBuffer change observer.
TInt aBufferSizeThe size of the buffer.
TInt aBufferTresholdThe minimum change needed for buffer to be modified.

EndSelection()

voidEndSelection()[private]

FillSystemGcWithSkin()

voidFillSystemGcWithSkin()const [private]

FirstIndexOnScreen()

IMPORT_C TIntFirstIndexOnScreen()

Gives the first index on the screen.

Note: The index is not guaranteed to be in the range of the scroller items. Index can be negative if the scroller is scrolled to the way up or over the count - 1 if scrolled way down.

Flags()

IMPORT_C TIntFlags()

Get flags. Possible values are defined in THgVgMediaWallMode.

FocusChanged(TDrawNow)

voidFocusChanged(TDrawNowaDrawNow)[virtual]

Parameters

TDrawNow aDrawNow

FreeItemsImages()

voidFreeItemsImages()[private]

Frees videomemory used by items.

GetAsPercentageOfScreenHeight(TInt)

TReal GetAsPercentageOfScreenHeight(TIntaPixels)const [private]

Parameters

TInt aPixels

GetAsPercentageOfScreenWidth(TInt)

TReal GetAsPercentageOfScreenWidth(TIntaPixels)const [private]

Parameters

TInt aPixels

GetStepsFromSpeed(TInt)

TInt GetStepsFromSpeed(TIntaSpeed)const [private]

Parameters

TInt aSpeed

HandleButtons(const TPointerEvent &)

TBool HandleButtons(const TPointerEvent &aEvent)[private]

Parameters

const TPointerEvent & aEvent

HandleDragOn(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

voidHandleDragOn(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &aEvent)[private]

HandleDragStart(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

voidHandleDragStart(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &aEvent)[private]

HandleDragStop(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

voidHandleDragStop(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &aEvent)[private]

HandleDragging(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

voidHandleDragging(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &aEvent)[private]

HandleFlick(const TPoint &)

voidHandleFlick(const TPoint &aSpeed)[private]

Parameters

const TPoint & aSpeed

HandleGainingForeground()

voidHandleGainingForeground()

HandleItemCountChanged()

voidHandleItemCountChanged()[private]

Handles items count change.

HandleKeyDown()

voidHandleKeyDown()[private]

HandleKeyEvent(const TKeyEvent &)

TKeyResponse HandleKeyEvent(const TKeyEvent &aKeyEvent)[private]

Handles key events.

Parameters

const TKeyEvent & aKeyEventTKeyEvent-object.

HandleKeyUp()

voidHandleKeyUp()[private]

HandleLosingForeground()

voidHandleLosingForeground()

HandleNaviStripChar(const TChar &)

voidHandleNaviStripChar(const TChar &aChar)[private]

Parameters

const TChar & aChar

HandlePointerEventL(const TPointerEvent &)

voidHandlePointerEventL(const TPointerEvent &aEvent)[virtual]

Parameters

const TPointerEvent & aEvent

HandleResourceChange(TInt)

voidHandleResourceChange(TIntaType)[virtual]

Parameters

TInt aType

HandleTapEventL(const TPoint &)

voidHandleTapEventL(const TPoint &aPosition)[private]

Parameters

const TPoint & aPosition

HandleTouchGestureL(AknTouchGestureFw::MAknTouchGestureFwEvent &)

voidHandleTouchGestureL(AknTouchGestureFw::MAknTouchGestureFwEvent &aEvent)[private]

HandleTransitionAnimationStop()

voidHandleTransitionAnimationStop()[private]

HandleViewPositionChanged(TBool)

voidHandleViewPositionChanged(TBoolaDontUpdateObserver = EFalse)[private]

Handles viewposition change.

Parameters

TBool aDontUpdateObserver = EFalse

InitButtonsL()

voidInitButtonsL()[private]

InitDefaultIconL()

voidInitDefaultIconL()[private]

Initializes default icon and creates VGImage for it.

InitItemsL()

voidInitItemsL()[private]

Initializes items.

InitLabelsL(TInt)

voidInitLabelsL(TIntaLayoutVariant)[private]

Parameters

TInt aLayoutVariant

InitMediaWallFullScreenLandscapeL()

voidInitMediaWallFullScreenLandscapeL()[private]

InitMediaWallGridLandscapeL()

voidInitMediaWallGridLandscapeL()[private]

InitMediaWallTBonePortraitL()

voidInitMediaWallTBonePortraitL()[private]

InitPopupL(TInt)

voidInitPopupL(TIntaLayoutVariant)[private]

Parameters

TInt aLayoutVariant

InitRenderingL(TBool)

voidInitRenderingL(TBoolaRecreateSurface)[private]

Initializes whole rendering functionality.

Parameters

TBool aRecreateSurface

InitScreenL(const TRect &)

IMPORT_C voidInitScreenL(const TRect &aRect)

Re-inits rendering for new window rectangle.

Parameters

const TRect & aRectNew display rect

InitScrollBarL(TBool)

voidInitScrollBarL(TBoolaResize)[private]

Initializes scroll bar.

Parameters

TBool aResize

InitSkinRendererL()

voidInitSkinRendererL()[private]

Initializes skin rendering.

InsertItem(CHgVgItem *, TInt)

IMPORT_C voidInsertItem(CHgVgItem *aItem,
TIntaIndex
)

Inserts item at index postion.

Parameters

CHgVgItem * aItemNew item. Ownership transferred.
TInt aIndexThe index of the item.

ItemCount()

IMPORT_C TIntItemCount()const

Fetch item count.

ItemL(TInt)

IMPORT_C CHgVgItem &ItemL(TIntaIndex)

Get item at specified index.

Parameters

TInt aIndexIndex of the item that is returned

ItemsOnScreen()

IMPORT_C TIntItemsOnScreen()

How many items fit on one screen.

KeyScrollingTimerCallback(TAny *)

TInt KeyScrollingTimerCallback(TAny *aPtr)[private, static]

Parameters

TAny * aPtr

MaxViewPosition()

TInt MaxViewPosition()const [private]

NewL(const TRect &, TInt, THgVgMediaWallStyle, TBool, MObjectProvider *, CGulIcon *)

IMPORT_C CHgVgMediaWall *NewL(const TRect &aRect,
TIntaItemCount,
THgVgMediaWallStyleaStyle,
TBoolaEnableScrollBar,
MObjectProvider *aParent,
CGulIcon *aDefaultIcon = NULL
)[static]

Creates new HgVgMediaWall.

Parameters

const TRect & aRectRect that the control draws onto.
TInt aItemCountTotal count of items in the mediawall.
THgVgMediaWallStyle aStylestyle of the mediawall.
TBool aEnableScrollBarETrue to enable scrollbar.
MObjectProvider * aParent
CGulIcon * aDefaultIcon = NULLDefault icon to be used.

OfferKeyEventL(const TKeyEvent &, TEventCode)

TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

OpeningAnimationType()

IMPORT_C THgVgOpeningAnimationTypeOpeningAnimationType()const

Gets current opening animation type

RefreshScreen(TInt)

IMPORT_C voidRefreshScreen(TIntaIndex)

Refreshes screen.

Parameters

TInt aIndex

Release(TInt, TInt)

voidRelease(TIntaReleaseStart,
TIntaReleaseEnd
)[private]

Parameters

TInt aReleaseStart
TInt aReleaseEnd

ReloadItemsImages()

voidReloadItemsImages()[private]

Reloads images to items.

RemoveItem(TInt)

IMPORT_C voidRemoveItem(TIntaIndex)

Removes item at index position. Removed item is deleted.

Parameters

TInt aIndexThe index of the item.

Reset()

IMPORT_C voidReset()

Removes all items and presents empty text

ResizeL(TInt)

IMPORT_C voidResizeL(TIntaItemCount)

Resizes Grid/List.

Parameters

TInt aItemCountNew Count of items.

ScrollBarPositionChanged(const TPoint &)

voidScrollBarPositionChanged(const TPoint &aNewPosition)[private]

Parameters

const TPoint & aNewPosition

SearchItem(TChar &)

TBool SearchItem(TChar &aFirstLetter)[private]

Parameters

TChar & aFirstLetter

SelectedIndex()

IMPORT_C TIntSelectedIndex()

Returns index of currently selected item in MediaWall. In the case of EHgVgMediaWallStyleStyleGrid this method can only return indices of the items at top row. The index of the item picked by user is on grids case only passed through MHgSelectionObserver interface.

SetConstantsForStyle()

voidSetConstantsForStyle()[private]

SetDefaultIconL(CGulIcon *)

IMPORT_C voidSetDefaultIconL(CGulIcon *aDefaultIcon)

Sets new default icon.

Parameters

CGulIcon * aDefaultIconNew default icon to be used in scroller.

SetEmptyTextL(const TDesC &)

IMPORT_C voidSetEmptyTextL(const TDesC &aEmptyText)

Set text that is displayed when there are no items in the view.

Parameters

const TDesC & aEmptyTextEmpty text.

SetFlags(TInt)

IMPORT_C voidSetFlags(TIntaFlags)

Set mode flags. Possible values are defined in THgVgMediaWallMode.

Parameters

TInt aFlagsflags to bet set.

SetItem(CHgVgItem *, TInt)

IMPORT_C voidSetItem(CHgVgItem *aItem,
TIntaIndex
)

Resets item at the index position. Old item is deleted.

Parameters

CHgVgItem * aItemNew item. Ownership transferred.
TInt aIndexThe index of the item.

SetItemToOpenedState(TInt)

IMPORT_C voidSetItemToOpenedState(TIntaIndex)

Sets item at index as selected and opened item. HandleOpenL not called for observers. If index is out of range, does nothing. Using this function sets item at index to the state where it is when it was selected and opened by the user. One can use for example. StartOpeningAnimationL to togle animation backwards from this state to normal. This can be useful for example. when returning from a a different view and there is a need to pop the item back to the wall from front.

Parameters

TInt aIndexof the item to open.

SetObserver(MHgVgMediaWallObserver *)

IMPORT_C voidSetObserver(MHgVgMediaWallObserver *aObserver)

Sets button observer. Client can use this to register it self to be notified when the user for example, presses hide softkeys button.

Parameters

MHgVgMediaWallObserver * aObserverobserver.

SetOpenedItemRect(const TRect &)

IMPORT_C voidSetOpenedItemRect(const TRect &aRect)

Sets the rectangle where item fit at the end of opening animation.

Parameters

const TRect & aRecttarget rectangle where opened item is fitted at the end of opening animation.

SetOpeningAnimationType(THgVgOpeningAnimationType)

IMPORT_C voidSetOpeningAnimationType(THgVgOpeningAnimationTypeaType)

Sets type of selection animation to perform, when an item is opened. Default behaviour is EHgSelectionAnimationFlipToFront.

Parameters

THgVgOpeningAnimationType aTypetype of opening animation.

SetSelectedIndex(TInt)

IMPORT_C voidSetSelectedIndex(TIntaIndex)

Sets selected index. Positions the mediwall into this index. In case of a grid. The mediawall is positioned into row = aIndex / RowCount.

Parameters

TInt aIndexnew selected index. Selection is also made visible.

SetSelectionObserver(MHgSelectionObserver &)

IMPORT_C voidSetSelectionObserver(MHgSelectionObserver &aObserver)

Sets selection observer.

Parameters

MHgSelectionObserver & aObserverSelection observer.

SizeChanged()

voidSizeChanged()[virtual]

StartAnimationTimer()

voidStartAnimationTimer()[private]

StartAnimationToPosition(TReal, TBool)

voidStartAnimationToPosition(TRealaX,
TBoolaUpdateScrollBar
)[private]

Parameters

TReal aX
TBool aUpdateScrollBar

StartAnimationToPosition(TReal, TReal, TBool)

voidStartAnimationToPosition(TRealaX,
TRealaY,
TBoolaUpdateScrollBar
)[private]

Parameters

TReal aX
TReal aY
TBool aUpdateScrollBar

StartOpeningAnimationL(TBool)

IMPORT_C voidStartOpeningAnimationL(TBoolaOpening)

Starts opening animation to selected direction. After animation is complete, Open event is sent to selection observer.

Parameters

TBool aOpeningif this is true, the selected item is opened, otherwise closed.

StopKeyScrolling()

voidStopKeyScrolling()[private]

Style()

IMPORT_C THgVgMediaWallStyleStyle()const

Gets current MediaWall style.

UpdateLabelsAndPopup()

voidUpdateLabelsAndPopup()[private]

Updates bitmaps used to render album and artist titles.

Member Enumerations Documentation

Enum THgVgAnimationState

Media walls current animation state.

Enumerators

EHgVgMediaWallAnimationStateIdle
EHgVgMediaWallAnimationStateTransition
EHgVgMediaWallAnimationStateFastTransition
EHgVgMediaWallAnimationStateOpening
EHgVgMediaWallAnimationStateClosing
EHgVgMediaWallAnimationStateItemOpened

Enum THgVgMediaWallEvent

Event types, CHgVgMediaWall may send through MHgVgMediaWallObserver interface.

Enumerators

EHgVgMediaWallEventRequestHideSoftkeys
EHgVgMediaWallEventRequestShowSoftkeys
EHgVgMediaWallEventButtonGotoNowPlaying
EHgVgMediaWallEventButtonBack

Enum THgVgMediaWallMode

Flags that define possible mediawall modes

Enumerators

EHgVgMediaWallDrawToWindowGC = 0x0001
EHgVgMediaWallFaded = 0x0002
EHgVgMediaWallUninitialized = 0x0004

Enum THgVgMediaWallStyle

Style of the media wall to use.

Enumerators

EHgVgMediaWallStyleCoverflowFullScreen
EHgVgMediaWallStyleCoverflowTBonePortrait
EHgVgMediaWallStyleCoverflowTBoneLandscape
EHgVgMediaWallStyleGrid
EHgVgMediaWallStyleUnknown

Enum THgVgOpeningAnimationType

Media walls selection animation type. Default behaviour is EHgSelectionAnimationFlipToFront.

Enumerators

EHgVgOpeningAnimationNone
EHgVgOpeningAnimationFlipToFront
EHgVgOpeningAnimationZoomToFront
EHgVgOpeningAnimationZoomIn

Enum TKeyScrollingState

Enumerators

ENoKeyScrolling = 0
EKeyScrollingUp
EKeyScrollingDown
EKeyScrollingLeft
EKeyScrollingRight

Member Data Documentation

CHgVgLabel * iAlbumLabel

CHgVgLabel *iAlbumLabel[protected]

TReal iAnimationAlpha

TReal iAnimationAlpha[protected]

TInt64 iAnimationDuration

TInt64 iAnimationDuration[protected]

TTime iAnimationStartTime

TTime iAnimationStartTime[protected]

THgVgAnimationState iAnimationState

THgVgAnimationState iAnimationState[protected]

CHgVgTimer * iAnimationTimer

CHgVgTimer *iAnimationTimer[protected]

CHgVgLabel * iArtistLabel

CHgVgLabel *iArtistLabel[protected]

TInt iBufferPosition

TInt iBufferPosition[protected]

TBool iButtonsHit

TBool iButtonsHit[protected]

TReal iCameraRotationFactor

TReal iCameraRotationFactor[protected]

TReal iCameraZoomFactor

TReal iCameraZoomFactor[protected]

CAlfCompositionSource * iCompositionSource

CAlfCompositionSource *iCompositionSource[protected]

CGulIcon * iDefaultIcon

CGulIcon *iDefaultIcon[protected]

CPeriodic * iDelayedInit

CPeriodic *iDelayedInit[protected]

TInt iDragFrames

TInt iDragFrames[protected]

CHgVgEGL * iEGL

CHgVgEGL *iEGL[protected]

CHgVgLabel * iEmptyLabel

CHgVgLabel *iEmptyLabel[protected]

HBufC * iEmptyText

HBufC *iEmptyText[protected]

TBool iFirstTime

TBool iFirstTime[protected]

TInt iFlags

TInt iFlags[protected]

CHgVgButton * iHideSKButton

CHgVgButton *iHideSKButton[protected]

TBool iIsForeground

TBool iIsForeground[protected]

TInt iItemCount

TInt iItemCount[protected]

RPointerArray< CHgVgItem > iItems

RPointerArray< CHgVgItem >iItems[protected]

TInt iItemsOnScreen

TInt iItemsOnScreen[protected]

TReal iItemsToMoveOnFullScreenDrag

TReal iItemsToMoveOnFullScreenDrag[protected]

TInt iKeyRepeats

TInt iKeyRepeats[protected]

enum CHgVgMediaWall::TKeyScrollingState iKeyScrollingState

enum CHgVgMediaWall::TKeyScrollingStateiKeyScrollingState[protected]

CPeriodic * iKeyScrollingTimer

CPeriodic *iKeyScrollingTimer[protected]

CHgVgPopup * iLetterPopup

CHgVgPopup *iLetterPopup[protected]

CHgScrollBufferManager * iManager

CHgScrollBufferManager *iManager[protected]

MHgVgMediaWallObserver * iMediaWallObserver

MHgVgMediaWallObserver *iMediaWallObserver[protected]

THgVgMediaWallStyle iMediaWallStyle

THgVgMediaWallStyle iMediaWallStyle[protected]

TBool iObserverNotified

TBool iObserverNotified[protected]

TRect iOpenedItemRect

TRect iOpenedItemRect[protected]

THgVgOpeningAnimationType iOpeningAnimationType

THgVgOpeningAnimationType iOpeningAnimationType[protected]

TInt iPickedGridItem

TInt iPickedGridItem[protected]

TBool iPointerDown

TBool iPointerDown[protected]

RBuf iPopupText1

RBuf iPopupText1[protected]

RBuf iPopupText2

RBuf iPopupText2[protected]

TInt iPrevGridItem

TInt iPrevGridItem[protected]

TTime iPrevTime

TTime iPrevTime[protected]

TInt iPreviousPointerDelta

TInt iPreviousPointerDelta[protected]

TRect iRect

TRect iRect[protected]

CHgVgMediaWallRenderer * iRenderer

CHgVgMediaWallRenderer *iRenderer[protected]

TInt iRowCount

TInt iRowCount[protected]

CHgVgScrollBar * iScrollBar

CHgVgScrollBar *iScrollBar[protected]

TBool iScrollBarEnabled

TBool iScrollBarEnabled[protected]

TBool iScrollBarHit

TBool iScrollBarHit[protected]

TInt iSelGridItem

TInt iSelGridItem[protected]

TInt iSelectedIndex

TInt iSelectedIndex[protected]

TBool iSelectionMode

TBool iSelectionMode[protected]

MHgSelectionObserver * iSelectionObserver

MHgSelectionObserver *iSelectionObserver[protected]

CHgVgSkinRenderer * iSkinRenderer

CHgVgSkinRenderer *iSkinRenderer[protected]

THgVgSpring * iSpring

THgVgSpring *iSpring[protected]

TReal iSpringDragVel

TReal iSpringDragVel[protected]

TReal iSpringVelAtDragStart

TReal iSpringVelAtDragStart[protected]

TReal iSpringVelocityToAnimationFactor

TReal iSpringVelocityToAnimationFactor[protected]

CHgVgItem * iTempItem

CHgVgItem *iTempItem[protected]

AknTouchGestureFw::CAknTouchGestureFw * iTouchFw

AknTouchGestureFw::CAknTouchGestureFw *iTouchFw[protected]

TBool iUpdateScrollBar

TBool iUpdateScrollBar[protected]

TBool iUsingDefaultIcon

TBool iUsingDefaultIcon[protected]

TReal iViewPositionAtDragStart

TReal iViewPositionAtDragStart[protected]