CAknIndicatorContainer Class Reference

#include <mw/AknIndicatorContainer.h>

Link against: AspSyncUtil.lib

class CAknIndicatorContainer : public CAknControl

Inherits from

Public Member Enumerations
enumTCustomIndicatorFlags { EMultiColorIndicator, EIndicatorPositionInverted }
enumTIndicatorAlignment { ELeft, ERight }
enumTIndicatorContext { EUniversalIndicators, ENaviPaneEditorIndicators, EQueryEditorIndicators, EFindIndicators }
enumTIndicatorPosition { ELeftSide, ERightSide, EMiddle }
enumTLayoutMode { ELayoutModeUsual, ELayoutModeWide }
enumTLayoutOrientation { EVertical, EHorizontal }
Public Member Functions
CAknIndicatorContainer()
CAknIndicatorContainer(TInt)
~CAknIndicatorContainer()
virtual IMPORT_C voidConstructFromResourceL(TResourceReader &)
IMPORT_C voidConstructL()
IMPORT_C TUidCreateIndicatorFromResourceL(TInt, TInt)
voidDrawPictographArea()
virtual IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
IMPORT_C voidHandleStatusPaneSizeChange()
IMPORT_C TIntIndicatorContext()
IMPORT_C TIntIndicatorState(TUid)
CAknPictographInterface *PictographInterface()
IMPORT_C voidReplaceIndicatorIconL(TUid, TInt, TInt, CFbsBitmap *, CFbsBitmap *, TInt)
IMPORT_C voidSetIncallBubbleAllowedInIdle(TBool)
IMPORT_C voidSetIncallBubbleAllowedInUsual(TBool)
IMPORT_C voidSetIncallBubbleFlags(const TInt &)
IMPORT_C voidSetIndicatorObserver(MAknIndicatorObserver *, TUid)
IMPORT_C voidSetIndicatorState(TUid, TInt, TBool)
IMPORT_C voidSetIndicatorValue(TUid, TInt, TInt)
IMPORT_C voidSetIndicatorValueL(TUid, const TDesC &)
Protected Member Functions
virtual IMPORT_C CCoeControl *ComponentControl(TInt)
virtual IMPORT_C TIntCountComponentControls()
virtual IMPORT_C voidHandleResourceChange(TInt)
virtual IMPORT_C voidPositionChanged()
virtual IMPORT_C voidSizeChanged()
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
Inherited Enumerations
CCoeControl:TZoomType
Inherited Functions
CAknControl::CAknControl()
CAknControl::~CAknControl()
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::CCoeControlArray
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
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::FocusChanged(TDrawNow)
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::OfferKeyEventL(const TKeyEvent &,TEventCode)
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
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()

Detailed Description

The default control in the status pane's small indicator pane. This container is also used for the status indicators in navi pane and for editor indicators in queries.

Member Enumeration Documentation

Enum TCustomIndicatorFlags

Additional flags that can be used for custom indicators.

EnumeratorValueDescription
EMultiColorIndicator0x1Indicator is multi-colored.
EIndicatorPositionInverted0x2Indicator's position is inverted.

Enum TIndicatorAlignment

Alignment of the indicators.

EnumeratorValueDescription
ELeftIndicators are aligned on the left side.
ERightIndicators are aligned on the right side.

Enum TIndicatorContext

Context of the indicator container. These are used to specify what type of status indicators the indicator container contains.

EnumeratorValueDescription
EUniversalIndicators0Universal status indicators.
ENaviPaneEditorIndicatorsEditor indicators shown in navi pane.
EQueryEditorIndicatorsEditor indicators shown in queries.
EFindIndicatorsSearch field indicators.

Enum TIndicatorPosition

Position of a indicator. These are used for invidual indicators to coarsely specify where they are positioned inside the indicator container.

EnumeratorValueDescription
ELeftSideIndicator positioned on the left side.
ERightSideIndicator positioned on the right side.
EMiddleIndicator positioned in the middle.

Enum TLayoutMode

Layout modes of indicator container.

EnumeratorValueDescription
ELayoutModeUsualUsed for universal indicators when not in idle.
ELayoutModeWideUsed for navi pane indicators and universal indicators in idle.

Enum TLayoutOrientation

Layout orientations of the indicator container. These are used to specify how the indicators are laid out inside the indicator container.

