#include <mw/AknIndicatorContainer.h>
class CAknIndicatorContainer : public CAknControl |
Public Member Enumerations | |
---|---|
enum | TCustomIndicatorFlags { EMultiColorIndicator, EIndicatorPositionInverted } |
enum | TIndicatorAlignment { ELeft, ERight } |
enum | TIndicatorContext { EUniversalIndicators, ENaviPaneEditorIndicators, EQueryEditorIndicators, EFindIndicators } |
enum | TIndicatorPosition { ELeftSide, ERightSide, EMiddle } |
enum | TLayoutMode { ELayoutModeUsual, ELayoutModeWide } |
enum | TLayoutOrientation { EVertical, EHorizontal } |
Public Member Functions | |
---|---|
CAknIndicatorContainer() | |
CAknIndicatorContainer(TInt) | |
~CAknIndicatorContainer() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | ConstructL() |
IMPORT_C TUid | CreateIndicatorFromResourceL(TInt, TInt) |
void | DrawPictographArea() |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C void | HandleStatusPaneSizeChange() |
IMPORT_C TInt | IndicatorContext() |
IMPORT_C TInt | IndicatorState(TUid) |
CAknPictographInterface * | PictographInterface() |
IMPORT_C void | ReplaceIndicatorIconL(TUid, TInt, TInt, CFbsBitmap *, CFbsBitmap *, TInt) |
IMPORT_C void | SetIncallBubbleAllowedInIdle(TBool) |
IMPORT_C void | SetIncallBubbleAllowedInUsual(TBool) |
IMPORT_C void | SetIncallBubbleFlags(const TInt &) |
IMPORT_C void | SetIndicatorObserver(MAknIndicatorObserver *, TUid) |
IMPORT_C void | SetIndicatorState(TUid, TInt, TBool) |
IMPORT_C void | SetIndicatorValue(TUid, TInt, TInt) |
IMPORT_C void | SetIndicatorValueL(TUid, const TDesC &) |
Protected Member Functions | |
---|---|
virtual IMPORT_C CCoeControl * | ComponentControl(TInt) |
virtual IMPORT_C TInt | CountComponentControls() |
virtual IMPORT_C void | HandleResourceChange(TInt) |
virtual IMPORT_C void | PositionChanged() |
virtual IMPORT_C void | SizeChanged() |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
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.
Context of the indicator container. These are used to specify what type of status indicators the indicator container contains.
Position of a indicator. These are used for invidual indicators to coarsely specify where they are positioned inside the indicator container.
IMPORT_C | CAknIndicatorContainer | ( | ) |
Default constructor. Creates an EUniversalIndicators object.
IMPORT_C | CAknIndicatorContainer | ( | TInt | aIndicatorContext | ) |
Constructor. Creates EUniversalIndicators, ENaviPaneEditorIndicators or EQueryEditorIndicators object.
Parameter | Description |
---|---|
aIndicatorContext | Indicator container context. |
IMPORT_C CCoeControl * | ComponentControl | ( | TInt | aIndex | ) | const [protected, virtual] |
Reimplemented from CCoeControl::ComponentControl(TInt)const
Returns a control determined by control index.
Parameter | Description |
---|---|
aIndex | Index of a control to be returned. |
Returns: Pointer to control
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
Constructs the object from resource.
Parameter | Description |
---|---|
aReader | Resource reader. |
IMPORT_C TInt | CountComponentControls | ( | ) | const [protected, virtual] |
Reimplemented from CCoeControl::CountComponentControls()const
Returns number of controls inside the context pane control.
Returns: Amount of component controls.
Creates a custom indicator. Indicators created with this method can be used in addition to default indicators.
Parameter | Description |
---|---|
aIndicatorResourceId | Resource 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. |
aCustomIndicatorFlags | Flags 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.
void | DrawPictographArea | ( | ) |
Redraws those indicators that are visible and contain pictographs.
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CCoeControl::HandlePointerEventL(const TPointerEvent &)
Handles pointer events.
Parameter | Description |
---|---|
aPointerEvent | The pointer event. |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [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.
Parameter | Description |
---|---|
aType | Event type. |
IMPORT_C void | HandleStatusPaneSizeChange | ( | ) |
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.
IMPORT_C TInt | IndicatorContext | ( | ) | const |
Returns the context of the indicator container.
Returns: Context of the indicator container.
CAknPictographInterface * | PictographInterface | ( | ) | const |
Returns the pictograph interface owned by the indicator container, or NULL if pictographs are not supported.
IMPORT_C void | PositionChanged | ( | ) | [protected, virtual] |
Reimplemented from CCoeControl::PositionChanged()
Handles position change events.
IMPORT_C void | ReplaceIndicatorIconL | ( | TUid | aIndicator, |
TInt | aState, | |||
TInt | aLayoutMode, | |||
CFbsBitmap * | aIconBitmap, | |||
CFbsBitmap * | aIconMask, | |||
TInt | aIconIndex = 0 | |||
) |
Replaces the icon of the given indicator.
Parameter | Description |
---|---|
aIndicator | UID of the indicator. |
aState | State which icon is replaced (EAknIndicatorStateOn or EAknIndicatorStateAnimate) |
aLayoutMode | Layout mode of the icon to be replaced (ELayoutModeUsual or ELayoutModeWide) |
aIconBitmap | Bitmap of the new icon. Ownership is transferred to CAknIndicatorContainer. |
aIconMask | Mask of the new icon. Ownership is transferred to CAknIndicatorContainer. |
aIconIndex | If 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. |
IMPORT_C void | SetIncallBubbleAllowedInIdle | ( | TBool | aAllowed | ) |
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.
Parameter | Description |
---|---|
aAllowed | If true incall bubble is shown also in idle statuspane. Otherwise bubble is shown only in usual statuspane layouts. |
IMPORT_C void | SetIncallBubbleAllowedInUsual | ( | TBool | aAllowed | ) |
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.
Parameter | Description |
---|---|
aAllowed | If true incall bubble is shown in usual statuspane. |
IMPORT_C void | SetIncallBubbleFlags | ( | const TInt & | aFlags | ) |
Sets value to the incall status bubble indicator on the top of the status pane.
Parameter | Description |
---|---|
aFlags | Mode of the bubble. |
IMPORT_C void | SetIndicatorObserver | ( | MAknIndicatorObserver * | aIndicatorObserver, |
TUid | aIndicatorUid | |||
) |
Sets observer for given indicator.
Parameter | Description |
---|---|
aIndicatorObserver | Observer of the indicator. |
aIndicatorUid | UID of indicator to be observed. |
EAknIndicatorStateOff
EAknIndicatorStateOn
EAknIndicatorStateAnimate
Editor indicators do not support animation.
Parameter | Description |
---|---|
aIndicatorId | ID of the indicator to be modified. |
aState | A state to be set to the indicator. |
aDrawNow | A flag to indicate if the indicator is redrawn with this call. |
Sets value to the progress bar indicator (EAknNaviPaneEditorIndicatorProgressBar). Panics if the specified indicator is not a progress bar indicator.
Parameter | Description |
---|---|
aIndicatorId | ID of the indicator to be modified. |
aValue | Current progress of the task that bar describes. |
aMaxValue | Progress value when task is finished. |
IMPORT_C void | SizeChanged | ( | ) | [protected, virtual] |
Reimplemented from CCoeControl::SizeChanged()
Handles size change events.