Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: coemain.h
Link against: cone.lib

Class CCoeEnv

CCoeEnv

Support

Supported from 5.0

Description

Control environment.

CCoeEnv provides an active environment for creating controls. It implements active objects and an active scheduler, which provide access to the window server, simplifying the API for application programs. It also provides utility functions that are useful to many applications.

When a standard event occurs, the active scheduler calls CCoeEnv::RunL(). When a redraw event occurs, it calls CCoeRedrawer::RunL(). Priority key events must be accessed using the Window Server API directly.

Note:

Derivation

CActiveThe core class of the active object abstraction
CBaseBase class for all classes to be instantiated on the heap
CCoeEnvControl environment

Defined in CCoeEnv:
AddFepObserverL(), AddFocusObserverL(), AddForegroundObserverL(), AddMessageObserverL(), AddObserverOfLoadedFepL(), AddResourceFileL(), AllocReadResourceAsDes16L(), AllocReadResourceAsDes16LC(), AllocReadResourceAsDes8L(), AllocReadResourceAsDes8LC(), AllocReadResourceL(), AllocReadResourceLC(), AppUi(), BringOwnerToFront(), CCoeEnv(), ConstructL(), CreateDeviceFontL(), CreateGcL(), CreateResourceReaderLC(), CreateScreenFontL(), DeleteResourceFile(), DestroyEnvironment(), DestroyScreen(), DisableExitChecks(), ErrorContextText(), ErrorText(), ExecuteD(), ExecuteFepSettingsDialogL(), Fep(), FepUid(), FileNamesOfAvailableFepsL(), Flush(), ForEachFepObserverCall(), Format128(), Format256(), FsSession(), HandleError(), InitSystemFontsL(), InputCapabilitiesChanged(), InstallFepL(), IsRedrawEventPending(), IsWservEventPending(), LastEvent(), LeaveWithErrorText(), NameOfInstalledFepL(), NormalFont(), PrepareToExit(), ReadDesC16ArrayResourceL(), ReadDesC8ArrayResourceL(), ReadDesCArrayResourceL(), ReadResource(), ReadResourceAsDes16(), ReadResourceAsDes8(), ReleaseScreenFont(), RemoveFepObserver(), RemoveFocusObserver(), RemoveForegroundObserver(), RemoveMessageObserver(), RemoveObserverOfLoadedFep(), ResourceFileVersionNumber(), RootWin(), ScreenDevice(), SetAppUi(), SimulateKeyEventL(), Static(), SuppressNextFlush(), SwapSystemGc(), SystemGc(), Version(), WsSession(), ~CCoeEnv()

Inherited from CActive:
Cancel(), Deque(), DoCancel(), EPriorityHigh, EPriorityIdle, EPriorityLow, EPriorityStandard, EPriorityUserInput, IsActive(), IsAdded(), Priority(), RunError(), RunL(), SetActive(), SetPriority(), TPriority, iStatus

Inherited from CBase:
operator new()


Construction and destruction

Description

Standard GUI applications do not generally need to use the functions in this section, as they are encapsulated within CEikonEnv.


CCoeEnv()

CCoeEnv();

Description

Default constructor.

Constructs an incomplete CCoeEnv. Construction of the CCoeEnv is not complete until ConstructL() has been called.

This function panics with a category name of CONE, reason number 2 if the application already owns a CCoeEnv.


ConstructL()

void ConstructL();

Description

Completes the construction of the CCoeEnv object.

Until v5.1, the function fully completed the construction of the CCoeEnv. It creates an active scheduler, and adds active objects to it for standard and redraw events. The active scheduler is not started, however, and no events are received, until ExecuteD() is called. ConstructL() also does the following:

After v5.1 this function changed behaviour, and completes the construction by calling the function overload (below) — specifying ETrue as the initial focus state.


ConstructL()

void ConstructL(TBool aInitialFocusState);

Support

