CHgVgMediaWall Class Reference

class CHgVgMediaWall : public CCoeControl

Inherits from

Public Member Functions
~CHgVgMediaWall ()
IMPORT_C void AddItem ( CHgVgItem *)
IMPORT_C void ChangeStyleL ( THgVgMediaWallStyle , const TRect &, TBool )
IMPORT_C void ClearFlags ( TInt )
IMPORT_C void DisableScrollBuffer ()
void Draw (const TRect &)
IMPORT_C void EnableScrollBufferL ( MHgScrollBufferObserver &, TInt , TInt )
IMPORT_C TInt FirstIndexOnScreen ()
IMPORT_C TInt Flags ()
void FocusChanged ( TDrawNow )
void HandleGainingForeground ()
void HandleLosingForeground ()
void HandlePointerEventL (const TPointerEvent &)
void HandleResourceChange ( TInt )
IMPORT_C void InitScreenL (const TRect &)
IMPORT_C void InsertItem ( CHgVgItem *, TInt )
IMPORT_C TInt ItemCount ()
IMPORT_C CHgVgItem & ItemL ( TInt )
IMPORT_C TInt ItemsOnScreen ()
IMPORT_C CHgVgMediaWall * NewL (const TRect &, TInt , THgVgMediaWallStyle , TBool , MObjectProvider *, CGulIcon *)
TKeyResponse OfferKeyEventL (const TKeyEvent &, TEventCode )
IMPORT_C THgVgOpeningAnimationType OpeningAnimationType ()
IMPORT_C void RefreshScreen ( TInt )
IMPORT_C void RemoveItem ( TInt )
IMPORT_C void Reset ()
IMPORT_C void ResizeL ( TInt )
IMPORT_C TInt SelectedIndex ()
IMPORT_C void SetDefaultIconL ( CGulIcon *)
IMPORT_C void SetEmptyTextL (const TDesC &)
IMPORT_C void SetFlags ( TInt )
IMPORT_C void SetItem ( CHgVgItem *, TInt )
IMPORT_C void SetItemToOpenedState ( TInt )
IMPORT_C void SetObserver ( MHgVgMediaWallObserver *)
IMPORT_C void SetOpenedItemRect (const TRect &)
IMPORT_C void SetOpeningAnimationType ( THgVgOpeningAnimationType )
IMPORT_C void SetSelectedIndex ( TInt )
IMPORT_C void SetSelectionObserver ( MHgSelectionObserver &)
void SizeChanged ()
IMPORT_C void StartOpeningAnimationL ( TBool )
IMPORT_C THgVgMediaWallStyle Style ()
Protected Member Functions
CHgVgMediaWall ( TInt , CGulIcon *, THgVgMediaWallStyle , TBool )
void ConstructL (const TRect &, MObjectProvider *)
Private Member Functions
TInt AnimationTimerCallback ( TAny *)
TBool BeginSelection ( TInt )
CGulIcon * CreateIconL ( TInt , TInt , const TSize &)
TInt DelayedInit ( TAny *)
void DestroyRendering ()
void DoAnimation ()
void DoKeyScrolling ()
TBool DoSelectionAnimation ()
void DoStartOpeningAnimationL ()
TBool DoTransitionAnimation ()
TBool DrawAll ()
void DrawButtonsAndScrollbar ()
void DrawLetterStripAndTitles ()
void DrawOpenVG ()
void DrawScene ()
void DrawTitles ( TReal )
CFbsBitmap * DrawToBitmap ()
void EndSelection ()
void FillSystemGcWithSkin ()
void FreeItemsImages ()
TReal GetAsPercentageOfScreenHeight ( TInt )
TReal GetAsPercentageOfScreenWidth ( TInt )
TInt GetStepsFromSpeed ( TInt )
TBool HandleButtons (const TPointerEvent &)
void HandleDragOn (const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
void HandleDragStart (const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
void HandleDragStop (const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
void HandleDragging (const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
void HandleFlick (const TPoint &)
void HandleItemCountChanged ()
void HandleKeyDown ()
TKeyResponse HandleKeyEvent (const TKeyEvent &)
void HandleKeyUp ()
void HandleNaviStripChar (const TChar &)
void HandleTapEventL (const TPoint &)
void HandleTouchGestureL ( AknTouchGestureFw::MAknTouchGestureFwEvent &)
void HandleTransitionAnimationStop ()
void HandleViewPositionChanged ( TBool )
void InitButtonsL ()
void InitDefaultIconL ()
void InitItemsL ()
void InitLabelsL ( TInt )
void InitMediaWallFullScreenLandscapeL ()
void InitMediaWallGridLandscapeL ()
void InitMediaWallTBonePortraitL ()
void InitPopupL ( TInt )
void InitRenderingL ( TBool )
void InitScrollBarL ( TBool )
void InitSkinRendererL ()
TInt KeyScrollingTimerCallback ( TAny *)
TInt MaxViewPosition ()
void Release ( TInt , TInt )
void ReloadItemsImages ()
void ScrollBarPositionChanged (const TPoint &)
TBool SearchItem ( TChar &)
void SetConstantsForStyle ()
void StartAnimationTimer ()
void StartAnimationToPosition ( TReal , TBool )
void StartAnimationToPosition ( TReal , TReal , TBool )
void StopKeyScrolling ()
void UpdateLabelsAndPopup ()
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
enum THgVgAnimationState {
EHgVgMediaWallAnimationStateIdle , EHgVgMediaWallAnimationStateTransition , EHgVgMediaWallAnimationStateFastTransition , EHgVgMediaWallAnimationStateOpening , EHgVgMediaWallAnimationStateClosing , EHgVgMediaWallAnimationStateItemOpened
}
enum THgVgMediaWallEvent { EHgVgMediaWallEventRequestHideSoftkeys , EHgVgMediaWallEventRequestShowSoftkeys , EHgVgMediaWallEventButtonGotoNowPlaying , EHgVgMediaWallEventButtonBack }
enum THgVgMediaWallMode { EHgVgMediaWallDrawToWindowGC  = 0x0001, EHgVgMediaWallFaded  = 0x0002, EHgVgMediaWallUninitialized  = 0x0004 }
enum THgVgMediaWallStyle { EHgVgMediaWallStyleCoverflowFullScreen , EHgVgMediaWallStyleCoverflowTBonePortrait , EHgVgMediaWallStyleCoverflowTBoneLandscape , EHgVgMediaWallStyleGrid , EHgVgMediaWallStyleUnknown }
enum THgVgOpeningAnimationType { EHgVgOpeningAnimationNone , EHgVgOpeningAnimationFlipToFront , EHgVgOpeningAnimationZoomToFront , EHgVgOpeningAnimationZoomIn }
Protected Member Enumerations
enum TKeyScrollingState { 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::TKeyScrollingState iKeyScrollingState
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 ( TInt aItemCount,
CGulIcon * aDefaultIcon,
THgVgMediaWallStyle aStyle,
TBool aEnableScrollBar
) [protected]

Parameters

TInt aItemCount
CGulIcon * aDefaultIcon
THgVgMediaWallStyle aStyle
TBool aEnableScrollBar

~CHgVgMediaWall()

IMPORT_C ~CHgVgMediaWall ( ) [virtual]

Member Functions Documentation

AddItem(CHgVgItem *)

IMPORT_C void AddItem ( CHgVgItem * aItem )

Adds Item.

Parameters

CHgVgItem * aItem New item. Ownership transferred.

AnimationTimerCallback(TAny *)

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

Callback method for animation

Parameters

TAny * aPtr Pointer to an instance of CHgVgMediaWall class.

BeginSelection(TInt)

TBool BeginSelection ( TInt aIndex ) [private]

Parameters

TInt aIndex

ChangeStyleL(THgVgMediaWallStyle, const TRect &, TBool)

IMPORT_C void ChangeStyleL ( THgVgMediaWallStyle aStyle,
const TRect & aRect,
TBool aReuseSurface
)

Changes mediawalls style.

Parameters

THgVgMediaWallStyle aStyle style.
const TRect & aRect new window rectangle.
TBool aReuseSurface flag to indicate whether or not OpenVG surface should be reconstructed.

ClearFlags(TInt)

IMPORT_C void ClearFlags ( TInt aFlags )

Clear mode flags. Possible values are defined in THgVgMediaWallMode.

Parameters

TInt aFlags flags to be cleared.

ConstructL(const TRect &, MObjectProvider *)

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

Parameters

const TRect & aRect
MObjectProvider * aParent

CreateIconL(TInt, TInt, const TSize &)

CGulIcon * CreateIconL ( TInt aId1,
TInt aId2,
const TSize & aSize
) [private]

Parameters

TInt aId1
TInt aId2
const TSize & aSize

DelayedInit(TAny *)

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

Parameters

TAny * aSelf

DestroyRendering()

void DestroyRendering ( ) [private]

DisableScrollBuffer()

IMPORT_C void DisableScrollBuffer ( )

Disables Scrollbuffer.

DoAnimation()

void DoAnimation ( ) [private]

Called by callback to do actual animation.

DoKeyScrolling()

void DoKeyScrolling ( ) [private]

DoSelectionAnimation()

TBool DoSelectionAnimation ( ) [private]

Does selection animation

DoStartOpeningAnimationL()

void DoStartOpeningAnimationL ( ) [private]

DoTransitionAnimation()

TBool DoTransitionAnimation ( ) [private]

Does transition animation, called by DoAnimation.

Draw(const TRect &)

void Draw ( const TRect & aRect ) const [virtual]

Parameters

const TRect & aRect

DrawAll()

TBool DrawAll ( ) [private]

DrawButtonsAndScrollbar()

void DrawButtonsAndScrollbar ( ) [private]

DrawLetterStripAndTitles()

void DrawLetterStripAndTitles ( ) [private]

DrawOpenVG()

void DrawOpenVG ( ) const [private]

Draws using OpenVG

DrawScene()

void DrawScene ( ) [private]

DrawTitles(TReal)

void DrawTitles ( TReal aAlpha ) [private]

Draws album and artist titles.

Parameters

TReal aAlpha

DrawToBitmap()

CFbsBitmap * DrawToBitmap ( ) [private]

EnableScrollBufferL(MHgScrollBufferObserver &, TInt, TInt)

IMPORT_C void EnableScrollBufferL ( MHgScrollBufferObserver & aObserver,
TInt aBufferSize,
TInt aBufferTreshold
)

Enables Buffering.

Parameters

MHgScrollBufferObserver & aObserver Buffer change observer.
TInt aBufferSize The size of the buffer.
TInt aBufferTreshold The minimum change needed for buffer to be modified.

EndSelection()

void EndSelection ( ) [private]

FillSystemGcWithSkin()

void FillSystemGcWithSkin ( ) const [private]

FirstIndexOnScreen()

IMPORT_C TInt FirstIndexOnScreen ( )

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 TInt Flags ( )

Get flags. Possible values are defined in THgVgMediaWallMode.

FocusChanged(TDrawNow)

void FocusChanged ( TDrawNow aDrawNow ) [virtual]

Parameters

TDrawNow aDrawNow

FreeItemsImages()

void FreeItemsImages ( ) [private]

Frees videomemory used by items.

GetAsPercentageOfScreenHeight(TInt)

TReal GetAsPercentageOfScreenHeight ( TInt aPixels ) const [private]

Parameters

TInt aPixels

GetAsPercentageOfScreenWidth(TInt)

TReal GetAsPercentageOfScreenWidth ( TInt aPixels ) const [private]

Parameters

TInt aPixels

GetStepsFromSpeed(TInt)

TInt GetStepsFromSpeed ( TInt aSpeed ) const [private]

Parameters

TInt aSpeed

HandleButtons(const TPointerEvent &)

TBool HandleButtons ( const TPointerEvent & aEvent ) [private]

Parameters

const TPointerEvent & aEvent

HandleDragOn(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

void HandleDragOn ( const AknTouchGestureFw::MAknTouchGestureFwDragEvent & aEvent ) [private]

HandleDragStart(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

void HandleDragStart ( const AknTouchGestureFw::MAknTouchGestureFwDragEvent & aEvent ) [private]

HandleDragStop(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

void HandleDragStop ( const AknTouchGestureFw::MAknTouchGestureFwDragEvent & aEvent ) [private]

HandleDragging(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)

void HandleDragging ( const AknTouchGestureFw::MAknTouchGestureFwDragEvent & aEvent ) [private]

HandleFlick(const TPoint &)

void HandleFlick ( const TPoint & aSpeed ) [private]

Parameters

const TPoint & aSpeed

HandleGainingForeground()

void HandleGainingForeground ( )

HandleItemCountChanged()

void HandleItemCountChanged ( ) [private]

Handles items count change.

HandleKeyDown()

void HandleKeyDown ( ) [private]

HandleKeyEvent(const TKeyEvent &)

TKeyResponse HandleKeyEvent ( const TKeyEvent & aKeyEvent ) [private]

Handles key events.

Parameters

const TKeyEvent & aKeyEvent TKeyEvent-object.

HandleKeyUp()

void HandleKeyUp ( ) [private]

HandleLosingForeground()

void HandleLosingForeground ( )

HandleNaviStripChar(const TChar &)

void HandleNaviStripChar ( const TChar & aChar ) [private]

Parameters

const TChar & aChar

HandlePointerEventL(const TPointerEvent &)

void HandlePointerEventL ( const TPointerEvent & aEvent ) [virtual]

Parameters

const TPointerEvent & aEvent

HandleResourceChange(TInt)

void HandleResourceChange ( TInt aType ) [virtual]

Parameters

TInt aType

HandleTapEventL(const TPoint &)

void HandleTapEventL ( const TPoint & aPosition ) [private]

Parameters

const TPoint & aPosition

HandleTouchGestureL(AknTouchGestureFw::MAknTouchGestureFwEvent &)

void HandleTouchGestureL ( AknTouchGestureFw::MAknTouchGestureFwEvent & aEvent ) [private]

HandleTransitionAnimationStop()

void HandleTransitionAnimationStop ( ) [private]

HandleViewPositionChanged(TBool)

void HandleViewPositionChanged ( TBool aDontUpdateObserver = EFalse ) [private]

Handles viewposition change.

Parameters

TBool aDontUpdateObserver = EFalse

InitButtonsL()

void InitButtonsL ( ) [private]

InitDefaultIconL()

void InitDefaultIconL ( ) [private]

Initializes default icon and creates VGImage for it.

InitItemsL()

void InitItemsL ( ) [private]

Initializes items.

InitLabelsL(TInt)

void InitLabelsL ( TInt aLayoutVariant ) [private]

Parameters

TInt aLayoutVariant

InitMediaWallFullScreenLandscapeL()

void InitMediaWallFullScreenLandscapeL ( ) [private]

InitMediaWallGridLandscapeL()

void InitMediaWallGridLandscapeL ( ) [private]

InitMediaWallTBonePortraitL()

void InitMediaWallTBonePortraitL ( ) [private]

InitPopupL(TInt)

void InitPopupL ( TInt aLayoutVariant ) [private]

Parameters

TInt aLayoutVariant

InitRenderingL(TBool)

void InitRenderingL ( TBool aRecreateSurface ) [private]

Initializes whole rendering functionality.

Parameters

TBool aRecreateSurface

InitScreenL(const TRect &)

IMPORT_C void InitScreenL ( const TRect & aRect )

Re-inits rendering for new window rectangle.

Parameters

const TRect & aRect New display rect

InitScrollBarL(TBool)

void InitScrollBarL ( TBool aResize ) [private]

Initializes scroll bar.

Parameters

TBool aResize

InitSkinRendererL()

void InitSkinRendererL ( ) [private]

Initializes skin rendering.

InsertItem(CHgVgItem *, TInt)

IMPORT_C void InsertItem ( CHgVgItem * aItem,
TInt aIndex
)

Inserts item at index postion.

Parameters

CHgVgItem * aItem New item. Ownership transferred.
TInt aIndex The index of the item.

ItemCount()

IMPORT_C TInt ItemCount ( ) const

Fetch item count.

ItemL(TInt)

IMPORT_C CHgVgItem & ItemL ( TInt aIndex )

Get item at specified index.

Parameters

TInt aIndex Index of the item that is returned

ItemsOnScreen()

IMPORT_C TInt ItemsOnScreen ( )

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,
TInt aItemCount,
THgVgMediaWallStyle aStyle,
TBool aEnableScrollBar,
MObjectProvider * aParent,
CGulIcon * aDefaultIcon = NULL
) [static]

Creates new HgVgMediaWall.

Parameters

const TRect & aRect Rect that the control draws onto.
TInt aItemCount Total count of items in the mediawall.
THgVgMediaWallStyle aStyle style of the mediawall.
TBool aEnableScrollBar ETrue to enable scrollbar.
MObjectProvider * aParent
CGulIcon * aDefaultIcon = NULL Default icon to be used.

OfferKeyEventL(const TKeyEvent &, TEventCode)

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

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

OpeningAnimationType()

IMPORT_C THgVgOpeningAnimationType OpeningAnimationType ( ) const

Gets current opening animation type

RefreshScreen(TInt)

IMPORT_C void RefreshScreen ( TInt aIndex )

Refreshes screen.

Parameters

TInt aIndex

Release(TInt, TInt)

void Release ( TInt aReleaseStart,
TInt aReleaseEnd
) [private]

Parameters

TInt aReleaseStart
TInt aReleaseEnd

ReloadItemsImages()

void ReloadItemsImages ( ) [private]

Reloads images to items.

RemoveItem(TInt)

IMPORT_C void RemoveItem ( TInt aIndex )

Removes item at index position. Removed item is deleted.

Parameters

TInt aIndex The index of the item.

Reset()

IMPORT_C void Reset ( )

Removes all items and presents empty text

ResizeL(TInt)

IMPORT_C void ResizeL ( TInt aItemCount )

Resizes Grid/List.

Parameters

TInt aItemCount New Count of items.

ScrollBarPositionChanged(const TPoint &)

void ScrollBarPositionChanged ( const TPoint & aNewPosition ) [private]

Parameters

const TPoint & aNewPosition

SearchItem(TChar &)

TBool SearchItem ( TChar & aFirstLetter ) [private]

Parameters

TChar & aFirstLetter

SelectedIndex()

IMPORT_C TInt SelectedIndex ( )

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

void SetConstantsForStyle ( ) [private]

SetDefaultIconL(CGulIcon *)

IMPORT_C void SetDefaultIconL ( CGulIcon * aDefaultIcon )

Sets new default icon.

Parameters

CGulIcon * aDefaultIcon New default icon to be used in scroller.

SetEmptyTextL(const TDesC &)

IMPORT_C void SetEmptyTextL ( const TDesC & aEmptyText )

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

Parameters

const TDesC & aEmptyText Empty text.

SetFlags(TInt)

IMPORT_C void SetFlags ( TInt aFlags )

Set mode flags. Possible values are defined in THgVgMediaWallMode.

Parameters

TInt aFlags flags to bet set.

SetItem(CHgVgItem *, TInt)

IMPORT_C void SetItem ( CHgVgItem * aItem,
TInt aIndex
)

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

Parameters

CHgVgItem * aItem New item. Ownership transferred.
TInt aIndex The index of the item.

SetItemToOpenedState(TInt)

IMPORT_C void SetItemToOpenedState ( TInt aIndex )

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 aIndex of the item to open.

SetObserver(MHgVgMediaWallObserver *)

IMPORT_C void SetObserver ( 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 * aObserver observer.

SetOpenedItemRect(const TRect &)

IMPORT_C void SetOpenedItemRect ( const TRect & aRect )

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

Parameters

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

SetOpeningAnimationType(THgVgOpeningAnimationType)

IMPORT_C void SetOpeningAnimationType ( THgVgOpeningAnimationType aType )

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

Parameters

THgVgOpeningAnimationType aType type of opening animation.

SetSelectedIndex(TInt)

IMPORT_C void SetSelectedIndex ( TInt aIndex )

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

Parameters

TInt aIndex new selected index. Selection is also made visible.

SetSelectionObserver(MHgSelectionObserver &)

IMPORT_C void SetSelectionObserver ( MHgSelectionObserver & aObserver )

Sets selection observer.

Parameters

MHgSelectionObserver & aObserver Selection observer.

SizeChanged()

void SizeChanged ( ) [virtual]

StartAnimationTimer()

void StartAnimationTimer ( ) [private]

StartAnimationToPosition(TReal, TBool)

void StartAnimationToPosition ( TReal aX,
TBool aUpdateScrollBar
) [private]

Parameters

TReal aX
TBool aUpdateScrollBar

StartAnimationToPosition(TReal, TReal, TBool)

void StartAnimationToPosition ( TReal aX,
TReal aY,
TBool aUpdateScrollBar
) [private]

Parameters

TReal aX
TReal aY
TBool aUpdateScrollBar

StartOpeningAnimationL(TBool)

IMPORT_C void StartOpeningAnimationL ( TBool aOpening )

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

Parameters

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

StopKeyScrolling()

void StopKeyScrolling ( ) [private]

Style()

IMPORT_C THgVgMediaWallStyle Style ( ) const

Gets current MediaWall style.

UpdateLabelsAndPopup()

void UpdateLabelsAndPopup ( ) [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::TKeyScrollingState iKeyScrollingState [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]