EnumeratorValueDescription
EVerticalIndicators are arranged vertically.
EHorizontalIndicators are arranged horizontally.

Constructor & Destructor Documentation

CAknIndicatorContainer ( )

IMPORT_CCAknIndicatorContainer()

Default constructor. Creates an EUniversalIndicators object.

CAknIndicatorContainer ( TInt )

IMPORT_CCAknIndicatorContainer(TIntaIndicatorContext)

Constructor. Creates EUniversalIndicators, ENaviPaneEditorIndicators or EQueryEditorIndicators object.

ParameterDescription
aIndicatorContextIndicator container context.

~CAknIndicatorContainer ( )

IMPORT_C~CAknIndicatorContainer()

Destructor.

Member Function Documentation

ComponentControl ( TInt )

IMPORT_C CCoeControl *ComponentControl(TIntaIndex)const [protected, virtual]

Reimplemented from CCoeControl::ComponentControl(TInt)const

Returns a control determined by control index.

ParameterDescription
aIndexIndex of a control to be returned.

Returns: Pointer to control

ConstructFromResourceL ( TResourceReader & )

IMPORT_C voidConstructFromResourceL(TResourceReader &aReader)[virtual]

Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)

Constructs the object from resource.

ParameterDescription
aReaderResource reader.

ConstructL ( )

IMPORT_C voidConstructL()

Second-phase constructor.

CountComponentControls ( )

IMPORT_C TIntCountComponentControls()const [protected, virtual]

Reimplemented from CCoeControl::CountComponentControls()const

Returns number of controls inside the context pane control.

Returns: Amount of component controls.

CreateIndicatorFromResourceL ( TInt, TInt )

IMPORT_C TUidCreateIndicatorFromResourceL(TIntaIndicatorResourceId,
TIntaCustomIndicatorFlags
)

Creates a custom indicator. Indicators created with this method can be used in addition to default indicators.

Since
3.1
ParameterDescription
aIndicatorResourceIdResource ID of INDICATOR struct to be used in costructing indicator. UID in the resource is ignored, a dynamic UID is given to indicator and returned to caller.
aCustomIndicatorFlagsFlags that can be used to set additional indicator properties.EMultiColorIndicator: Indicator is shown as multicolor (default is 2-color).EIndicatorPositionInverted: Indicator is aligned to the opposite side than default (default is right side). Note that this flag does not quarantee exact location for the indicator, indicators are shown in priority order and location may vary and look different in different layouts.

Returns: UID of the new indicator.

DrawPictographArea ( )

voidDrawPictographArea()

Redraws those indicators that are visible and contain pictographs.

HandlePointerEventL ( const TPointerEvent & )

IMPORT_C voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

Reimplemented from CCoeControl::HandlePointerEventL(const TPointerEvent &)

Handles pointer events.

ParameterDescription
aPointerEventThe pointer event.

HandleResourceChange ( TInt )

IMPORT_C voidHandleResourceChange(TIntaType)[protected, virtual]

Reimplemented from CCoeControl::HandleResourceChange(TInt)

Handles a change to the control's resources of type aType which are shared across the environment, e.g. color scheme change. Responds fade events and fades incall status bubble window group.

ParameterDescription
aTypeEvent type.

HandleStatusPaneSizeChange ( )

IMPORT_C voidHandleStatusPaneSizeChange()

The MEikStatusPaneObserver interface allows a status pane observer to pick up changes in the size or position of the status pane. Such events will be as a result of layout changes which cause an actual change in the status pane rectangle.

IndicatorContext ( )

IMPORT_C TIntIndicatorContext()const

Returns the context of the indicator container.

Returns: Context of the indicator container.

IndicatorState ( TUid )

IMPORT_C TIntIndicatorState(TUidaIndicatorId)

Return the current state of an indicator.

ParameterDescription
aIndicatorIdID of the indicator.

Returns: Current state of the indicator.

PictographInterface ( )

CAknPictographInterface *PictographInterface()const

Returns the pictograph interface owned by the indicator container, or NULL if pictographs are not supported.

PositionChanged ( )

IMPORT_C voidPositionChanged()[protected, virtual]

Reimplemented from CCoeControl::PositionChanged()

Handles position change events.

