CAknEnv Class Reference
class CAknEnv : public CBase |
Detailed Description
This class is a Series 60 extension to CEikonEnv. Every Avkon application is provided with an instance of CAvkEnv by the framework, which can be accessed through the iAvkonEnv macro.
Constructor & Destructor Documentation
Member Function Documentation
AknLayout ( )
Accessor method to layout.
Returns: Reference to the Layout.
AppWithShutterRunning ( )
IMPORT_C CAknAppUi * | AppWithShutterRunning | ( | ) | [static] |
Get pointer to the most embedded application UI with Dialog Shutter running.
Returns: Pointer to the most embedded application UI with Dialog Shutter running. NULL if no any Dialog Shutter running.
AvkonColor ( TInt )
Gets the TRgb value of the entry at the specified index in the colour lookup table.
Returns: The TRgb value of the colour lookup table at the aIndex.
CancelWsBufferRequest ( TInt )
IMPORT_C void | CancelWsBufferRequest | ( | TInt | aRequestID | ) | |
Cancels a request made by call RequestWsBuffer. This should be called in order to save RAM when higher than normal buffer size is no longer required.
Parameter | Description | aRequestID | The request ID returned by the RequestWsBuffer call which is to be canceled. Negative values are treated as error codes and ignored. |
CloseAllIntermediateStates ( )
IMPORT_C void | CloseAllIntermediateStates | ( | ) | |
Closes all intermediate states as a low-priority process.
CreateCbaObserverL ( CEikButtonGroupContainer *, CEikListBox * )
IMPORT_C void | CreateCbaObserverL | ( | CEikButtonGroupContainer * | aCba, |
| CEikListBox * | aListBox |
| ) | |
Create CBA observer. The possible existing one is removed first.
Parameter | Description | aCba | A control which ProcessCommandL handles the command. |
aListBox | Stored to data member iListBox. |
EditingStateIndicator ( )
Get the editing state indicator.
Returns: Pointer to the editing state indicator.
EndCommandMediation ( MEikCommandObserver & )
Ends mediating MSK commands to specified command observer. If commands are being mediated to the specifed observer, the command mediator is removed from the CBA to end mediation.
Parameter | Description | aCommandObserver | An observer. |
ExecuteEmptyPopupListL ( const TDesC * )
IMPORT_C void | ExecuteEmptyPopupListL | ( | const TDesC * | aEmptyText = 0 | ) | |
Executes empty popup list.
Parameter | Description | aEmptyText | Text indicating empty popup list. NULL if R_AVKON_EMPTY_POPUP_LIST_TEXT used. |
ExecuteEmptyPopupListL ( const TDesC *, const TDesC *, TInt )
IMPORT_C void | ExecuteEmptyPopupListL | ( | const TDesC * | aEmptyText, |
| const TDesC * | aTitle, |
| TInt | aSoftkeyId = 0 |
| ) | |
Executes empty popup list. aSoftkeyId is soft key rescource used, but shown without left soft key (except R_AVKON_SOFTKEYS_OK_EMPTY).
Parameter | Description | aEmptyText | Text indicating empty popup list. NULL if R_AVKON_EMPTY_POPUP_LIST_TEXT used. |
aTitle | A title of the popup list. |
ExitForegroundAppL ( )
IMPORT_C void | ExitForegroundAppL | ( | ) | [static] |
Exit foreground application.
FepMenuObserver ( )
Get the FEP menu observer.
Returns: Pointer to the FEP menu observer.
FontRegistry ( )
CAknFontRegistry & | FontRegistry | ( | ) | const |
Access to the registry of CAknLayoutFont pointers. Used for runtime checking of CFont pointers.
GetCurrentGlobalUiZoom ( TAknUiZoom & )
IMPORT_C void | GetCurrentGlobalUiZoom | ( | TAknUiZoom & | aCurrentGlobalUiZoom | ) | const |
Get current global zoom
- Since
- 3.1
Parameter | Description | aCurrentGlobalUiZoom | On return, contains current global zoom. |
GetCurrentLayoutId ( TAknLayoutId & )
IMPORT_C void | GetCurrentLayoutId | ( | TAknLayoutId & | aCurrentLayoutId | ) | const |
Get current layout ID.
- Since
- Series 60 2.0
Parameter | Description | aCurrentLayoutId | On return, contains current layout ID. |
InformCbaDeletion ( CEikButtonGroupContainer * )
IMPORT_C void | InformCbaDeletion | ( | CEikButtonGroupContainer * | aCba | ) | |
Remove CBA observer if the right one.
Parameter | Description | aCba | CBA to be checked. |
IsFeatureLanguage ( TInt )
TBool
| IsFeatureLanguage | ( | TInt | aFeatureLanguage | ) | |
LoadAknLayoutL ( )
IMPORT_C TBool | LoadAknLayoutL | ( | ) | |
Load an appropriate Avkon layout.
Returns: EFalse if the layout is already loaded.
LoadAknLayoutL ( const TAknLayoutConfigScreenMode & )
IMPORT_C TBool | LoadAknLayoutL | ( | const TAknLayoutConfigScreenMode & | aScreenMode | ) | |
Load an appropriate Avkon layout for a particular screen mode.
Parameter | Description | aScreenMode | The screen mode which the layout is required for |
Returns: EFalse if the layout is already loaded.
RegisterIntermediateStateL ( MAknIntermediateState * )
Register the control implementing intermediate states. Call iAvkonEnv->RegisterIntermediateState(this) in control's ActivateL().
Parameter | Description | aState | The control implementing intermediate states. |
ReloadAknLayoutL ( )
Re-load the current Avkon layout, in case there are new layout instances present.
RemoveCbaObserver ( )
IMPORT_C void | RemoveCbaObserver | ( | ) | |
RequestCommandMediationL ( CEikButtonGroupContainer &, MEikCommandObserver & )
IMPORT_C void | RequestCommandMediationL | ( | CEikButtonGroupContainer & | aCba, |
| MEikCommandObserver & | aCommandObserver |
| ) | |
Requests mediation of MSK commmands from specified CBA to the given observer. When called for the first time, this method creates an observer that is added to specified CBA to observe MSK commands and to mediate all received events to the given observer. The created observer exists until the CAknEnv instance is destroyed. All subsequent calls to this method replace the previously requested mediation.
Parameter | Description | aCba | CBA whose MSK is to be observed. |
aCommandObserver | An observer for which the commands are sent. |
RequestWsBuffer ( TInt )
IMPORT_C TInt | RequestWsBuffer | ( | TInt | aRequestedBufferSize | ) | |
Requests Window Server client buffer used by the application to be of at least the given size. All code that wants to increase (to avoid flicker) or decrease (to save RAM) the buffer compared to the default size should call this method instead of using WS interface directly. A list of all requests is maintained and the highest request is always effective. Only if there are no requests done, the default buffer size is used.
Parameter | Description | aRequestedBufferSize | requested Window Server client buffer size. |
Returns: Request ID. This is used when the request is canceled. In OOM situation, KErrNoMemory is returned. CancelWsBufferRequest ignores negative values as error codes so it is OK to pass any value returned by this method to CancelWsBufferRequest.
RunAppShutter ( )
IMPORT_C void | RunAppShutter | ( | ) | [static] |
SetFepMenuObserver ( MEikMenuObserver * )
Set the FEP menu observer.
Parameter | Description | aObserver | the FEP menu observer. |
SettingCache ( )
IMPORT_C CAknSettingCache & | SettingCache | ( | ) | const |
ShutOrHideAppL ( )
void | ShutOrHideAppL | ( | ) | [static] |
SplitViewActive ( )
IMPORT_C TBool | SplitViewActive | ( | ) | const |
Checks if split view is active.
- Since
- Series 60 5.0
Returns: ETrue if split view is active.
SplitViewActive ( const TBool )
void | SplitViewActive | ( | const TBool | aSplitViewActive | ) | |
Sets split view flag.
- Since
- Series 60 5.0
Parameter | Description | aSplitViewActive | Etrue if split view is active. |
Static ( )
Gets the CAknEnv maintained by the framework for the application. Compare CCoeEnv::Static().
This function should never be run in a thread where such a static Avkon environment does not exist. Code that may run on the server side of an application server is one such case.
Returns: A static CAknEnv.
StatusPaneResIdForCurrentLayout ( TInt )
IMPORT_C TInt | StatusPaneResIdForCurrentLayout | ( | TInt | aResId | ) | const |
Tells the type of status pane layout for UI.
- Since
- Series 60 2.0
Parameter | Description | aResId | resource id for current layout. |
Returns: Resource id equivalent type of status pane layout.
StopSchedulerWaitWithBusyMessage ( CActiveSchedulerWait & )
Stop the scheduler. If the waiting control can't stop the scheduler immediately, then trying to show a busy note.
Parameter | Description | aWait | Scheduler object to be stopped. |
SwapEditingStateIndicator ( MAknEditingStateIndicator * )
Swap the editing state indicator.
Parameter | Description | aIndicator | The new editing state indicator. |
Returns: The old editing state indicator.
SystemFontArray ( )
Access to the system font array that is owned by CEikonEnv. The member accessed by this is set during CEikonEnv construction and may be null during application startup.
TransitionEvent ( TInt, const TUid & )
void | TransitionEvent | ( | TInt | aEvent, |
| const TUid & | aAppUid |
| ) | |
TransitionEvent ( TInt )
void | TransitionEvent | ( | TInt | aEvent | ) | |
TransparencyEnabled ( )
IMPORT_C TBool | TransparencyEnabled | ( | ) | const |
Return if Transparency is Enabled .
Returns: if Transparency is Enabled.
UnRegisterIntermediateState ( MAknIntermediateState * )
Unregister the control implementing intermediate states. Call iAvkonEnv->UnRegisterIntermediateState(this) in control's destructor.
Parameter | Description | aState | The control implementing intermediate states. |