Supported from 6.0

Description

Completes the construction of the CCoeEnv.

It is called by the previous constructor CCoeEnv::ConstructL(), with aInitialFocusState set to ETrue.

This function creates an active scheduler, and adds active objects to it for standard and redraw events. The active scheduler is not started, however, and no events are received, until ExecuteD() is called. It also does the following:

The window group is constructed with the initial focus state aInitialFocusState, which automatically takes keyboard focus when it is created.

Parameters

TBool aInitialFocusState

Window group initial focus state. If ETrue, keyboard focus is enabled, otherwise keyboard focus is disabled.


~CCoeEnv()

~CCoeEnv();

Description

Destructor.

This function deletes any resources owned by the CCoeEnv that were not deleted by DestroyEnvironment().

[Top]


Initialisation and termination

Description

Standard GUI applications do not generally need to use the functions in this section, as they are encapsulated within CEikonEnv.


ExecuteD()

void ExecuteD();

Description

Launches the application.

This function starts the active scheduler owned by the CCoeEnv, enabling the application to start receiving events from the window server. It forms the outer loop of all Control Environment applications.


SetAppUi()

CCoeAppUiBase* SetAppUi(CCoeAppUiBase* aAppUi);

Description

Sets the application's user interface object.

Standard GUI applications do not need to call this function, as the framework sets the app UI, during start up, to be the CEikAppUi-derived object created by the application.

Parameters

CCoeAppUiBase* aAppUi

The app UI for this application.

Return value

CCoeAppUiBase*

The app UI previously owned by this application, or NULL if this is the first time its app UI has been set.


AppUi()

CCoeAppUiBase* AppUi() const;

Description

Gets the application UI owned by this application.

Return value

CCoeAppUiBase*

Pointer to the app UI owned by the application.


InitSystemFontsL()

private: virtual void InitSystemFontsL();

Description

Initialises system fonts.

This function is called by ConstructL() during the construction of a CCoeEnv. The default implementation creates only the notmal control environment font, but this function may be overridden to create other fonts.


PrepareToExit()

void PrepareToExit();

Description

Prepares for the exit of the application.

The function is called from ExecuteD() after the active scheduler's wait loop terminates, but before the environment is destroyed.


DestroyEnvironment()

virtual void DestroyEnvironment();

Description

Deletes several resources owned by the CCoeEnv object.

This includes; the app UI, the system GC, and the active object which receives redraw events. It also closes the window group, the connection to the window server, and the connection to the file server.

The function is called from ExecuteD() when the active scheduler's wait loop terminates.

[Top]


Accessing the window server


WsSession()

RWsSession& WsSession() const;

Description

Gets the window server session owned by the application.

This provides access to window server functions not directly accessible via the UI control framework.

Return value

RWsSession&

The window server session opened by the application.


RootWin()

RWindowGroup& RootWin() const;

Description

Gets the application's window group.

Note:

Return value

RWindowGroup&

The application's window group.


BringOwnerToFront()

void BringOwnerToFront();

Description

Brings the application's owning window group to the front of the screen and gives it keyboard focus.

This is done by giving the owning window group an ordinal position of zero.


Flush()

void Flush(TTimeIntervalMicroSeconds32 aDelay=0);

Description

Flushes the client-side window server buffer.

The function does this by first calling RWsSession::Flush(), and then User::After(aDelay) — which puts the current process in a sleep state for the time interval given by aDelay.

Parameters

TTimeIntervalMicroSeconds32 aDelay

Delay for which to sleep the current process after flushing the window server buffer. By default the delay is zero.


SuppressNextFlush()

void SuppressNextFlush();

Description

Suppresses the next flush of the active scheduler queue.

It prevents the active scheduler automatically flushing it's window server session the next time that a non-CCoeEnv object runs. After the active object has run, the active scheduler reverts back to its normal behaviour — flushing after each non-CCoeEnv RunL().

[Top]


