#include <mw/eikenv.h>
class CEikonEnv : public CCoeEnv |
Public Member Enumerations | |
---|---|
enum | TErrorValidity { EErrorNumValid, EErrorNumInvalid } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
An environment for creating controls and utility functions for manipulating them.
Every GUI application is provided with an instance of CEikonEnv by the framework, which can be accessed through either CEikonEnv::Static() or the iEikonEnv macro of CEikApplication.
IMPORT_C | CEikonEnv | ( | ) |
Default C++ constructor.
Allocates memory for the new CEikonEnv object; invoke using new(ELeave). The second phase constructor should be called after the constructor for the environment to be correctly initialised.
IMPORT_C | ~CEikonEnv | ( | ) |
Destructor
Frees any resources allocated by this CEikonEnv during construction.
IMPORT_C void | AddAlertDialogLikeControlToStackL | ( | CCoeControl * | aControl | ) |
Adds an alert dialog-like control (with a control stack priority of ECoeStackPriorityAlert) to the control stack.
Alert dialogs are used to indicate errors to the user.
It leaves with no alert if a control with a priority between ECoeStackPriorityAlert and ECoeStackPriorityFep is already being displayed by the appUi.
Parameter | Description |
---|---|
aControl | The control to add. |
IMPORT_C void | AddAppUiFactoryL | ( | MEikAppUiFactory * | aAppUiFactory | ) |
IMPORT_C void | AddAutoMenuTitleL | ( | CEikAutoMenuTitle * | aTitle | ) |
Adds a menu title to the menu bar for all applications.
Takes ownership of aTitle at the end of the function. Push the CEikAutoMenuTitle object on the cleanup stack before calling this method, and pop it after.
Parameter | Description |
---|---|
aTitle | Menu title to add to all applications' menu bars. |
IMPORT_C void | AddDialogLikeControlToStackL | ( | CCoeControl * | aControl | ) |
Adds a dialog-like control (with a control stack priority of ECoeStackPriorityDialog) to the control stack.
It leaves with no alert if a control with a priority between ECoeStackPriorityDialog and ECoeStackPriorityFep is already being displayed by the appUi.
Parameter | Description |
---|---|
aControl | The control to add. |
IMPORT_C TInt | AddLibraryL | ( | TCreateByTypeFunction | aControlFactory, |
TFileName * | aResourceFile | |||
) |
Adds the control factory and resource file to the Eikon Environment. This function does not add the control factory if it is NULL.
Parameter | Description |
---|---|
aControlFactory | Control factory that has to be added to the Eikon Environment. |
aResourceFile | Resource file that has to be added to the Eikon Environment. |
Returns: Zero, if the resource file is NULL otherwise the offset value defined for this resource file.
TInt | AddLibraryL | ( | TCreateByTypeFunction | aControlFactory | ) | [inline] |
IMPORT_C void | AddPictureFactoryL | ( | MEikPictureFactory & | aFactory | ) |
Adds the picture factory to the set of factories maintained by the Uikon environment.
Parameter | Description |
---|---|
aFactory | The picture factory to add. |
IMPORT_C void | AddSleepingAlertDialogToStackL | ( | CCoeControl * | aControl | ) |
Adds a sleeping dialog to the control stack, with a control stack priority of ECoeStackPriorityAlert.
Sleeping dialogs pre-allocate their resources - they are not initially visible.
Parameter | Description |
---|---|
aControl | The control to add. |
IMPORT_C void | AddSleepingDialogToStackL | ( | CCoeControl * | aControl | ) |
Adds a sleeping dialog to the control stack, with a control stack priority of ECoeStackPriorityDialog.
Sleeping dialogs pre-allocate their resources - they are not initially visible.
Parameter | Description |
---|---|
aControl | The control to add. |
IMPORT_C void | AddWindowShadow | ( | CCoeControl * | aWinArea | ) | [static] |
Adds a window shadow of the standard height to a control.
IMPORT_C void | AlertWin | ( | const TDesC & | aMsg | ) |
Displays the environment's alert window containing a single line message.
Parameter | Description |
---|---|
aMsg | Message to be displayed in the alert window. |
IMPORT_C void | AllocInfoMsg | ( | ) |
Constructs an allocation information message.
The message includes the total number of cells allocated on the current thread's heap and the total space allocated to them.
IMPORT_C const CFont * | AnnotationFont | ( | ) | const |
Gets the standard annotation font for this environment.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
Returns: Pointer to the annotation font.
IMPORT_C CEikAppServer * | AppServer | ( | ) | const |
Gets required application server for running the application.
Returns: Pointer to the application server which is derived from CEikAppServer.
IMPORT_C MEikAppUiFactory * | AppUiFactory | ( | ) | const |
Gets the application UI factory object.
This object implements the MEikAppUiFactory interface.
Returns: App UI factory interface or NULL.
IMPORT_C MEikAppUiFactory * | AppUiFactory | ( | const CEikAppUi & | aAppUi | ) | const |
Gets the application UI factory object for the specified app UI.
If the specified app UI does not exist in this environment, the function returns NULL. Otherwise the function returns an object which implements the MEikAppUiFactory interface.
Parameter | Description |
---|---|
aAppUi | The app UI for this application. |
Returns: The app UI factory object, or NULL if aAppUi does't exist in this environment.
IMPORT_C const CFbsBitmap * | Bitmap | ( | TUid | aUidBmp | ) | const |
Gets the specified bitmap.
This function returns a bitmap from the list of bitmaps by using the UID as an index.
Parameter | Description |
---|---|
aUidBmp | The UID of the bitmap to retrieve. |
Returns: Pointer to the bitmap.
Repositions the root window group in the stacking hierarchy, or pushes it to the back.
Calls to this function are ignored if the autoforward flag is set to ETrue.
Parameter | Description |
---|---|
aForwards | ETrue to reposition the root window group at aPriority. EFalse to push the root window group to the back. |
aPriority | If aForwards is ETrue then this argument determines where the root window group is placed in the stacking hierarchy. |
IMPORT_C void | BusyMsgL | ( | const TDesC & | aDes | ) |
Displays a flashing busy message in the system default corner of the screen.
Parameter | Description |
---|---|
aDes | Message to display. |
IMPORT_C void | BusyMsgL | ( | const TDesC & | aDes, |
TGulAlignment | aCorner | |||
) |
Displays a flashing busy message in the specified corner of the screen.
Parameter | Description |
---|---|
aDes | Message to display. |
aCorner | Corner of the screen in which to display the message. |
IMPORT_C void | BusyMsgL | ( | TInt | aResourceId | ) |
Displays a flashing busy message in the system default corner of the screen.
The message's text is read from resource.
Parameter | Description |
---|---|
aResourceId | ID of the resource that specifies the text to display. |
IMPORT_C void | BusyMsgL | ( | const TDesC & | aDes, |
TTimeIntervalMicroSeconds32 | aInitialDelay | |||
) |
Displays a flashing busy message in the system default corner of the screen for a specific amount of time.
Parameter | Description |
---|---|
aDes | Message to display. |
aInitialDelay | Delay in microseconds before the message is first shown. |
IMPORT_C void | BusyMsgL | ( | const TDesC & | aDes, |
TGulAlignment | aCorner, | |||
TTimeIntervalMicroSeconds32 | aInitialDelay | |||
) |
Displays a flashing busy message for a specific amount of time in the corner of the screen indicated by aCorner.
Parameter | Description |
---|---|
aDes | Message to display. |
aCorner | Corner of the screen in which to display the message. |
aInitialDelay | Delay in microseconds before the message is first shown. |
IMPORT_C void | BusyMsgL | ( | TInt | aResourceId, |
TTimeIntervalMicroSeconds32 | aInitialDelay | |||
) |
Displays a flashing busy message in the system default corner of the screen for a specific amount of time.
The message's text is read from resource.
Parameter | Description |
---|---|
aResourceId | The ID of a text resource specifying the message text. |
aInitialDelay | Delay in microseconds before the message is first shown. |
TRgb | Color | ( | TLogicalColor | aLogicalColor | ) | const [inline] |
Gets the physical (TRgb) colour which corresponds to a logical colour.
Parameter | Description |
---|---|
aLogicalColor | A logical colour value. |
Returns: The physical colour which corresponds to aLogicalColor.
CColorList & | ColorList | ( | ) | const [inline] |
Gets the application's colour list.
The colour list provides member functions to retrieve and modify colours in the list, and to append new arrays of colours to the colour list.
Returns: The application's colour list
IMPORT_C TBool | ConfirmLossOfAllChangesL | ( | ) | const |
Displays a dialog asking the user to confirm that all changes will be lost to the current document, and returns the response.
Returns: Whether the user wants to lose all changes.
IMPORT_C void | ConstructAppFromCommandLineL | ( | const TApaApplicationFactory & | aApplicationFactory, |
const CApaCommandLine & | aCommandLine | |||
) |
Initialises an application
Constructs a new application consisting of a CEikAppUi, a CEikApplication, and a CEikDocument. The new application starts with a new controlling process and runs in this Uikon environment. The new application is passed any command line file using the function CEikAppUi::ProcessCommandParametersL().
See also: TApaApplicationFactory
Parameter | Description |
---|---|
aApplicationFactory | The factory to use to create the application |
aCommandLine | The command line used to initialise the new application. |
IMPORT_C void | ConstructL | ( | ) |
Reimplemented from CCoeEnv::ConstructL()
Second-phase constructor.
This calls the next overload with ETrue as the parameter.
IMPORT_C void | ConstructL | ( | TBool | aInitialFocusState | ) |
Reimplemented from CCoeEnv::ConstructL(TBool)
Second-phase constructor.
Calls the next overload with a default window group ID which will be ignored.
Parameter | Description |
---|---|
aInitialFocusState | The window group's initial focus state. If ETrue, keyboard focus is enabled, if EFalse, keyboard focus is disabled. |
Reimplemented from CCoeEnv::ConstructL(TBool,TInt)
Second-phase constructor.
Parameter | Description |
---|---|
aInitialFocusState | The window group's initial focus state. If ETrue, keyboard focus is enabled, if EFalse, keyboard focus is disabled. |
aWindowGroupID | The window group ID of the parent window |
IMPORT_C TRgb | ControlColor | ( | TLogicalColor | aLogicalColor, |
const CCoeControl & | aControl | |||
) | const |
Gets the physical (TRgb) colour which corresponds to the logical colour specified from the application's colour list.
If the colour of the control specified in aControl has been overridden using CCoeControl::OverrideColorL(), this function will return the overridden colour.
Parameter | Description |
---|---|
aLogicalColor | A logical colour value. |
aControl | A pointer to the control itself. |
Returns: The physical colour which corresponds to aLogicalColor.
CArrayFix< TCreateByTypeFunction > * | ControlFactoryFuncArray | ( | ) | const |
Returns control factory function array (pointer)
IMPORT_C void | ControlStackReadyL | ( | ) |
Called by the framework to finish environment construction once the control stack has been created and is ready.
Loads, allocates and returns a pointer to a bitmap loaded from a multi-bitmap file (.mbm).
If aFileName is an empty TDesC, then a default value of z:.mbm is used. If the default can't be found the alternative default location z:.mbm will be used. If a wildcard character ("*") is specified as the file name, the default application resource file will be used.
If the function leaves it will also display an error dialog to the user.
Parameter | Description |
---|---|
aFileName | File name specifying the bitmap file to load. |
aId | Number of the bitmap in the file. |
Returns: Pointer to the loaded bitmap. Ownership is transferred to the caller.
Loads, allocates and returns a pointer to a bitmap loaded from a multi-bitmap file (.mbm).
If aFileName is an empty TDesC, then a default value of z:.mbm is used. If the default can't be found the alternative default location z:.mbm will be used. If a wildcard character ("*") is specified as the file name, the default application resource file will be used.
Parameter | Description |
---|---|
aFileName | File name specifying the bitmap file to load. |
aId | Number of the bitmap in the file. |
aShowDlgIfErr | If true then the function will also display an error dialog if it leaves. |
Returns: Pointer to the loaded bitmap. Ownership is transferred to the caller.
IMPORT_C CGulIcon * | CreateIconFromMaskedBitmapL | ( | const CApaMaskedBitmap & | aApaMaskedBitmap | ) | [static] |
Creates an icon from a masked bitmap.
The icon is created by copying the image bitmap and mask from the masked bitmap aApaMaskedBitmap. It returns a pointer to the icon and transfers ownership to the caller.
Parameter | Description |
---|---|
aApaMaskedBitmap | The masked bitmap from which the icon is created. |
Returns: Pointer to the icon.
IMPORT_C CGulIcon * | CreateIconL | ( | const TDesC & | aFileName, |
TInt | aBitmapId, | |||
TInt | aMaskId = KErrNotFound | |||
) |
Creates an icon.
The icon is created by loading the image bitmap identified by aBitmapId and the mask identified by aMaskId from the resource file aFileName. It returns a pointer to the icon and transfers ownership.
Parameter | Description |
---|---|
aFileName | The resource file name. If this is zero, the Uikon resource file will be used. If the wildcard character ('*') is specified, the default application resource file will be used. |
aBitmapId | The bitmap ID. |
aMaskId | The bitmap mask ID. |
Returns: Pointer to the created icon.
IMPORT_C CColorList * | CreateSystemColorListL | ( | ) |
Creates and returns a system colour list, which is a palette of standard colours used by the system.
The list is read from a system colour scheme file. The function returns NULL if no such file can be found. In this case, clients are expected to create the list using some other means (typically from a resource file).
Returns: Pointer to the system colour list, or NULL.
IMPORT_C CColorList * | CreateSystemColorListL | ( | const CColorList & | aColorList | ) |
Creates and returns a system colour list, which is a palette of standard colours used by the system, and merges it with the colour list specified. CColorList::AddColorArrayL() should be called before this function.
Parameter | Description |
---|---|
aColorList | The color list to merge in. |
Returns: Pointer to the system colour list.
CColorArray & | CustomColorArray | ( | ) | const [inline] |
Gets the custom colour array.
Returns: The custom colour array.
IMPORT_C TDisplayMode | DefaultDisplayMode | ( | ) | const |
Gets the default display mode for the window server session with the maximum possible number of colours.
Returns: Default display mode.
IMPORT_C const CFont * | DenseFont | ( | ) | const |
Gets the standard dense font for this environment.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
Returns: Pointer to the dense font.
IMPORT_C void | DestroyEnvironment | ( | ) | [virtual] |
Reimplemented from CCoeEnv::DestroyEnvironment()
Framework function
IMPORT_C void | DismissTaskList | ( | ) |
Causes the task list, if displayed, to be closed.
IMPORT_C TErrorValidity | DoGetErrorTextAndTitle | ( | TDes & | aErrorText, |
TInt | aError, | |||
TInt & | aTextId, | |||
TUint & | aFlags, | |||
TDes & | aTitleText, | |||
TBool | aIsMemoryAllocatedByErrResolver = EFalse | |||
) | const |
N.B. This method is also called from the CTextResolver::DoResolveErrorStringL() in the textresolver.cpp, located in the tools/s60_header_compat component, part of the CoreOS agreement.
Parameter | Description |
---|---|
aErrorText | On return, contains the error text. |
aError | Error number. |
aTextId | Output parameter - Error Text Resource Id. |
aFlags | Output parameter - Error Resource Flag. |
aTitleText | On return, contains the title text of the error. |
aIsMemoryAllocatedByErrResolver | is mainly used by the CTextResolver::DoResolveErrorStringL() to indicate that memory for error text is unlimited, ie., the memory for the error text is allocated by the text resolver. By default it is EFalse. |
Returns: EErrorNumValid if the error code is valid, EErrorNumInvalid if the error code is invalid.
IMPORT_C TBool | DocNameIsAFile | ( | ) | const |
Tests whether the document name is a file.
Returns: ETrue if the document name is a file. EFalse otherwise.
IMPORT_C void | DrawCursor | ( | const CCoeControl * | aControl, |
const TPoint & | aPosition, | |||
TInt | aWidth | |||
) |
Calls the other overload of DrawCursor() using the environment's standard screen font for the cursor's ascent and height.
Parameter | Description |
---|---|
aControl | Control to draw in. |
aPosition | Position of the cursor's baseline in the control's co-ordinate space. |
aWidth | Cursor width. |
IMPORT_C void | DrawCursor | ( | const CCoeControl * | aControl, |
const TPoint & | aPosition, | |||
TInt | aWidth, | |||
TInt | aAscent, | |||
TInt | aHeight | |||
) |
Draws the text cursor into a control with the specified position and width.
The cursor's height and ascent are by default suitable for this CEikonEnv's normal font. If aControl is not focused when this function is called, a panic is raised.
Parameter | Description |
---|---|
aControl | Control to draw into. |
aPosition | Position of the cursor's baseline in the control's co-ordinate space. |
aWidth | Cursor width. |
aAscent | Cursor ascent. |
aHeight | Cursor height. |
IMPORT_C MEikPictureFactory * | ExtendedPictureFactory | ( | TUid | aPictureType | ) | const |
Gets a picture factory object in the environment which supports the specified picture type.
If none exists, then the function returns NULL.
Parameter | Description |
---|---|
aPictureType | The picture type. |
Returns: A picture factory which supports the picture type aPictureType. NULL if no such factory exists in this environment.
CBase * | Extension | ( | ) | const [inline] |
DeprecatedWARNING: For internal use ONLY. Compatibility is not guaranteed in future releases.
IMPORT_C const CFont * | Font | ( | const TLogicalFont & | aLogicalFont | ) | const |
Gets the nearest match to the specified font.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
The return value is never NULL.
Parameter | Description |
---|---|
aLogicalFont | The font for which a match is sought. |
Returns: Pointer to the font that most closely matches aLogicalFont.
IMPORT_C void | FservAllocInfoMsg | ( | ) |
Creates a file server allocation information message from resource.
The message indicates the number of resources currently open for the file server session.
IMPORT_C TErrorValidity | GetErrorText | ( | TDes & | aErrorText, |
TInt | aError, | |||
TUid | aAppUid | |||
) | const |
Gets the text for an error code, in the specified application.
It returns whether the error code is valid or not.
Parameter | Description |
---|---|
aErrorText | On return, contains the error text. |
aError | Error number. |
aAppUid | Application UID. |
Returns: EErrorNumValid if the error code is valid, EErrorNumInvalid if the error code is invalid.
IMPORT_C TErrorValidity | GetErrorTextAndTitle | ( | TDes & | aErrorText, |
TInt | aError, | |||
TDes & | aTitleText | |||
) | const |
Gets the text for an error code, in the specified application.
It returns whether the error code is valid or not.
Parameter | Description |
---|---|
aErrorText | On return, contains the error text. |
aError | Error number. |
aTitleText | On return, contains the title text of the error. |
Returns: EErrorNumValid if the error code is valid, EErrorNumInvalid if the error code is invalid.
IMPORT_C void | GetPrinterNamesL | ( | CPrinterModelList * | aModelNameList, |
CDesCArray & | aPrinterNameList | |||
) | [static] |
Gets the printer names from a CPrinterModelList.
The printer names are returned through aPrinterNameList.
Parameter | Description |
---|---|
aModelNameList | Input list of printer model information. |
aPrinterNameList | On return, contains all the printer names from aModelNameList. |
IMPORT_C void | HandleError | ( | TInt | aError | ) | [virtual] |
Reimplemented from CCoeEnv::HandleError(TInt)
Handles an error that has occurred in the application.
It first offers the error to the app UI's HandleError() function. If that does not handle it, this function displays an alert window or an info message containing some appropriate text, read from a system resource file.
Parameter | Description |
---|---|
aError | One of the standard system error codes. |
Handles the specified error.
This function reads the error context text from the resource identified by aContextResourceId.
Parameter | Description |
---|---|
aError | ID of the error to handle. |
aContextResourceId | ID of the resource from which the context is read. |
IMPORT_C void | HideCursor | ( | const CCoeControl * | aControl | ) |
Removes the text cursor from a control.
In debug builds, a panic is raised when this function is called on a control which is not the cursor owner.
Parameter | Description |
---|---|
aControl | Control owning the cursor. |
IMPORT_C MEikInfoDialog * | InfoDialog | ( | ) | const |
Gets the info dialog for this environment.
Returns: The info dialog.
IMPORT_C void | InfoMsg | ( | const TDesC & | aDes | ) |
Displays a message in the system default corner of the screen.
The message disappears after a few seconds.
Parameter | Description |
---|---|
aDes | The message to display. |
IMPORT_C void | InfoMsg | ( | TInt | aResourceId, |
... | ||||
) |
Displays a message in the system default corner of the screen.
A TBUF resource string is used to build the message at run-time from arbitrary data in a similar way to C's printf(). The message disappears after a few seconds.
Parameter | Description |
---|---|
aResourceId | ID of a TBUF resource used to hold the string. |
Displays a message in the system default corner of the screen.
A TBUF resource string is used to build the message at run-time from arbitrary data in a similar way to C's printf(). The message disappears after a few seconds.
Parameter | Description |
---|---|
aResourceId | ID of a TBUF resource used to hold the string. |
aList | List of values to be formatted. |
IMPORT_C void | InfoMsgCancel | ( | ) |
Cancels the currently displaying information message.
IMPORT_C void | InfoMsgWithAlignment | ( | TGulAlignment | aCorner, |
const TDesC & | aDes | |||
) |
Displays a message in the specified corner of the screen.
The message disappears after a few seconds.
Parameter | Description |
---|---|
aCorner | The screen corner the message is displayed in. |
aDes | The message to display. |
IMPORT_C void | InfoMsgWithAlignment | ( | TGulAlignment | aCorner, |
TInt | aResourceId, | |||
... | ||||
) |
Displays a message in the specified corner of the screen.
The information message is built at run-time from a formatting string defined as a TBUF resource and a list of arbitrary data.
Parameter | Description |
---|---|
aCorner | The corner of the screen the message is displayed in. |
aResourceId | ID of a TBUF resource used to hold the string. |
IMPORT_C void | InfoMsgWithAlignment | ( | TGulAlignment | aCorner, |
TInt | aResourceId, | |||
VA_LIST | aList | |||
) |
Displays a message in the specified corner of the screen.
The information message is built at run-time from a formatting string defined as a TBUF resource and a list of arbitrary data.
Parameter | Description |
---|---|
aCorner | The corner of the screen the message is displayed in. |
aResourceId | ID of a TBUF resource used to hold the string. |
aList | List of values to be formatted. |
IMPORT_C void | InfoMsgWithAlignmentAndDuration | ( | TGulAlignment | aCorner, |
const TDesC & | aDes, | |||
TTimeIntervalMicroSeconds32 | aDuration | |||
) |
Displays an info message with a specified alignment for a specified period.
The text displayed is supplied in a descriptor argument, and aligned using the aCorner parameter.
Parameter | Description |
---|---|
aCorner | The screen corner the message is displayed in. |
aDes | Message to display. |
aDuration | Duration of message. |
IMPORT_C void | InfoMsgWithAlignmentAndDuration | ( | TGulAlignment | aCorner, |
TInt | aResourceId, | |||
TTimeIntervalMicroSeconds32 | aDuration, | |||
... | ||||
) |
Displays an info message with a specified alignment for a specified period.
The text displayed is supplied in a resource file, as a string with some formatting information for extra arguments. These extra arguments are supplied through the variable argument list which is also passed into this function. The text is aligned using the aCorner parameter.
Parameter | Description |
---|---|
aCorner | The screen corner the message is displayed in. |
aResourceId | ID of a TBUF resource used to contain the string. |
aDuration | Duration of message. |
IMPORT_C void | InfoMsgWithAlignmentAndDuration | ( | TGulAlignment | aCorner, |
TInt | aResourceId, | |||
TTimeIntervalMicroSeconds32 | aDuration, | |||
VA_LIST | aList | |||
) |
Displays an info message with a specified alignment for a specified period.
The text displayed is supplied in a resource file, as a string with some formatting information. Values for the formatting information are supplied as extra arguments. These extra arguments are packaged in a VA_LIST object which is also passed into this function. The text is aligned using the aCorner parameter.
Parameter | Description |
---|---|
aCorner | The screen corner the message is displayed in. |
aResourceId | ID of a TBUF resource used to contain the string. |
aDuration | Duration of message. |
aList | List of values. |
IMPORT_C void | InfoMsgWithDuration | ( | const TDesC & | aDes, |
TTimeIntervalMicroSeconds32 | aDuration | |||
) |
Displays an info message for a specified period.
Parameter | Description |
---|---|
aDes | Message to display. |
aDuration | Duration of message. |
IMPORT_C void | InfoMsgWithDuration | ( | TInt | aResourceId, |
TTimeIntervalMicroSeconds32 | aDuration, | |||
... | ||||
) |
Displays an info message for a specified period.
The text displayed is supplied in a resource file, as a string with some formatting information for extra arguments. These extra arguments are supplied through the variable argument list which is also passed into this function.
Parameter | Description |
---|---|
aResourceId | ID of a TBUF resource used to hold the string. |
aDuration | Duration of the message. |
IMPORT_C void | InfoMsgWithDuration | ( | TInt | aResourceId, |
TTimeIntervalMicroSeconds32 | aDuration, | |||
VA_LIST | aList | |||
) |
Displays an info message for a specified period.
The text displayed is supplied in a resource file, as a string with some formatting information. Values for the formatting information are supplied as extra arguments. These extra arguments are packaged in a VA_LIST object which is also passed into this function.
Parameter | Description |
---|---|
aResourceId | ID of a TBUF resource used to hold the string. |
aDuration | Duration of message. |
aList | List of values. |
Displays a modal information dialog with a one or two-line info message read from the passed resources.
Parameter | Description |
---|---|
aFirstLineId | ID of the resource describing the first line. |
aSecondLineId | ID of the resource describing the second line. |
IMPORT_C TBool | IsBusy | ( | ) | const |
Tests whether the application is marked as busy.
Returns: ETrue if the application is busy, EFalse otherwise.
IMPORT_C TBool | IsSystem | ( | ) | const |
Tests the value of the system attribute.
Returns: ETrue if the system attribute is set, otherwise EFalse.
Returns the indexed keypress label. A keypress label is the text that is displayed on some buttons to identify which key press activates them. Examples might include Esc, Enter, Tab. Keypress labels are read from a resource file and are UI-specific.
Parameter | Description |
---|---|
aIndex | The position of the element within the array of keypress labels. |
Returns: The keypress label.
IMPORT_C void | LaunchPopupMenuL | ( | TInt | aResourceId, |
const TPoint & | aTargetPos, | |||
TPopupTargetPosType | aTargetType = EPopupTargetTopLeft, | |||
const CEikHotKeyTable * | aHotKeyTable = NULL | |||
) |
Allows an application to launch a popup menu, by calling the app UI's LaunchPopupMenuL() function.
Parameter | Description |
---|---|
aResourceId | ID of the resource that defines the menu to be launched. |
aTargetPos | Position of the corner of the menu identified by aTargetType. |
aTargetType | The corner of the menu by which the menu will be positioned. |
aHotKeyTable | Optional menu hotkey table. |
IMPORT_C void | LeaveWithInfoMsg | ( | TInt | aResourceId, |
... | ||||
) |
Displays a formatted information message and then leaves.
Parameter | Description |
---|---|
aResourceId | ID of a TBUF resource used to hold the string. |
IMPORT_C const CFont * | LegendFont | ( | ) | const |
Gets the standard legend font for this environment.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
Returns: Pointer to the legend font.
IMPORT_C CCharFormatLayer * | NewDefaultCharFormatLayerL | ( | ) | [static] |
Creates a default character format layer.
Returns: A new default CCharFormatLayer. The caller takes ownership.
IMPORT_C CParaFormatLayer * | NewDefaultParaFormatLayerL | ( | ) | [static] |
Creates a default paragraph format layer suitable for multiple lines of text.
It uses the default inter line spacing, which is UI specific.
Returns: A new CParaFormatLayer suitable for text that has more than one line. The caller takes ownership.
IMPORT_C CPrintSetup * | NewDefaultPrintSetupL | ( | ) |
Creates and returns a pointer to a new default printer setup object.
Returns: A default printer setup object.
IMPORT_C CParaFormatLayer * | NewDefaultSingleLineParaFormatLayerL | ( | ) | [static] |
Creates a default paragraph format layer suitable for a single line of text.
It has an inter line spacing of zero.
Returns: A new CParaFormatLayer suitable for a single line of text. The caller takes ownership.
Notifies this environment of an idle error.
This function reads the error context text from the resource identified by aContextResourceId. Calling this method will only trigger one error dialog per minute. Calling it any more frequent will result in no action.
Parameter | Description |
---|---|
aError | ID of the idle error. |
aContextResourceId | ID of the resource from which the context text is read. |
IMPORT_C void | NotifyIdleErrorWhileRedrawing | ( | TInt | aError | ) |
Notifies this environment that an idle error occurred while redrawing was in progress.
Parameter | Description |
---|---|
aError | ID of the idle error. |
TChar | NudgeCharMinus | ( | ) | const [inline] |
Gets the minus nudge character, this could be the left arrow for example.
Returns: Minus nudge character.
TChar | NudgeCharPlus | ( | ) | const [inline] |
Gets the plus nudge character, this could be the right arrow for example.
Returns: Plus nudge character.
IMPORT_C const CFbsBitmap * | OptionBitmap | ( | ) | const |
Gets the bitmap that is used by horizontal option buttons in this environment.
Returns: A pointer to the option bitmap.
IMPORT_C MPictureFactory * | PictureFactory | ( | ) | const |
Gets the picture factory for this environment.
Returns: The picture factory.
IMPORT_C CColorList * | PopulateColorArrayL | ( | ) |
Creates and populates a colour list, a palette of standard colours used by the system. If the first attempt fails a separate executable, Z:\SYS\BIN\UPDATESYSTEMCOLORLIST.EXE, is run to update system colours.
Returns: populated colour list. Ownership is passed to caller.
void | PostAppUiInitializeL | ( | ) |
Calls (virtual) PostAppUiInitializeL on all loaded libraries.
See also: CEikLibrary::PostAppUiInitializeL
CEikProcess * | Process | ( | ) | const [inline] |
Gets the Uikon process that manages the files of applications started in this environment.
Returns: The CEikProcess object.
IMPORT_C MEikInfoDialog * | QueryDialog | ( | ) | const |
Gets the query dialog for this environment.
Returns: The query dialog.
Requests a yes or no response from the user using a modal query dialog.
The query text is read from the passed resource IDs.
User input cannot continue outside a modal dialog until the dialog is dismissed, although applications can be switched.
Parameter | Description |
---|---|
aFirstLineId | ID of resource describing the first line. |
aSecondLineId | ID of resource describing the second line. |
Returns: User's response to the question, either ETrue or EFalse.
IMPORT_C void | RemoveFromStack | ( | CCoeControl * | aControl | ) |
Removes a control from the control stack.
Parameter | Description |
---|---|
aControl | The control to remove. |
IMPORT_C void | RemoveLibrary | ( | TCreateByTypeFunction | aControlFactory, |
TInt | aResourceFileOffset | |||
) |
void | RemoveLibrary | ( | TCreateByTypeFunction | aControlFactory | ) | [inline] |
IMPORT_C void | RemovePictureFactory | ( | TUid | aFactoryId | ) |
Removes the specified picture factory, if it exists, from the set of picture factories owned by the Uikon environment.
Parameter | Description |
---|---|
aFactoryId | The Id of the picture factory to be removed. |
Displays an error message appropriate to the error code aError in an alert window. The message is read from a resource file and has a maximum of 256 characters.
Parameter | Description |
---|---|
aError | Error code. |
aAppUid | Application UID. By default, this is KNullUid. If a non null UID is specified and the error code is not known to UIKON, then the UID enables an application-specific error resource file to be scanned (if one exists) to try to resolve the error. |
IMPORT_C TBool | RespondsToShutdownEvent | ( | ) | const |
Tests whether the application responds to shutdown events.
Returns: ETrue if the application responds to shutdown events, EFalse otherwise.
IMPORT_C TBool | RespondsToSwitchFilesEvent | ( | ) | const |
Tests whether an application responds to switch files events.
Returns: ETrue if the application responds to switch files events, EFalse otherwise.
IMPORT_C void | RouseSleepingDialog | ( | CCoeControl * | aControl, |
TBool | aRoused | |||
) |
Sets a sleeping dialog's state.
Parameter | Description |
---|---|
aControl | The sleeping dialog to rouse or put to sleep. |
aRoused | ETrue to rouse aControl, EFalse to put it to sleep. |
Sends the event to the Eikon Server.
Parameter | Description |
---|---|
aEvent | Event that has to be sent to Eikon Server. |
aPtr | Pointer to the message that has to be sent to Eikon Server. |
aLength | Length of the message that has to be sent to Eikon Server. |
IMPORT_C void | SetAlertWin | ( | MEikAlertWin * | aAlertWin | ) |
Sets the enviroment's alert window.
Parameter | Description |
---|---|
aAlertWin | A custom alert window. |
IMPORT_C void | SetAppUiFactoryL | ( | MEikAppUiFactory * | aAppUiFactory | ) |
IMPORT_C void | SetAutoForwarding | ( | TBool | aAutoBringToForeground | ) |
Use this method to set whether the application's window group shall be automatically brought to the foreground when the user taps on it.
IMPORT_C void | SetBusy | ( | TBool | aBusy | ) |
Sets the application's busy state.
Parameter | Description |
---|---|
aBusy | ETrue to set as busy, EFalse otherwise. |
void | SetCDlgDialogFactory | ( | MEikCDlgDialogFactory * | aDialogFactory | ) | [inline] |
void | SetColor | ( | TLogicalColor | aLogicalColor, |
TRgb | aColor | |||
) | [inline] |
Sets a mapping in the application's colour list between the logical and physical colours specified.
Parameter | Description |
---|---|
aLogicalColor | A logical colour value. |
aColor | A physical colour value. |
IMPORT_C void | SetDebugKeys | ( | MEikDebugKeys * | aDebugKeys | ) |
Sets a debug keys object. This function enables the default debug keys to be overridden with custom ones. The debug keys object only receives key events in debug builds or, in release builds, if the CEikDebugPreferences::EFlagDebugKeysOn flag has been set.
Must be called before the environment object has been fully constructed, e.g. from a control (widget) library initialisation function, or it will have no effect. Must be called only once.
Parameter | Description |
---|---|
aDebugKeys | A custom debug keys object. |
IMPORT_C void | SetDocNameIsAFile | ( | TBool | aDocNameIsAFile | ) |
Sets whether a document name is a file.
Parameter | Description |
---|---|
aDocNameIsAFile | ETrue to set the document name as a file, EFalse otherwise. |
void | SetFileDialogFactory | ( | MEikFileDialogFactory * | aDialogFactory | ) | [inline] |
IMPORT_C void | SetInfoDialog | ( | MEikInfoDialog * | aInfoDialog | ) |
Sets the dialog.
Parameter | Description |
---|---|
aInfoDialog | The information dialog. |
void | SetPrintDialogFactory | ( | MEikPrintDialogFactory * | aDialogFactory | ) | [inline] |
IMPORT_C void | SetQueryDialog | ( | MEikInfoDialog * | aQueryDialog | ) |
Sets the query dialog.
Parameter | Description |
---|---|
aQueryDialog | The query dialog. |
IMPORT_C void | SetRequestInfoDialogFunc | ( | TRequestDialogFunc | aInfoDialogFunc | ) |
Sets the request information dialog.
Parameter | Description |
---|---|
aInfoDialogFunc | The request information dialog. |
IMPORT_C void | SetRequestQueryDialogFunc | ( | TRequestDialogFunc | aQueryDialogFunc | ) |
Sets the request query dialog.
Parameter | Description |
---|---|
aQueryDialogFunc | Request query dialog. |
IMPORT_C void | SetRespondsToShutdownEvent | ( | TBool | aRespondsToShutdownEvent | ) |
Sets whether the application responds to shutdown events.
Parameter | Description |
---|---|
aRespondsToShutdownEvent | ETrue if the application responds to shutdown events, EFalse otherwise. |
IMPORT_C void | SetRespondsToSwitchFilesEvent | ( | TBool | aRespondsToSwitchFilesEvent | ) |
Sets whether the application responds to switch files events.
Parameter | Description |
---|---|
aRespondsToSwitchFilesEvent | ETrue if the application responds to switch files events, EFalse otherwise. |
IMPORT_C void | SetSystem | ( | TBool | aSystem | ) |
Sets the application's system attribute.
While the system attribute is set, the application cannot be closed down e.g. by using the TApaTask::EndTask function unless the requester has the capability PowerMgmt.
Parameter | Description |
---|---|
aSystem | ETrue to set the system attribute, EFalse to unset it. |
IMPORT_C void | SetVerboseInfoReporting | ( | TBool | aVerbose | ) |
Sets the Verbose Information Reporting state.
Parameter | Description |
---|---|
aVerbose | ETrue to set Verbose Information Reporting, EFalse otherwise. |
IMPORT_C TBool | StartedAsServerApp | ( | ) | const |
Gets whether server is required or not.
Returns: ETrue if application requires a server, EFalse otherwise.
CEikonEnv * | Static | ( | ) | [static, inline] |
Reimplemented from CCoeEnv::Static()
Gets the CEikonEnv maintained by the framework for the application.
This function should never be run in a thread where such a static Uikon environment does not exist. Code that may run on the server side of an application server is one such case.
See also: CCoeEnv::Static()
Returns: A static CEikonEnv.
IMPORT_C const CFont * | SymbolFont | ( | ) | const |
Gets the standard symbol font for this environment.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
Returns: Pointer to the symbol font.
IMPORT_C CCharFormatLayer * | SystemCharFormatLayerL | ( | ) |
Gets the character format layer, if it exists.
If it does not exist, it calls CEikonEnv::NewDefaultCharFormatLayerL() to create a new one.
Returns: Character format layer.
IMPORT_C CParaFormatLayer * | SystemParaFormatLayerL | ( | ) |
Gets the paragraph format layer if it exists.
If it does not exist, it calls CEikonEnv::NewDefaultParaFormatLayerL() to create a new one.
Returns: Paragraph format layer.
IMPORT_C CParaFormatLayer * | SystemSingleLineParaFormatLayerL | ( | ) |
Gets the single line paragraph format layer if it exists.
If one does not exist, it calls CEikonEnv::NewDefaultSingleLineParaFormatLayerL() to create a new one.
Returns: Single line paragraph format layer.
IMPORT_C const CFont * | TitleFont | ( | ) | const |
Gets the standard title font for this environment.
It is highly recommended to use CCoeControl::ScreenFont() instead of this function.
See also: CCoeControl::ScreenFont() CCoeFontProvider
Returns: Pointer to the title font.
IMPORT_C void | UpdateSystemColorListL | ( | const CColorList & | aColorList | ) |
Replaces the system colour list with the list specified.
If no system colour list exists, one is created.
Parameter | Description |
---|---|
aColorList | The new colour list. |
IMPORT_C void | UpdateSystemFontsL | ( | ) |
Calls Laf implementation of UpdateSystemFontsL() to update local array of system fonts
IMPORT_C void | UpdateTaskNameL | ( | ) |
Updates the process and thread name from the caption.
IMPORT_C void | VerboseInfoMsg | ( | const TDesC & | aDes | ) |
Displays an information message if verbose information reporting has been set.
The message is not displayed if verbose information reporting has not been set.
Parameter | Description |
---|---|
aDes | Message to display. |
IMPORT_C TVersion | Version | ( | ) | [static] |
Reimplemented from CCoeEnv::Version()
Gets the Uikon version that is currently running.
Returns: The Uikon version.