ReplaceIndicatorIconL ( TUid, TInt, TInt, CFbsBitmap *, CFbsBitmap *, TInt )

IMPORT_C voidReplaceIndicatorIconL(TUidaIndicator,
TIntaState,
TIntaLayoutMode,
CFbsBitmap *aIconBitmap,
CFbsBitmap *aIconMask,
TIntaIconIndex = 0
)

Replaces the icon of the given indicator.

Since
3.1
ParameterDescription
aIndicatorUID of the indicator.
aStateState which icon is replaced (EAknIndicatorStateOn or EAknIndicatorStateAnimate)
aLayoutModeLayout mode of the icon to be replaced (ELayoutModeUsual or ELayoutModeWide)
aIconBitmapBitmap of the new icon. Ownership is transferred to CAknIndicatorContainer.
aIconMaskMask of the new icon. Ownership is transferred to CAknIndicatorContainer.
aIconIndexIf parameter aState is EAknIndicatorStateAnimate, then this parameter must contain the index of the icon to be replaced in the animation sequence. Old icon must exist for given index so that the number of animation frames does not change.

SetIncallBubbleAllowedInIdle ( TBool )

IMPORT_C voidSetIncallBubbleAllowedInIdle(TBoolaAllowed)

Sets whether incall bubble is shown also on the top of the idle status pane. Normally it is shown only in usual statuspane layouts, but with this method it can be set to shown also in idle.

NOTE: This method works only if indicatorcontainer is used as container for universal indicators.

ParameterDescription
aAllowedIf true incall bubble is shown also in idle statuspane. Otherwise bubble is shown only in usual statuspane layouts.

SetIncallBubbleAllowedInUsual ( TBool )

IMPORT_C voidSetIncallBubbleAllowedInUsual(TBoolaAllowed)

Sets whether incall bubble is shown on the top of the usual status pane. Normally it is shown in usual statuspane layouts, but with this method it can prevent it to be shown.

NOTE: This method works only if indicatorcontainer is used as container for universal indicators.

ParameterDescription
aAllowedIf true incall bubble is shown in usual statuspane.

SetIncallBubbleFlags ( const TInt & )

IMPORT_C voidSetIncallBubbleFlags(const TInt &aFlags)

Sets value to the incall status bubble indicator on the top of the status pane.

ParameterDescription
aFlagsMode of the bubble.

SetIndicatorObserver ( MAknIndicatorObserver *, TUid )

IMPORT_C voidSetIndicatorObserver(MAknIndicatorObserver *aIndicatorObserver,
TUidaIndicatorUid
)

Sets observer for given indicator.

ParameterDescription
aIndicatorObserverObserver of the indicator.
aIndicatorUidUID of indicator to be observed.

SetIndicatorState ( TUid, TInt, TBool )

IMPORT_C voidSetIndicatorState(TUidaIndicatorId,
TIntaState,
TBoolaDrawNow = ETrue
)
Sets indicator state. The state can be one of the following:
  • EAknIndicatorStateOff

  • EAknIndicatorStateOn

  • EAknIndicatorStateAnimate

Editor indicators do not support animation.

ParameterDescription
aIndicatorIdID of the indicator to be modified.
aStateA state to be set to the indicator.
aDrawNowA flag to indicate if the indicator is redrawn with this call.

SetIndicatorValue ( TUid, TInt, TInt )

IMPORT_C voidSetIndicatorValue(TUidaIndicatorId,
TIntaValue,
TIntaMaxValue
)

Sets value to the progress bar indicator (EAknNaviPaneEditorIndicatorProgressBar). Panics if the specified indicator is not a progress bar indicator.

Since
2.1
ParameterDescription
aIndicatorIdID of the indicator to be modified.
aValueCurrent progress of the task that bar describes.
aMaxValueProgress value when task is finished.

SetIndicatorValueL ( TUid, const TDesC & )

IMPORT_C voidSetIndicatorValueL(TUidaIndicatorId,
const TDesC &aString
)

Sets value to the message length indicator (EAknNaviPaneEditorIndicatorMessageLength).

ParameterDescription
aIndicatorIdID of the indicator to be modified.
aStringValue of the indicator.

SizeChanged ( )

IMPORT_C voidSizeChanged()[protected, virtual]

Reimplemented from CCoeControl::SizeChanged()

Handles size change events.