System graphics context functions


SystemGc()

CWindowGc& SystemGc() const;

Description

Gets the system graphics context.

This is the graphics contexts typically used for drawing controls, but an alternative graphics context can be created if required using CreateGcL().

Return value

CWindowGc&

The system graphics context.


SwapSystemGc()

CWindowGc* SwapSystemGc(CWindowGc* aGc);

Description

Sets the new system graphics context.

The function returns a pointer to the old system graphics context.

Parameters

CWindowGc* aGc

The new graphics context.

Return value

CWindowGc*

A pointer to the old graphics context.


CreateGcL()

CWindowGc* CreateGcL();

Description

Fully constructs a new graphics context.

CCoeEnv calls this function during construction to create the system graphics context, which can be accessed using SystemGc(). Hence the system graphics context is always available.

Return value

CWindowGc*

A new graphics context.

See also:

[Top]


Accessing the file server


FsSession()

RFs& FsSession() const;

Description

Gets the file server session owned by this CCoeEnv.

This session is normally only used for accessing the application's resource file.

Return value

RFs&

The file server session owned by this CCoeEnv.

[Top]


Accessing the screen device


ScreenDevice()

CWsScreenDevice* ScreenDevice() const;

Description

Gets the default screen device owned by this CCoeEnv.

This is typically used as the standard screen device for the CCoeEnv's application.

Return value

CWsScreenDevice*

The default screen device owned by this CCoeEnv.


DestroyScreen()

protected: virtual void DestroyScreen();

Description

Destroys screen device.

By default this function simply deletes the screen device owned by this CCoeEnv. However, this function may also be overridden by subclasses.

This function is called by DestroyEnvironment().

[Top]


Font utilities

Description

In addition to the font utilities provided by CCoeEnv, GUI applications can access many others which are provided by CEikEnv.


NormalFont()

const CFont* NormalFont() const;

Description

Gets the normal environment font.

This is the font created during construction of the control environment.

Return value

CFont*

Pointer to the normal environment font.

See also:


CreateDeviceFontL()

CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);

Description

Creates a font for the specified graphics device.

If you wish to use the default screen device as the graphics device, use CreateScreenFontL() instead of this function.

This function calls GetNearestFontInTwips() on the graphics device given by aDevice, passing it the font defined by aFontSpec.

All fonts should be released, using MGraphicsDeviceMap::ReleaseFont(), when they are no longer required.

Parameters

CGraphicsDevice* aDevice

The graphics device for which to create the font.

const TFontSpec& aFontSpec

The font specification.

Return value

CFbsFont*

The new font.


CreateScreenFontL()

CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);

Description

Creates a font for the default graphics device, based on the specified TFontSpec.

This function calls CreateDeviceFontL() passing the default screen device, owned by this CCoeEnv, as the value for the graphics device for which to create the font. All fonts created using this function should be released using ReleaseScreenFont() when they are no longer required.

Parameters

const TFontSpec& aFontSpec

The font specification.

Return value

CFbsFont*

The font.


ReleaseScreenFont()

void ReleaseScreenFont(CFont* aFont) const;

Description

Frees all resources used by the font.

This function should be used to release a font when the font is no longer required. Fonts are created using CreateScreenFontL().

Parameters

CFont* aFont

The font to be released.

[Top]


Resource readers and resource files

Description

This section describes CCoeEnv's utility functions for reading resource data from resource files.


AddResourceFileL()

TInt AddResourceFileL(const TDesC& aFileName);

Description

Adds the specified resource file to the list maintained by CCoeEnv.

Note:

Parameters

const TDesC& aFileName

The resource file name.

Return value

TInt

Contains the offset value defined for this resource file.

Panic codes

CONE 15

The resource file has no NAME statement (i.e. has no offset) .

See also:


DeleteResourceFile()

void DeleteResourceFile(TInt aOffset);

Description

