CHgList Class Reference

class CHgList : public CHgScroller
Public Member Functions
~CHgList ()
Protected Member Functions
CHgList ( TInt , CGulIcon *)
void ConstructL (const TRect &, RWsSession *)
TInt CurrentIndex ()
void DoDraw (const TRect &)
TBool DoHandleKeyEvent (const TKeyEvent &)
void DrawHighlight (const TRect &, TRgb &)
void DrawItem ( TInt , const TRect &)
void FitSelectionToView ()
void FitTopItemToView ( TInt )
TInt GetSelected ( TPoint )
void HandleDownArrow ()
void HandleSizeChanged ()
void HandleUpArrow ()
void InitItemsL ()
TBool IsDisplayed ( TInt )
TRect ListRect ()
void ResetClippingRect ( CWindowGc &)
void SelectDefaultItem ()
TSize TotalSize ()
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::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()
CHgScroller::AddItem(CHgItem *)
CHgScroller::CHgScroller(TInt,CGulIcon *)
CHgScroller::ClearFlags(TInt)
CHgScroller::CollectionExtension(TUint,TAny *&,TAny *)
CHgScroller::CollectionState()const
CHgScroller::DisableScrollBuffer()
CHgScroller::Draw(const TRect &)const
CHgScroller::EnableScrollBufferL(MHgScrollBufferObserver &,TInt,TInt)
CHgScroller::FirstIndexOnScreen()
CHgScroller::FitRowToView(TInt)
CHgScroller::Flags()
CHgScroller::FocusChanged(TDrawNow)
CHgScroller::GetMarkedItemsL(RArray< TInt > &)
CHgScroller::HandleLongTapEventL(const TPoint &,const TPoint &)
CHgScroller::HandlePointerEventL(const TPointerEvent &)
CHgScroller::HandleResourceChange(TInt)
CHgScroller::HandleScrollbarVisibilityChange(TBool)
CHgScroller::HandleViewPositionChanged(TBool)
CHgScroller::HasHighlight()const
CHgScroller::HightlightItem(const TDesC &)
CHgScroller::InitDrawBuffer()const
CHgScroller::InitPhysicsL()
CHgScroller::InitScreenL(const TRect &)
CHgScroller::InitScreenL(const TRect &,RWsSession &)
CHgScroller::InputCapabilities()const
CHgScroller::InsertItem(CHgItem *,TInt)
CHgScroller::ItemActionMenuClosed()
CHgScroller::ItemCount()const
CHgScroller::ItemL(TInt)
CHgScroller::ItemsOnScreen()
CHgScroller::Mark(TInt)
CHgScroller::MarkAll()
CHgScroller::MarqueeCallback(TAny *)
CHgScroller::OfferKeyEventL(const TKeyEvent &,TEventCode)
CHgScroller::PhysicEmulationEnded()
CHgScroller::RefreshScreen(TInt)
CHgScroller::RemoveItem(TInt)
CHgScroller::Reset()
CHgScroller::ResizeL(TInt)
CHgScroller::SelectedIndex()
CHgScroller::SelectionChanged()
CHgScroller::SelectionMode()const
CHgScroller::SetDefaultIconL(CGulIcon *)
CHgScroller::SetEmptyTextL(const TDesC &)
CHgScroller::SetFirstIndexOnScreen(TInt)
CHgScroller::SetFlags(TInt)
CHgScroller::SetItem(CHgItem *,TInt)
CHgScroller::SetMarkingObserver(MHgMarkingObserver &)
CHgScroller::SetMenuProviderL(MObjectProvider *)
CHgScroller::SetScrollBarTypeL(THgScrollBarType)
CHgScroller::SetSelectedIndex(TInt)
CHgScroller::SetSelectionMode(TSelectionMode)
CHgScroller::SetSelectionObserver(MHgSelectionObserver &)
CHgScroller::SizeChanged()
CHgScroller::UnMark(TInt)
CHgScroller::UnMarkAll()
CHgScroller::ViewPosition()const
CHgScroller::ViewPositionChanged(const TPoint &,TBool,TUint)
CHgScroller::~CHgScroller()
Inherited Enumerations
CCoeControl:TZoomType
CHgScroller:THgScrollBarType
CHgScroller:THgScrollerMode
CHgScroller:TKeyScrollingState
CHgScroller:TSelectionMode
Protected Attributes
TRgb iColor
TRgb iColorBack
TRgb iHighlightedColor
TRgb iHighlightedColorBack
CHgListLayoutData * iLayoutData
TPoint iListOffset
TInt iRows
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CHgScroller::iActionMenu
CHgScroller::iCurrentRow
CHgScroller::iDefaultIcon
CHgScroller::iDetector
CHgScroller::iDrawUtils
CHgScroller::iEmptyText
CHgScroller::iFlags
CHgScroller::iFocusedIndex
CHgScroller::iHeight
CHgScroller::iHighlightTimer
CHgScroller::iImageSize
CHgScroller::iIndicatorManager
CHgScroller::iIndicatorSize
CHgScroller::iItemCount
CHgScroller::iItems
CHgScroller::iItemsOnScreen
CHgScroller::iKeyRepeats
CHgScroller::iKeyScrollingState
CHgScroller::iKeyScrollingTimer
CHgScroller::iKeyUtils
CHgScroller::iLandscapeScrolling
CHgScroller::iManager
CHgScroller::iMarkingObserver
CHgScroller::iOldWinPos
CHgScroller::iPanning
CHgScroller::iPhysics
CHgScroller::iPointerDown
CHgScroller::iPopupDrawer
CHgScroller::iPopupFont
CHgScroller::iPopupText1
CHgScroller::iPopupText2
CHgScroller::iPrev
CHgScroller::iResetViewPosition
CHgScroller::iRowHeight
CHgScroller::iScrollBarType
CHgScroller::iScrollbar
CHgScroller::iSelectedIndex
CHgScroller::iSelectionMode
CHgScroller::iSelectionObserver
CHgScroller::iSelectionToFocusedItem
CHgScroller::iShowHighlight
CHgScroller::iStart
CHgScroller::iStartTime
CHgScroller::iTextFind
CHgScroller::iUpperCaseTitle
CHgScroller::iViewPosition
CHgScroller::iWidth

