CHgVgMediaWall Class Reference
|
class CHgVgMediaWall : public CCoeControl
|
|
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
()
|
|
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
}
|
Constructor & Destructor Documentation
CHgVgMediaWall(TInt, CGulIcon *, THgVgMediaWallStyle, TBool)
~CHgVgMediaWall()
|
IMPORT_C
|
~CHgVgMediaWall
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AddItem(CHgVgItem *)
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]
|
ChangeStyleL(THgVgMediaWallStyle, const TRect &, TBool)
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 *)
CreateIconL(TInt, TInt, const TSize &)
DelayedInit(TAny *)
|
TInt
|
DelayedInit
|
(
|
TAny
*
|
aSelf
|
)
|
[private, static]
|
DestroyRendering()
|
void
|
DestroyRendering
|
(
|
)
|
[private]
|
DisableScrollBuffer()
|
IMPORT_C void
|
DisableScrollBuffer
|
(
|
)
|
|
DoAnimation()
|
void
|
DoAnimation
|
(
|
)
|
[private]
|
Called by callback to do actual animation.
DoKeyScrolling()
|
void
|
DoKeyScrolling
|
(
|
)
|
[private]
|
DoSelectionAnimation()
|
TBool
|
DoSelectionAnimation
|
(
|
)
|
[private]
|
DoStartOpeningAnimationL()
|
void
|
DoStartOpeningAnimationL
|
(
|
)
|
[private]
|
DoTransitionAnimation()
|
TBool
|
DoTransitionAnimation
|
(
|
)
|
[private]
|
Does transition animation, called by DoAnimation.
Draw(const TRect &)
|
void
|
Draw
|
(
|
const
TRect
&
|
aRect
|
)
|
const [virtual]
|
DrawAll()
|
TBool
|
DrawAll
|
(
|
)
|
[private]
|
DrawButtonsAndScrollbar()
|
void
|
DrawButtonsAndScrollbar
|
(
|
)
|
[private]
|
DrawLetterStripAndTitles()
|
void
|
DrawLetterStripAndTitles
|
(
|
)
|
[private]
|
DrawOpenVG()
|
void
|
DrawOpenVG
|
(
|
)
|
const [private]
|
DrawScene()
|
void
|
DrawScene
|
(
|
)
|
[private]
|
DrawTitles(TReal)
|
void
|
DrawTitles
|
(
|
TReal
|
aAlpha
|
)
|
[private]
|
Draws album and artist titles.
EnableScrollBufferL(MHgScrollBufferObserver &, TInt, TInt)
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()
Get flags. Possible values are defined in THgVgMediaWallMode.
FocusChanged(TDrawNow)
|
void
|
FocusChanged
|
(
|
TDrawNow
|
aDrawNow
|
)
|
[virtual]
|
FreeItemsImages()
|
void
|
FreeItemsImages
|
(
|
)
|
[private]
|
Frees videomemory used by items.
GetAsPercentageOfScreenHeight(TInt)
|
TReal
|
GetAsPercentageOfScreenHeight
|
(
|
TInt
|
aPixels
|
)
|
const [private]
|
GetAsPercentageOfScreenWidth(TInt)
|
TReal
|
GetAsPercentageOfScreenWidth
|
(
|
TInt
|
aPixels
|
)
|
const [private]
|
GetStepsFromSpeed(TInt)
|
TInt
|
GetStepsFromSpeed
|
(
|
TInt
|
aSpeed
|
)
|
const [private]
|
HandleButtons(const TPointerEvent &)
|
TBool
|
HandleButtons
|
(
|
const TPointerEvent &
|
aEvent
|
)
|
[private]
|
Parameters
|
const TPointerEvent & aEvent
|
|
HandleDragOn(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
HandleDragStart(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
HandleDragStop(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
HandleDragging(const AknTouchGestureFw::MAknTouchGestureFwDragEvent &)
HandleFlick(const TPoint &)
|
void
|
HandleFlick
|
(
|
const
TPoint
&
|
aSpeed
|
)
|
[private]
|
HandleGainingForeground()
|
void
|
HandleGainingForeground
|
(
|
)
|
|
HandleItemCountChanged()
|
void
|
HandleItemCountChanged
|
(
|
)
|
[private]
|
Handles items count change.
HandleKeyDown()
|
void
|
HandleKeyDown
|
(
|
)
|
[private]
|
HandleKeyEvent(const TKeyEvent &)
|
TKeyResponse
|
HandleKeyEvent
|
(
|
const
TKeyEvent
&
|
aKeyEvent
|
)
|
[private]
|
Parameters
|
const
TKeyEvent
& aKeyEvent
|
TKeyEvent-object.
|
HandleKeyUp()
|
void
|
HandleKeyUp
|
(
|
)
|
[private]
|
HandleLosingForeground()
|
void
|
HandleLosingForeground
|
(
|
)
|
|
HandleNaviStripChar(const TChar &)
|
void
|
HandleNaviStripChar
|
(
|
const
TChar
&
|
aChar
|
)
|
[private]
|
HandlePointerEventL(const TPointerEvent &)
|
void
|
HandlePointerEventL
|
(
|
const TPointerEvent &
|
aEvent
|
)
|
[virtual]
|
Parameters
|
const TPointerEvent & aEvent
|
|
HandleResourceChange(TInt)
|
void
|
HandleResourceChange
|
(
|
TInt
|
aType
|
)
|
[virtual]
|
HandleTapEventL(const TPoint &)
|
void
|
HandleTapEventL
|
(
|
const
TPoint
&
|
aPosition
|
)
|
[private]
|
HandleTouchGestureL(AknTouchGestureFw::MAknTouchGestureFwEvent &)
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]
|
InitLabelsL(TInt)
|
void
|
InitLabelsL
|
(
|
TInt
|
aLayoutVariant
|
)
|
[private]
|
InitMediaWallFullScreenLandscapeL()
|
void
|
InitMediaWallFullScreenLandscapeL
|
(
|
)
|
[private]
|
InitMediaWallGridLandscapeL()
|
void
|
InitMediaWallGridLandscapeL
|
(
|
)
|
[private]
|
InitMediaWallTBonePortraitL()
|
void
|
InitMediaWallTBonePortraitL
|
(
|
)
|
[private]
|
InitPopupL(TInt)
|
void
|
InitPopupL
|
(
|
TInt
|
aLayoutVariant
|
)
|
[private]
|
InitRenderingL(TBool)
|
void
|
InitRenderingL
|
(
|
TBool
|
aRecreateSurface
|
)
|
[private]
|
Initializes whole rendering functionality.
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]
|
InitSkinRendererL()
|
void
|
InitSkinRendererL
|
(
|
)
|
[private]
|
Initializes skin rendering.
InsertItem(CHgVgItem *, TInt)
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
|
ItemL(TInt)
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]
|
MaxViewPosition()
|
TInt
|
MaxViewPosition
|
(
|
)
|
const [private]
|
NewL(const TRect &, TInt, THgVgMediaWallStyle, TBool, MObjectProvider *, CGulIcon *)
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]
|
OpeningAnimationType()
Gets current opening animation type
RefreshScreen(TInt)
|
IMPORT_C void
|
RefreshScreen
|
(
|
TInt
|
aIndex
|
)
|
|
Release(TInt, TInt)
|
void
|
Release
|
(
|
TInt
|
aReleaseStart,
|
|
|
TInt
|
aReleaseEnd
|
|
|
)
|
[private]
|
ReloadItemsImages()
|
void
|
ReloadItemsImages
|
(
|
)
|
[private]
|
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()
Removes all items and presents empty text
ResizeL(TInt)
|
IMPORT_C void
|
ResizeL
|
(
|
TInt
|
aItemCount
|
)
|
|
Parameters
|
TInt
aItemCount
|
New Count of items.
|
ScrollBarPositionChanged(const TPoint &)
|
void
|
ScrollBarPositionChanged
|
(
|
const
TPoint
&
|
aNewPosition
|
)
|
[private]
|
SearchItem(TChar &)
|
TBool
|
SearchItem
|
(
|
TChar
&
|
aFirstLetter
|
)
|
[private]
|
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
|
)
|
|
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)
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 *)
Sets button observer. Client can use this to register it self to be notified when the user for example, presses hide softkeys button.
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)
Sets type of selection animation to perform, when an item is opened. Default behaviour is EHgSelectionAnimationFlipToFront.
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 &)
SizeChanged()
|
void
|
SizeChanged
|
(
|
)
|
[virtual]
|
StartAnimationTimer()
|
void
|
StartAnimationTimer
|
(
|
)
|
[private]
|
StartAnimationToPosition(TReal, TBool)
|
void
|
StartAnimationToPosition
|
(
|
TReal
|
aX,
|
|
|
TBool
|
aUpdateScrollBar
|
|
|
)
|
[private]
|
StartAnimationToPosition(TReal, TReal, TBool)
|
void
|
StartAnimationToPosition
|
(
|
TReal
|
aX,
|
|
|
TReal
|
aY,
|
|
|
TBool
|
aUpdateScrollBar
|
|
|
)
|
[private]
|
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()
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
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
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
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]
|
CHgVgButton * iHideSKButton
|
CHgVgButton *
|
iHideSKButton
|
[protected]
|
TBool
iIsForeground
|
TBool
|
iIsForeground
|
[protected]
|
TInt
iItemCount
|
TInt
|
iItemCount
|
[protected]
|
RPointerArray< CHgVgItem > iItems
TInt
iItemsOnScreen
|
TInt
|
iItemsOnScreen
|
[protected]
|
TReal
iItemsToMoveOnFullScreenDrag
|
TReal
|
iItemsToMoveOnFullScreenDrag
|
[protected]
|
TInt
iKeyRepeats
|
TInt
|
iKeyRepeats
|
[protected]
|
enum CHgVgMediaWall::TKeyScrollingState iKeyScrollingState
CPeriodic * iKeyScrollingTimer
CHgVgPopup * iLetterPopup
|
CHgVgPopup *
|
iLetterPopup
|
[protected]
|
CHgScrollBufferManager * iManager
|
CHgScrollBufferManager *
|
iManager
|
[protected]
|
MHgVgMediaWallObserver * iMediaWallObserver
THgVgMediaWallStyle
iMediaWallStyle
TBool
iObserverNotified
|
TBool
|
iObserverNotified
|
[protected]
|
TRect
iOpenedItemRect
|
TRect
|
iOpenedItemRect
|
[protected]
|
THgVgOpeningAnimationType
iOpeningAnimationType
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]
|
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
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]
|
AknTouchGestureFw::CAknTouchGestureFw * iTouchFw
|
AknTouchGestureFw::CAknTouchGestureFw *
|
iTouchFw
|
[protected]
|
TBool
iUpdateScrollBar
|
TBool
|
iUpdateScrollBar
|
[protected]
|
TBool
iUsingDefaultIcon
|
TBool
|
iUsingDefaultIcon
|
[protected]
|
TReal
iViewPositionAtDragStart
|
TReal
|
iViewPositionAtDragStart
|
[protected]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.