Deletes the specified resource file from the list maintained by CCoeEnv.

Parameters

TInt aOffset

The offset value defined for the resource file to delete

Panic codes

CONE 13

The specified resource file does not exist in the list.


ReadResource()

void ReadResource(TDes& aDes,TInt aResourceId) const;

Description

Reads a resource into a descriptor.

The descriptor must be long enough to contain the entire resource. No memory is allocated by this function.

If the read fails the function sets an error condition and performs any cleanup required. The error condition causes the GUI to launch an alert window.

Parameters

TDes& aDes

On return, contains the resource.

TInt aResourceId

The numeric ID of the resource to be read.

See also:


ReadResourceAsDes16()

void ReadResourceAsDes16(TDes16& aDes,TInt aResourceId) const;

Description

Reads a resource into a 16 bit descriptor.

The descriptor must be long enough to contain the entire resource. No memory is allocated by this function.

If the read fails the function sets an error condition and performs any cleanup required. The error condition causes the GUI to launch an alert window.

Parameters

TDes16& aDes

On return, contains the read resource.

TInt aResourceId

The numeric ID of the resource to be read.

See also:


ReadResourceAsDes8()

void ReadResourceAsDes8(TDes8& aDes,TInt aResourceId) const;

Description

Reads a resource into an 8 bit descriptor.

The descriptor must be long enough to contain the entire resource. No memory is allocated by this function.

If the read fails the function sets an error condition and performs any cleanup required. The error condition causes the GUI to launch an alert window.

Parameters

TDes8& aDes

On return, contains the read resource.

TInt aResourceId

The numeric ID of the resource to be read.

See also:


AllocReadResourceL()

HBufC* AllocReadResourceL(TInt aResourceId) const;

Description

Reads a specified resource into a heap descriptor, allocating memory for the descriptor.

Note:

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC*

Pointer to a heap descriptor containing the resource.

See also:


AllocReadResourceLC()

HBufC* AllocReadResourceLC(TInt aResourceId) const;

Description

Reads a specified resource into a heap descriptor, allocating memory for the descriptor, and pushing the descriptor onto the cleanup stack.

The calling program should pop and destroy the heap descriptor when it is no longer needed.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC*

Pointer to a heap descriptor containing the resource.

See also:


AllocReadResourceAsDes8L()

HBufC8* AllocReadResourceAsDes8L(TInt aResourceId) const;

Description

Reads a resource into an 8 bit heap buffer — allocating the buffer.

The calling program must destroy the heap descriptor when it is no longer needed.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC8*

Pointer to a heap descriptor containing the resource.

See also:


AllocReadResourceAsDes16L()

HBufC16* AllocReadResourceAsDes16L(TInt aResourceId) const;

Description

Reads a resource into a 16 bit heap buffer — allocating the buffer.

The calling program must destroy the heap descriptor when it is no longer needed.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC16*

Pointer to a heap descriptor containing the resource.


AllocReadResourceAsDes8LC()

HBufC8* AllocReadResourceAsDes8LC(TInt aResourceId) const;

Description

Reads a resource into an 8 bit heap buffer — allocating the buffer and pushing it onto the cleanup stack.

The calling program must destroy the heap descriptor when it is no longer needed.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC8*

Pointer to a heap descriptor containing the resource.

See also:


AllocReadResourceAsDes16LC()

HBufC16* AllocReadResourceAsDes16LC(TInt aResourceId) const;

Description

Reads a resource into a 16 bit heap buffer — allocating the buffer and pushing it onto the cleanup stack.

The calling program must destroy the heap descriptor when it is no longer needed.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

HBufC16*

Pointer to a heap descriptor containing the resource.

See also:


ReadDesCArrayResourceL()

CDesCArrayFlat* ReadDesCArrayResourceL(TInt aResourceId);

Description

Reads a resource into a build-independent descriptor array.

Note:

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

CDesCArrayFlat*