Constructor & Destructor Documentation

CHgList(TInt, CGulIcon *)

CHgList ( TInt aItemCount,
CGulIcon * aDefaultIcon
) [protected]

Parameters

TInt aItemCount
CGulIcon * aDefaultIcon

~CHgList()

IMPORT_C ~CHgList ( ) [virtual]

Destructor

Member Functions Documentation

ConstructL(const TRect &, RWsSession *)

void ConstructL ( const TRect & aRect,
RWsSession * aSession
) [protected]

Usage:

         #include <featdiscovery.h>
  #include <featureinfo.h> // for feature definitions

  // replace <featureUIDx> with a real UID )

  // If querying only one feature, it is more efficient to use the class
  // via the static method, IsFeatureSupportedL().
  // When querying more than one feature, it is more efficient to use the
  // class by creating an instance and calling the IsSupported() method.

  // Static way of using the class:
  TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(<featureUIDx>);

  // Dynamic way of using the class using NewL():

  // Call NewL() to create an instance of CFeatureDiscovery.
  CFeatureDiscovery* testA = CFeatureDiscovery::NewL();

  // Call the exported IsSupported() method to query whether features
  // are supported in the current environment or not.
  TBool usbSupported = testA->IsSupported(<featureUIDx>);
  TBool mmcSupported = testA->IsSupported(<featureUIDx>);

  // Delete the created instance of CFeatureDiscovery.
  delete testA;

  // Dynamic way of using the class using NewLC():

  // Call NewLC() to create an instance of CFeatureDiscovery.
  // The method leaves the instance of the object on the cleanup stack.
  CFeatureDiscovery* testB = CFeatureDiscovery::NewLC();

  // Call the exported IsSupported() method to query whether features
  // are supported in the current environment or not.
  TBool wcdmaSupported = testB->IsSupported(<featureUIDx>);
  TBool gsmSupported = testB->IsSupported(<featureUIDx>);

  // Dynamic way of using multiple feature query. This is preferred
  // way to fetch support statuses if there are several features to be
  // queried, because it involves less inter-process communication.

  TFeatureSet featset;
  User::LeaveIfError( featset.Append( <featureUIDx> ) );
  User::LeaveIfError( featset.Append( <featureUIDx> ) );
  TInt err = testB->FeaturesSupported( featset );
	if(!err)
		{
			TBool uid1Supported = featset.IsFeatureSupported(<featureUIDx>);
			TBool uid2Supported = featset.IsFeatureSupported(<featureUIDx>);
			// ... or whether all QUERIED features are supported
			TBool allSupported = featset.AreAllFeaturesSupported();
		}
  // featset cleans array up in destructor on scope exit

  // Pop and delete the created instance of CFeatureDiscovery.
  CleanupStack::PopAndDestroy();
        

