#include <mw/eikspane.h>
class CEikStatusPaneBase : public CBase |
Protected Member Type Definitions | |
---|---|
typedef | CArrayPtrFlat< CEikStatusPaneContainer > CContainerControls |
Protected Attributes | |
---|---|
CContainerControls * | iControls |
CEikonEnv & | iEikEnv |
TInt | iFlags |
CEikStatusPaneModelBase * | iModel |
Public Member Enumerations | |
---|---|
enum | TDrawCmd { ENoDraw, EDrawNow, EDrawDeferred } |
Protected Member Functions | |
---|---|
CEikStatusPaneBase(CEikonEnv &, RWindowGroup *) | |
IMPORT_C void | BaseConstructL(TInt) |
CAknStatuspaneClearer * | Clearer() |
IMPORT_C void | CommonPrepareForAppExit() |
pure virtual CEikStatusPaneModelBase * | CreateModelL(TInt) |
void | CreatePaneL(const TEikStatusPaneInit &) |
void | CreatePanesL() |
CAknStatusPaneDataSubscriber * | DataSubscriber() |
IMPORT_C void | DisableClearer(TBool) |
void | DoDrawNow(TDrawCmd) |
CEikStatusPaneContainer * | Find(TPaneId) |
pure virtual TBool | IsApp() |
void | OptimizeClearerWindowShape(TInt, TInt, TRegion &) |
TRect | Rect() |
void | SetInitialUsedResourceId(TInt) |
void | SetStoreHandler(RWindow *, TBool) |
The base class for status panes.
typedef CArrayPtrFlat< CEikStatusPaneContainer > | CContainerControls | [protected] |
CEikonEnv & | iEikEnv | [protected] |
An environment for creating controls and utility functions for manipulating them.
IMPORT_C | CEikStatusPaneBase | ( | CEikonEnv & | aEikEnv, |
RWindowGroup * | aParent | |||
) | [protected] |
C++ default constructor.
Parameter | Description |
---|---|
aEikEnv | An environment for creating controls and utility functions for manipulating them. |
aParent | Pointer to the parent window group. |
IMPORT_C void | BaseConstructL | ( | TInt | aCoreResId | ) | [protected] |
Initializes the status pane with standard values.
Parameter | Description |
---|---|
aCoreResId | ID of the status pane resource. |
TAknsItemID | CbaAreaBackgroundID | ( | ) |
Returns the current skin background ID of the sub-panes which are in the CBA area.
CAknStatuspaneClearer * | Clearer | ( | ) | [protected] |
Gets the status pane clearer.
Returns: Pointer to the status pane clearer instance.
IMPORT_C void | CommonPrepareForAppExit | ( | ) | [protected] |
Prepares the status pane for the application exit. Clears the status pane.
IMPORT_C CCoeControl * | ContainerControlL | ( | TPaneId | aPaneId | ) | const |
Provides access to the container control of a sub-pane. You will need access to the container of a sub pane if you want to swap in a new control. The container control should be set as the parent window of the new control. It also provides a fast way to get the rectangle of the sub-pane (
See also: PaneRect()).
Parameter | Description |
---|---|
aPaneId | ID of the sub-pane. |
Returns: Pointer to the new container control for the sub-pane.
IMPORT_C CCoeControl * | ControlL | ( | TPaneId | aPaneId | ) | const |
Provides the control currently inside a sub-pane. This gives the application direct access to the contents of a pane.
Parameter | Description |
---|---|
aPaneId | Sub-pane ID. |
Returns: Pointer to the control instance inside the sub-pane.
CEikStatusPaneModelBase * | CreateModelL | ( | TInt | aCoreResId | ) | const [protected, pure virtual] |
Creates a new model for the status pane.
Parameter | Description |
---|---|
aCoreResId | ID of the status pane resource. |
Returns: Pointer to the new status pane model instance.
void | CreatePaneL | ( | const TEikStatusPaneInit & | aPaneInit | ) | [protected] |
Creates a sub-pane.
Parameter | Description |
---|---|
aPaneInit | Initial values for the sub-pane. |
IMPORT_C CEikStatusPaneBase * | Current | ( | ) | [static] |
Gets a pointer to the thread's currently active status pane without transferring ownership.
Returns: Pointer to currently active status pane. Returns NULL if no such pane exists.
IMPORT_C TInt | CurrentLayoutResId | ( | ) | const |
Gets the resource ID of the current layout.
See also: avkon.rsg
Returns: The resource ID of the current layout.
CAknStatusPaneDataSubscriber * | DataSubscriber | ( | ) | const [protected] |
Gets the status pane data subscriber.
Returns: Pointer to the status pane data subscriber.
IMPORT_C void | DisableClearer | ( | TBool | aDisabled | ) | [protected] |
Disables the status pane clearer.
Parameter | Description |
---|---|
aDisabled | Disabled if ETrue. |
IMPORT_C void | EnableTransparent | ( | TBool | aTransparent | ) |
Enable transparency of status pane and its contents. From CEikStatusPaneBase.
Parameter | Description |
---|---|
aTransparent | If ETrue the status pane and its contents are set aTransparent. |
CEikStatusPaneContainer * | Find | ( | TPaneId | aPaneId | ) | const [protected] |
Gets a container of a specified sub-pane.
Parameter | Description |
---|---|
aPaneId | The sub-pane ID. |
Returns: Pointer to the container of the sub-pane with a given ID.
Adds and removes pane rectangles from aRegion.
Parameter | Description |
---|---|
aRegion | The two-dimensional area from where rectangles are removed from or where rectangles are added to. |
aIncludeAppPanes | If ETrue, app panes are added, otherwise removed. |
aIncludeServerPanes | If ETrue, server panes are added, otherwise removed. |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Handles changes in resources which are shared across the environment. This function responds to the changes in resources by propagating them to sub-parts of the status pane.
Parameter | Description |
---|---|
aType | A message type. |
TBool | IsApp | ( | ) | const [protected, pure virtual] |
Can be used to determine whether or not the status pane is on application side or server side.
Returns: ETrue if the status pane resides in the application side, EFalse if it's on the server side.
IMPORT_C TBool | IsDimmed | ( | ) | const |
Gets the dimmed state of the status pane.
Returns: ETrue if the status pane is dimmed.
IMPORT_C TBool | IsFaded | ( | ) | const |
Gets the fade status of the status pane.
Returns: ETrue if status pane is faded.
IMPORT_C TBool | IsTransparent | ( | ) | const |
Gets the transparency of the status pane.
Returns: ETrue if the status pane is transparent.
IMPORT_C TBool | IsVisible | ( | ) | const |
Gets the visibility of the status pane.
Returns: ETrue if the status pane is visible.
IMPORT_C void | MakeVisible | ( | TBool | aVisible | ) | [virtual] |
Sets the visibility of the status pane and it's contents.
Parameter | Description |
---|---|
aVisible | If ETrue the status pane and it's contents are set visible. |
void | OptimizeClearerWindowShape | ( | TInt | aOldResourceId, |
TInt | aNewResourceId, | |||
TRegion & | aRegion | |||
) | [protected] |
Optimizes the status pane region which cleared during status pane layout change.
Parameter | Description |
---|---|
aOldResourceId | Old status pane resource ID. |
aNewResourceId | New status pane resource ID. |
aRegion | Status pane region. On return contains only the region that needs to be cleared. |
IMPORT_C TPaneCapabilities | PaneCapabilities | ( | TPaneId | aPaneId | ) | const |
Gets the capabilities of a sub-pane in the status pane.
Parameter | Description |
---|---|
aPaneId | Sub-pane ID. |
Returns: Capabilities of the pane.
Provides the screen rectangle of a sub-pane. This can be used to set the size of a new control which you want to place in the status pane.
Parameter | Description |
---|---|
aPaneId | Sub-pane ID. |
Returns: The sub-pane rectangle.
TRect | Rect | ( | ) | const [protected, inline] |
Gets the rectangle of the status pane.
Gets the status pane rectangle.
Returns: The rectangle used by the status pane.
IMPORT_C void | ReduceRect | ( | TRect & | aBoundingRect | ) | const |
Modifies the bounding rectangle so that it lies next to the status pane rectangle.
The status pane always places itself along the edge of the screen, so that it is consistent across applications and the server. It is assumed that the given bounding rectangle does not extend beyond the screen area.
Parameter | Description |
---|---|
aBoundingRect | The bounding rectangle. |
void | ReportSizeChange | ( | ) |
Notifies the command button area and status pane observer about the status pane size change. If the status pane is an embedded application, also this application is notified.
void | SetCbaAreaBackgroundID | ( | const TAknsItemID & | aBgID, |
CEikStatusPaneBase::TDrawCmd | aDrawCmd | |||
) |
Sets the skin background ID of sub-panes which are in the CBA area.
IMPORT_C void | SetDimmed | ( | TBool | aDimmed | ) | [virtual] |
Sets the status pane and it's contents to dimmed state.
Parameter | Description |
---|---|
aDimmed | If ETrue the status pane and it's contents are set to dimmed state. |
IMPORT_C void | SetFlags | ( | TInt | aFlags | ) |
Sets all the visual flags at once (KEikStatusPaneBaseVisibleBit and KEikStatusPaneBaseDimmedBit).
Parameter | Description |
---|---|
aFlags | Flags to be set. |
void | SetInitialUsedResourceId | ( | TInt | aResourceId | ) | [protected] |
Sets the initial status pane resource ID to an extension class CEikStatusPaneBaseExtension.
Parameter | Description |
---|---|
aResourceId | The initial status pane resource ID. |
void | SetObserver | ( | MEikStatusPaneObserver * | aObserver | ) | [inline] |
Sets the status pane observer.
Set the status pane observer.
Parameter | Description |
---|---|
aObserver | Pointer to status pane observer. |
IMPORT_C CCoeControl * | SwapControlL | ( | TPaneId | aPaneId, |
CCoeControl * | aNewControl | |||
) |
Swaps the control currently inside a sub-pane. The new control must be a fully constructed control. It will be placed inside the status pane, and the current content will be returned to the caller.
Parameter | Description |
---|---|
aPaneId | ID of the sub-pane. |
aNewControl | A fully constructed control to place at aPaneId. |
Returns: The control which was at aPaneId.
IMPORT_C void | SwitchLayoutL | ( | TInt | aLayoutResourceId | ) | [virtual] |
Switches to the specified status pane layout.
The actual layout to which this method switches may not be the same as specified in aLayoutResourceId parameter. Eg. if landscape mode status pane layout is set with this method, while in portrait mode, it's mapped to the corresponding layout in the portrait mode. This should be noted when using CEikStatusPaneBase::CurrentLayoutResId().
From release 3.2 on the old status pane layouts are also mapped to the new layouts, ie. R_AVKON_STATUS_PANE_LAYOUT_USUAL -> R_AVKON_STATUS_PANE_LAYOUT_USUAL_EXT
R_AVKON_STATUS_PANE_LAYOUT_IDLE -> R_AVKON_STATUS_PANE_LAYOUT_IDLE_EXT
See also: avkon.rsg
Parameter | Description |
---|---|
aLayoutResourceId | Layout resource ID. This must be one of the layouts identified in the status pane resource structures, otherwise the function leaves KErrNotFound. |
RWindowGroup * | WindowGroup | ( | ) | const [inline] |
Provides access to a server-side window group.
Gets the window group that this status pane belongs to.
Returns: Pointer to the window group.