A pointer to the descriptor array containing the resource data.

See also:


ReadDesC8ArrayResourceL()

CDesC8ArrayFlat* ReadDesC8ArrayResourceL(TInt aResourceId);

Description

Reads a resource into an 8 bit descriptor array.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

CDesC8ArrayFlat*

A pointer to the descriptor array containing the resource data.

See also:


ReadDesC16ArrayResourceL()

CDesC16ArrayFlat* ReadDesC16ArrayResourceL(TInt aResourceId);

Description

Reads a resource into a 16 bit descriptor array.

Ownership of the array is transferred to the caller.

Parameters

TInt aResourceId

The numeric ID of the resource to be read.

Return value

CDesC16ArrayFlat*

A pointer to the descriptor array containing the resource data.

See also:


Format128()

void Format128(TDes& aDes,TInt aResourceId,...);

Description

Reads a 128 byte resource into a formatted string.

The format of the written string is given by the variable argument list. The unformatted resource data must not be longer than 128 bytes. If it is, you should use Format256().

Parameters

TDes& aDes

On return, contains the formatted resource data.

TInt aResourceId

The numeric ID of the resource to be read.

...

Formatting information.

See also:


Format256()

void Format256(TDes& aDes,TInt aResourceId,...);

Description

Reads a 256 byte resource into a formatted string.

The format of the written string is given by the variable argument list. The unformatted resource data must not be longer than 265 bytes.

Parameters

TDes& aDes

On return, contains the formatted resource data.

TInt aResourceId

The numeric ID of the resource to be read.

...

Formatting information.

See also:


CreateResourceReaderLC()

void CreateResourceReaderLC(TResourceReader& aReader,TInt aResourceId) const;

Description

Reads a resource from a resource file and sets its resource reader.

The resource reader can subsequently be used to read resource data from the resource. The resource reader is also placed on the cleanup stack.

Note:

Parameters

TResourceReader& aReader

The resource reader.

TInt aResourceId

The numeric ID of the resource to be read.


ResourceFileVersionNumber()

private: virtual TInt ResourceFileVersionNumber() const;

Description

Gets the resource file version number.

The function is intended to be replaced in a derived class — it should return a defined constant which should correspond to the version number of resource files used by the application. It is implemented by the standard GUI framework.

AddResourceFileL() uses this function to verify that the application is not using an out-of-date resource file. An out-of-date resource file causes AddResourceFileL() to leave with error code KErrBaflWrongResourceFileSignature.

Return value

TInt

The resource file version number.

[Top]


Control environment version


Version()

static TVersion Version();

Description

Gets the version number of the UI Control Framework API.

Return value

TVersion

The version number, comprising major version number, minor version number, and build version number.

[Top]


Global access to CCoeEnv functions


Static()

static CCoeEnv* Static();

Description

Gets a pointer to a CCoeEnv which can be used to access CCoeEnv's functions.

It allows application code to access CCoeEnv's functions even where there is no direct access to a CCoeEnv object.

Example:

CCoeEnv::Static()->CreateResourceReaderLC(aReader, aResourceId);

Return value

CCoeEnv*

The pointer for accessing CCoeEnv's functions.


Static()

static CCoeStatic* Static(TUid aUid);

Support

Supported from 6.0

Description

Gets a pointer to the specified CCoeStatic derived class.

If no match is found it will simply return a NULL.

This function might be used to allow a CCoeStatic derived class to get a handle on itself.

Note:

Parameters

TUid aUid

The UID of the CCoeStatic derived class.

Return value

CCoeStatic*

A pointer to the CCoeStatic derived objects. NULL — If no match is found.

[Top]


Error handling


HandleError()

virtual void HandleError(TInt aError);

Description

Handles an application-defined error message.

This function allows application-defined error messages to be called from functions within the control framework's active scheduler. It has an empty default implementation.

It is called when a leave occurs in CCoeEnv::RunL(), and also when ReadResource() fails.