Parameters

const TRect & aRect
RWsSession * aSession

CurrentIndex()

TInt CurrentIndex ( ) [protected, virtual]

DoDraw(const TRect &)

void DoDraw ( const TRect & aRect ) const [protected, virtual]

Parameters

const TRect & aRect

DoHandleKeyEvent(const TKeyEvent &)

TBool DoHandleKeyEvent ( const TKeyEvent & aKeyEvent ) [protected, virtual]

Parameters

const TKeyEvent & aKeyEvent

DrawHighlight(const TRect &, TRgb &)

void DrawHighlight ( const TRect & aRect,
TRgb & aTextColor
) const [protected]

Parameters

const TRect & aRect
TRgb & aTextColor

DrawItem(TInt, const TRect &)

void DrawItem ( TInt aIndex,
const TRect & aRect
) const [protected, pure virtual]

Parameters

TInt aIndex
const TRect & aRect

FitSelectionToView()

void FitSelectionToView ( ) [protected, virtual]

FitTopItemToView(TInt)

void FitTopItemToView ( TInt aIndex ) [protected, virtual]

Parameters

TInt aIndex

GetSelected(TPoint)

TInt GetSelected ( TPoint aPosition ) const [protected, virtual]

Parameters

TPoint aPosition

HandleDownArrow()

void HandleDownArrow ( ) [protected]

HandleSizeChanged()

void HandleSizeChanged ( ) [protected, virtual]

HandleUpArrow()

void HandleUpArrow ( ) [protected]

InitItemsL()

void InitItemsL ( ) [protected, virtual]

IsDisplayed(TInt)

TBool IsDisplayed ( TInt aIndex ) [protected, virtual]

Parameters

TInt aIndex

ListRect()

TRect ListRect ( ) const [protected]

ResetClippingRect(CWindowGc &)

void ResetClippingRect ( CWindowGc & aGc ) const [protected]

Parameters

CWindowGc & aGc

SelectDefaultItem()

void SelectDefaultItem ( ) [protected]

TotalSize()

TSize TotalSize ( ) const [protected, virtual]

Member Data Documentation

TRgb iColor

TRgb iColor [protected]

TRgb iColorBack

TRgb iColorBack [protected]

TRgb iHighlightedColor

TRgb iHighlightedColor [protected]

TRgb iHighlightedColorBack

TRgb iHighlightedColorBack [protected]

CHgListLayoutData * iLayoutData

CHgListLayoutData * iLayoutData [protected]

TPoint iListOffset

TPoint iListOffset [protected]

TInt iRows

TInt iRows [protected]