Parameters

TInt aError

KErrNone or another error code.


LeaveWithErrorText()

void LeaveWithErrorText(const TDesC& aMsg,const TDesC* aContextText=NULL);

Description

Displays an error message and context text and then calls User::Leave() with a leave code of KErrExtendedWithText.

Parameters

const TDesC& aMsg

The error message.

const TDesC* aContextText=NULL

The error context text.


ErrorText()

protected: TDes& ErrorText();

Description

Gets the current error message text.

Return value

TDes&

The current error message text.


ErrorContextText()

protected: TDes& ErrorContextText();

Description

Gets the current error context text.

Return value

TDes&

The current error context text.

[Top]


Events


LastEvent()

const TWsEvent& LastEvent() const;

Description

Gets the most recent standard event that was received by the application.

Note:

Return value

TWsEvent&

The last event.


SimulateKeyEventL()

void SimulateKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

Description

Simulates a key event.

This function calls CCoeAppUiBase::HandleKeyEvent() to process the event aKeyEvent as if it had arrived from the window server.

Parameters

const TKeyEvent& aKeyEvent

The key event.

TEventCode aType

The event type.


IsWservEventPending()

TBool IsWservEventPending() const;

Description

Tests if there is a standard event waiting to be processed.

Note:

Return value

TBool

ETrue if a standard event is pending. EFalse if no standard event is pending.


IsRedrawEventPending()

TBool IsRedrawEventPending() const;

Description

Tests if there is a redraw event waiting to be processed.

Return value

TBool

ETrue if a redraw event is pending. EFalse if no redraw event is pending.

[Top]


FEP functions


AddFepObserverL()

void AddFepObserverL(MCoeFepObserver& aFepObserver);

Support

Supported from 6.0

Description

Adds the specified MCoeFepObserver to the FEP observer list.

Parameters

MCoeFepObserver& aFepObserver

The FEP observer to be added to the list.

Panic codes

CONE 18

The specified aFepObserver is NULL.

CONE 21

The specified FEP observer has already been added to the list.


AddFocusObserverL()

void AddFocusObserverL(MCoeFocusObserver& aFocusObserver);

Support

Supported from 6.0

Description

Adds the specified MCoeFocusObserver to the focus observer list.

Parameters

MCoeFocusObserver& aFocusObserver

The focus observer to be added to the list.

Panic codes

CONE 18

The specified aFocusObserver is NULL.

CONE 21

The specified focus observer has already been added to the list.


InputCapabilitiesChanged()

void InputCapabilitiesChanged();

Support

Supported from 6.1

Description

Notifies all focus observers (FEPs) that a change has been made to the input capabilities of the focussed control.


AddForegroundObserverL()

void AddForegroundObserverL(MCoeForegroundObserver& aForegroundObserver);

Support

Supported from 6.0

Description

Adds the specified MCoeForegroundObserver to the foreground observer list.

Parameters

MCoeForegroundObserver& aForegroundObserver

The foreground observer to be added to the list.

Panic codes

CONE 18

The specified aForegroundObserver is NULL.

CONE 21

The specified foreground observer has already been added to the list.


AddMessageObserverL()

void AddMessageObserverL(MCoeMessageObserver& aMessageObserver);

Support

Supported from 6.0

Description

Adds the specified MCoeMessageObserver to the message observer list.

Parameters

MCoeMessageObserver& aMessageObserver

The message observer to be added to the list.

See also:


RemoveMessageObserver()

void RemoveMessageObserver(MCoeMessageObserver& aMessageObserver);

Support

Supported from 6.0

Description

Remove the specified MCoeMessageObserver from the message observer list.

Parameters

MCoeMessageObserver& aMessageObserver

The message observer to be removed from the list.

See also:


AddObserverOfLoadedFepL()

void AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);

Support

Supported from 6.0

Description

Adds the specified MCoeObserverOfLoadedFep to the loaded FEP list.

This enables objects to be notified when a front-end processor is loaded.

Parameters

MCoeObserverOfLoadedFep& aObserverOfLoadedFep

The loaded FEP observer to be added to the list.


DisableExitChecks()

void DisableExitChecks(TBool aDisable);

Support

Supported from 6.0

Description

Disables exit checks on kernel resources.

After v5.1, CCoeEnv checks for kernel resources on exit (e.g. open file handles). These checks are too strict for some applications, such as web, so this function is provided to disable them.

CCoeEnv also checks on heap allocation and window server resources on exit.

Parameters

TBool aDisable


ExecuteFepSettingsDialogL()

void ExecuteFepSettingsDialogL(const TDesC& aFileNameOfFepDll);

Support

Supported from 6.0

Description

Executes the settings dialog of the specified FEP.

The specified FEPdoes not need to be the currently loaded FEP.

Parameters

const TDesC& aFileNameOfFepDll

The file name of the FEP for which the settings dialog is to be executed.


Fep()

CCoeFep* Fep() const;

Support

Supported from 6.0

Description

Gets a pointer the currently loaded FEP.

Return value

CCoeFep*

The currently loaded FEP, or NULL if none iscurrently loaded.


FepUid()

TUid FepUid() const;

Support

Supported from 6.0

Description

Gets the UID of the currently loaded FEP.

Return value

TUid

The UID of the currently loaded FEP. Zero if none is currently loaded.


FileNamesOfAvailableFepsL()

MDesCArray* FileNamesOfAvailableFepsL();

Support

Supported from 6.0

Description

Gets an array of the file-names of all the FEPs that are currently on the machine. Ownership of this array is passed to the caller.

Return value

MDesCArray*

The array of FEP file names.


ForEachFepObserverCall()

void ForEachFepObserverCall(TCoeFepObserverFunction aFepObserverFunction);

Support

Supported from 6.0

Description

Calls specified function for observers.

This function is called for each MCoeFepObserver object thathas been registered by calling CCoeEnv::AddFepObserverL().

Parameters

TCoeFepObserverFunction aFepObserverFunction

The function to be called.


InstallFepL()

void InstallFepL(const TDesC& aFileNameOfFepDll);

Support

Supported from 6.0

Description

Loads the specified FEP into all running applications.

The currently loaded FEP, if any, will be unloaded.

Parameters

const TDesC& aFileNameOfFepDll

The file name of the FEP to be loaded. If no path is specified, \system\fep is assumed.


NameOfInstalledFepL()

HBufC* NameOfInstalledFepL();

Support

Supported from 6.0

Description

Gets the name of the currently loaded FEP.

Ownership of the named descriptor is passed to the caller.

Note:

Return value

HBufC*

The name of the currently loaded FEP.


RemoveFepObserver()

void RemoveFepObserver(MCoeFepObserver& aFepObserver);

Support

Supported from 6.0

Description

Removes the specified FEP observer.

Parameters

MCoeFepObserver& aFepObserver

The FEP observer to be removed.

See also:


RemoveFocusObserver()

void RemoveFocusObserver(MCoeFocusObserver& aFocusObserver);

Support

Supported from 6.0

Description

Removes the specified focus observer.

Parameters

MCoeFocusObserver& aFocusObserver

The focus observer to be removed.

See also:


RemoveForegroundObserver()

void RemoveForegroundObserver(MCoeForegroundObserver& aForegroundObserver);

Support

Supported from 6.0

Description

Removes the specified foreground observer.

Parameters

MCoeForegroundObserver& aForegroundObserver

The foreground observer to be removed.

See also:


RemoveObserverOfLoadedFep()

void RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);

Support

Supported from 6.0

Description

Remove the specified loaded FEP observer.

Parameters

MCoeObserverOfLoadedFep& aObserverOfLoadedFep

The FEP observer to be removed.