CCoeEnv Class Reference

class CCoeEnv : public CActive

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: standard events are all events except redraw events and priority key events.

Inherits from

Public Member Functions
CCoeEnv()
~CCoeEnv()
IMPORT_C voidAddFepObserverL(MCoeFepObserver &)
IMPORT_C voidAddFocusObserverL(MCoeFocusObserver &)
IMPORT_C voidAddForegroundObserverL(MCoeForegroundObserver &)
IMPORT_C voidAddMessageMonitorObserverL(MCoeMessageMonitorObserver &)
IMPORT_C voidAddMessageObserverL(MCoeMessageObserver &)
IMPORT_C voidAddObserverOfLoadedFepL(MCoeObserverOfLoadedFep &)
IMPORT_C voidAddResourceChangeObserverL(MCoeResourceChangeObserver &)
IMPORT_C TIntAddResourceFileL(const TDesC &)
voidAddStatic(CCoeStatic *)
IMPORT_C HBufC16 *AllocReadResourceAsDes16L(TInt)
IMPORT_C HBufC16 *AllocReadResourceAsDes16LC(TInt)
IMPORT_C HBufC8 *AllocReadResourceAsDes8L(TInt)
IMPORT_C HBufC8 *AllocReadResourceAsDes8LC(TInt)
HBufC *AllocReadResourceL(TInt)
HBufC *AllocReadResourceLC(TInt)
TInt AppStartupInstrumentationEventIdBase()
CCoeAppUi *AppUi()
IMPORT_C voidAvailableFepsL(RArray< TUid > &, CDesCArray *)
IMPORT_C voidBringOwnerToFront()
IMPORT_C voidConstructL()
IMPORT_C voidConstructL(TBool)
IMPORT_C voidConstructL(TBool, TInt)
IMPORT_C voidConstructL(TBool, TInt, TInt)
TBool ControlStateChange()
IMPORT_C CFbsFont *CreateDeviceFontL(CGraphicsDevice *, const TFontSpec &)
IMPORT_C CWindowGc *CreateGcL()
IMPORT_C voidCreateResourceReaderLC(TResourceReader &, TInt)
IMPORT_C CFbsFont *CreateScreenFontL(const TFontSpec &)
IMPORT_C const CCoeFontProvider &DefaultFontProvider()
IMPORT_C CCoeTextDrawerBase &DefaultTextDrawer()
IMPORT_C voidDeleteResourceFile(TInt)
IMPORT_C voidDestroyEnvironment()
IMPORT_C voidDisableExitChecks(TBool)
IMPORT_C TBoolDisableShutdownChecks()
IMPORT_C voidDoCancel()
voidDoFlush()
voidEnsureCorrectFepIsLoadedL()
voidEnsureSpecifiedFepIsLoadedL(TUid)
IMPORT_C voidExecute()
IMPORT_C voidExecuteD()
IMPORT_C voidExecuteFepSettingsDialogL(TUid)
IMPORT_C CCoeFep *Fep()
IMPORT_C TUidFepUid()
IMPORT_C CCoeStatic *FindStatic(TUid)
IMPORT_C voidFlush(TTimeIntervalMicroSeconds32)
TInt FocusObserverNotificationIdentifier()
TBool FocusObserverNotificationIsStillPending(TInt)
IMPORT_C voidForEachFepObserverCall(TCoeFepObserverFunction)
IMPORT_C voidFormat128(TDes &, TInt, ...)
IMPORT_C voidFormat256(TDes &, TInt, ...)
RFs &FsSession()
IMPORT_C voidGetMessageNotifyingObserversLC(TUint32, TUid &, TPtr8 &, const TWsEvent &)
IMPORT_C voidHandleError(TInt)
CVwsSessionWrapper *InitViewServerSessionL(MVwsSessionWrapperObserver &)
IMPORT_C voidInputCapabilitiesChanged()
IMPORT_C voidInstallFepL(TUid)
IMPORT_C voidInstallFepL(TUid, const TBool)
IMPORT_C TBoolIsRedrawEventPending()
IMPORT_C TBoolIsResourceAvailableL(TInt)
TBool IsSchedulerRunning()
IMPORT_C TBoolIsWservEventPending()
const TWsEvent &LastEvent()
IMPORT_C voidLeaveWithErrorText(const TDesC &, const TDesC *)
const CFont *NormalFont()
voidNotifyFocusObserversOfDestructionOfFocusedItem()
voidNotifyForegroundObserversOfGainingForeground()
voidNotifyForegroundObserversOfLosingForeground()
voidNotifyMessageMonitorObserversOfEvent(const TWsEvent &)
voidNotifyResourceObserversOfChangeInResource()
IMPORT_C voidPrepareToExit()
voidQueueNotificationToFocusObserversOfChangeInFocus()
IMPORT_C CDesC16ArrayFlat *ReadDesC16ArrayResourceL(TInt)
IMPORT_C CDesC8ArrayFlat *ReadDesC8ArrayResourceL(TInt)
CDesCArrayFlat *ReadDesCArrayResourceL(TInt)
voidReadResource(TDes &, TInt)
IMPORT_C voidReadResourceAsDes16(TDes16 &, TInt)
IMPORT_C voidReadResourceAsDes16L(TDes16 &, TInt)
IMPORT_C voidReadResourceAsDes8(TDes8 &, TInt)
IMPORT_C voidReadResourceAsDes8L(TDes8 &, TInt)
voidReadResourceL(TDes &, TInt)
voidRefetchPixelMappingL()
IMPORT_C voidReleaseScreenFont(CFont *)
IMPORT_C voidRemoveFepObserver(MCoeFepObserver &)
IMPORT_C voidRemoveFocusObserver(MCoeFocusObserver &)
IMPORT_C voidRemoveForegroundObserver(MCoeForegroundObserver &)
IMPORT_C voidRemoveMessageMonitorObserver(MCoeMessageMonitorObserver &)
IMPORT_C voidRemoveMessageObserver(MCoeMessageObserver &)
IMPORT_C voidRemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep &)
IMPORT_C voidRemoveResourceChangeObserver(MCoeResourceChangeObserver &)
RWindowGroup &RootWin()
IMPORT_C RWindowGroup *RootWin(TInt)
IMPORT_C voidRunL()
CWsScreenDevice *ScreenDevice()
IMPORT_C CWsScreenDevice *ScreenDevice(TInt)
IMPORT_C CCoeAppUi *SetAppUi(CCoeAppUi *)
IMPORT_C voidSetZoomFactor(const TZoomFactor &)
IMPORT_C voidSimulateKeyEventL(const TKeyEvent &, TEventCode)
IMPORT_C CCoeEnv *Static()
IMPORT_C CCoeStatic *Static(TUid)
TInt SupportedPointers()
IMPORT_C voidSuppressNextFlush()
IMPORT_C CWindowGc *SwapSystemGc(CWindowGc *)
IMPORT_C voidSyncNotifyFocusObserversOfChangeInFocus()
CWindowGc &SystemGc()
IMPORT_C TVersionVersion()
RWsSession &WsSession()
IMPORT_C TZoomFactorZoomFactor()
Protected Member Functions
IMPORT_C TIntCoeEnvConstructorError()
IMPORT_C voidDestroyEnvironmentEnd()
IMPORT_C voidDestroyEnvironmentStatic()
IMPORT_C voidDestroyScreen()
TDes &ErrorContextText()
TDes &ErrorText()
IMPORT_C TTypeUid::PtrMopSupplyObject(TTypeUid)
IMPORT_C voidSetAppStartupInstrumentationEventIdBaseL(TInt)
Private Member Functions
voidAddObserverL(TAny *, RGenericPointerArray &)
voidConnectToFileServerL()
voidConnectToWindowServerL()
voidCreateActiveSchedulerL()
voidDeleteArrayOfScreensItems()
voidDestroyAllResourceFiles()
RResourceFile *DoResourceFileForIdL(TInt)
voidInitRootWindowL(TBool, TInt)
voidInitScreenL(TInt)
IMPORT_C voidInitSystemFontsL()
voidInitSystemGcL()
TUint InitialHandleCount()
voidPopulateArrayOfScreenItemsL()
voidRemoveObserver(TAny *, RGenericPointerArray &)
voidRequestEventNotification()
IMPORT_C voidReserved_1()
IMPORT_C voidReserved_2()
RResourceFile &ResourceFileForId(TInt)
IMPORT_C TIntResourceFileVersionNumber()
IMPORT_C TIntRunError(TInt)
voidSetInitialHandleCount()
voidUpdateStatic(CCoeAppUi *)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTFlags { ENoShutdownChecks = 0x0001, EExtraPointerIsErrorCode = 0x0002, ESchedulerIsRunning = 0x0004 }
Inherited Enumerations
CActive:TPriority
Protected Attributes
CCoeAppUi *iAppUi
RFs iFsSession
TWsEvent iLastEvent
const CFont *iNormalFont
CArrayFix< RResourceFile > *iResourceFileArray
RWindowGroup iRootWin
CWsScreenDevice *iScreen
CWindowGc *iSystemGc
RWsSession iWsSession
Private Attributes
CTrapCleanup *iCleanup
TUint iEnvFlags
TDes *iErrorContextText
TDes *iErrorText
CCoeEnvExtra *iExtra
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CCoeEnv()

IMPORT_CCCoeEnv()

~CCoeEnv()

IMPORT_C~CCoeEnv()

Member Functions Documentation

AddFepObserverL(MCoeFepObserver &)

IMPORT_C voidAddFepObserverL(MCoeFepObserver &aFepObserver)

Parameters

MCoeFepObserver & aFepObserver

AddFocusObserverL(MCoeFocusObserver &)

IMPORT_C voidAddFocusObserverL(MCoeFocusObserver &aFocusObserver)

Parameters

MCoeFocusObserver & aFocusObserver

AddForegroundObserverL(MCoeForegroundObserver &)

IMPORT_C voidAddForegroundObserverL(MCoeForegroundObserver &aForegroundObserver)

Parameters

MCoeForegroundObserver & aForegroundObserver

AddMessageMonitorObserverL(MCoeMessageMonitorObserver &)

IMPORT_C voidAddMessageMonitorObserverL(MCoeMessageMonitorObserver &aMessageMonitorObserver)

Parameters

MCoeMessageMonitorObserver & aMessageMonitorObserver

AddMessageObserverL(MCoeMessageObserver &)

IMPORT_C voidAddMessageObserverL(MCoeMessageObserver &aMessageObserver)

Parameters

MCoeMessageObserver & aMessageObserver

AddObserverL(TAny *, RGenericPointerArray &)

voidAddObserverL(TAny *aObserver,
RGenericPointerArray &aArray
)[private]

Parameters

TAny * aObserver
RGenericPointerArray & aArray

AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep &)

IMPORT_C voidAddObserverOfLoadedFepL(MCoeObserverOfLoadedFep &aObserverOfLoadedFep)

Parameters

MCoeObserverOfLoadedFep & aObserverOfLoadedFep

AddResourceChangeObserverL(MCoeResourceChangeObserver &)

IMPORT_C voidAddResourceChangeObserverL(MCoeResourceChangeObserver &aResourceChangeObserver)

Parameters

MCoeResourceChangeObserver & aResourceChangeObserver

AddResourceFileL(const TDesC &)

IMPORT_C TIntAddResourceFileL(const TDesC &aFileName)

Parameters

const TDesC & aFileName

AddStatic(CCoeStatic *)

voidAddStatic(CCoeStatic *aStatic)

Parameters

CCoeStatic * aStatic

AllocReadResourceAsDes16L(TInt)

IMPORT_C HBufC16 *AllocReadResourceAsDes16L(TIntaResourceId)const

Parameters

TInt aResourceId

AllocReadResourceAsDes16LC(TInt)

IMPORT_C HBufC16 *AllocReadResourceAsDes16LC(TIntaResourceId)const

Parameters

TInt aResourceId

AllocReadResourceAsDes8L(TInt)

IMPORT_C HBufC8 *AllocReadResourceAsDes8L(TIntaResourceId)const

Parameters

TInt aResourceId

AllocReadResourceAsDes8LC(TInt)

IMPORT_C HBufC8 *AllocReadResourceAsDes8LC(TIntaResourceId)const

Parameters

TInt aResourceId

AllocReadResourceL(TInt)

HBufC *AllocReadResourceL(TIntaResourceId)const [inline]

Reads a resource into a heap descriptor, allocating memory for it.

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

Pointer to a heap descriptor containing the resource data.

RResourceFile::AllocReadL()

Parameters

TInt aResourceIdThe numeric ID of the resource to be read.

AllocReadResourceLC(TInt)

HBufC *AllocReadResourceLC(TIntaResourceId)const [inline]

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

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

Pointer to a heap descriptor containing the resource data.

RResourceFile::AllocReadLC()

Parameters

TInt aResourceIdThe numeric ID of the resource to be read.

AppStartupInstrumentationEventIdBase()

TInt AppStartupInstrumentationEventIdBase()

AppUi()

CCoeAppUi *AppUi()const [inline]

Gets the application UI owned by this application.

Pointer to the app UI owned by the application.

AvailableFepsL(RArray< TUid > &, CDesCArray *)

IMPORT_C voidAvailableFepsL(RArray< TUid > &aUids,
CDesCArray *aDisplayNames
)

Parameters

RArray< TUid > & aUids
CDesCArray * aDisplayNames

BringOwnerToFront()

IMPORT_C voidBringOwnerToFront()

CoeEnvConstructorError()

IMPORT_C TIntCoeEnvConstructorError()const [protected]

ConnectToFileServerL()

voidConnectToFileServerL()[private]

ConnectToWindowServerL()

voidConnectToWindowServerL()[private]

ConstructL()

IMPORT_C voidConstructL()

ConstructL(TBool)

IMPORT_C voidConstructL(TBoolaInitialFocusState)

Parameters

TBool aInitialFocusState

ConstructL(TBool, TInt)

IMPORT_C voidConstructL(TBoolaInitialFocusState,
TIntaDefaultScreenNumber
)

Parameters

TBool aInitialFocusState
TInt aDefaultScreenNumber

ConstructL(TBool, TInt, TInt)

IMPORT_C voidConstructL(TBoolaInitialFocusState,
TIntaDefaultScreenNumber,
TIntaWindowGroupID
)

Parameters

TBool aInitialFocusState
TInt aDefaultScreenNumber
TInt aWindowGroupID

ControlStateChange()

TBool ControlStateChange()

CreateActiveSchedulerL()

voidCreateActiveSchedulerL()[private]

CreateDeviceFontL(CGraphicsDevice *, const TFontSpec &)

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

Parameters

CGraphicsDevice * aDevice
const TFontSpec & aFontSpec

CreateGcL()

IMPORT_C CWindowGc *CreateGcL()

CreateResourceReaderLC(TResourceReader &, TInt)

IMPORT_C voidCreateResourceReaderLC(TResourceReader &aReader,
TIntaResourceId
)const

Parameters

TResourceReader & aReader
TInt aResourceId

CreateScreenFontL(const TFontSpec &)

IMPORT_C CFbsFont *CreateScreenFontL(const TFontSpec &aFontSpec)

Parameters

const TFontSpec & aFontSpec

DefaultFontProvider()

IMPORT_C const CCoeFontProvider &DefaultFontProvider()const

DefaultTextDrawer()

IMPORT_C CCoeTextDrawerBase &DefaultTextDrawer()const

DeleteArrayOfScreensItems()

voidDeleteArrayOfScreensItems()[private]

DeleteResourceFile(TInt)

IMPORT_C voidDeleteResourceFile(TIntaOffset)

Parameters

TInt aOffset

DestroyAllResourceFiles()

voidDestroyAllResourceFiles()[private]

DestroyEnvironment()

IMPORT_C voidDestroyEnvironment()[virtual]

DestroyEnvironmentEnd()

IMPORT_C voidDestroyEnvironmentEnd()[protected]

DestroyEnvironmentStatic()

IMPORT_C voidDestroyEnvironmentStatic()[protected]

DestroyScreen()

IMPORT_C voidDestroyScreen()[protected, virtual]

DisableExitChecks(TBool)

IMPORT_C voidDisableExitChecks(TBoolaDisable)

Parameters

TBool aDisable

DisableShutdownChecks()

IMPORT_C TBoolDisableShutdownChecks()const

DoCancel()

IMPORT_C voidDoCancel()[virtual]

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

CActive::Cancel

DoFlush()

voidDoFlush()

DoResourceFileForIdL(TInt)

RResourceFile *DoResourceFileForIdL(TIntaResourceId)const [private]

Parameters

TInt aResourceId

EnsureCorrectFepIsLoadedL()

voidEnsureCorrectFepIsLoadedL()

EnsureSpecifiedFepIsLoadedL(TUid)

voidEnsureSpecifiedFepIsLoadedL(TUidaFepUid)

Parameters

TUid aFepUid

ErrorContextText()

TDes &ErrorContextText()[protected, inline]

Gets the current error context text.

The current error context text.

ErrorText()

TDes &ErrorText()[protected, inline]

Gets the current error message text.

The current error message text.

Execute()

IMPORT_C voidExecute()

ExecuteD()

IMPORT_C voidExecuteD()

ExecuteFepSettingsDialogL(TUid)

IMPORT_C voidExecuteFepSettingsDialogL(TUidaFepUid)

Parameters

TUid aFepUid

Fep()

IMPORT_C CCoeFep *Fep()const

FepUid()

IMPORT_C TUidFepUid()const

FindStatic(TUid)

IMPORT_C CCoeStatic *FindStatic(TUidaUid)

Parameters

TUid aUid

Flush(TTimeIntervalMicroSeconds32)

IMPORT_C voidFlush(TTimeIntervalMicroSeconds32aDelay = 0)

Parameters

TTimeIntervalMicroSeconds32 aDelay = 0

FocusObserverNotificationIdentifier()

TInt FocusObserverNotificationIdentifier()const

FocusObserverNotificationIsStillPending(TInt)

TBool FocusObserverNotificationIsStillPending(TIntaFocusObserverNotificationIdentifier)const

Parameters

TInt aFocusObserverNotificationIdentifier

ForEachFepObserverCall(TCoeFepObserverFunction)

IMPORT_C voidForEachFepObserverCall(TCoeFepObserverFunctionaFepObserverFunction)

Parameters

TCoeFepObserverFunction aFepObserverFunction

Format128(TDes &, TInt, ...)

IMPORT_C voidFormat128(TDes &aDes,
TIntaResourceId,
...
)

Parameters

TDes & aDes
TInt aResourceId
...

Format256(TDes &, TInt, ...)

IMPORT_C voidFormat256(TDes &aDes,
TIntaResourceId,
...
)

Parameters

TDes & aDes
TInt aResourceId
...

FsSession()

RFs &FsSession()const [inline]

Gets the file server session owned by this CCoeEnv.

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

The file server session owned by this CCoeEnv.

GetMessageNotifyingObserversLC(TUint32, TUid &, TPtr8 &, const TWsEvent &)

IMPORT_C voidGetMessageNotifyingObserversLC(TUint32aClientHandleOfTargetWindowGroup,
TUid &aMessageUid,
TPtr8 &aMessageParameters,
const TWsEvent &aMessageEvent
)

Parameters

TUint32 aClientHandleOfTargetWindowGroup
TUid & aMessageUid
TPtr8 & aMessageParameters
const TWsEvent & aMessageEvent

HandleError(TInt)

IMPORT_C voidHandleError(TIntaError)[virtual]

Parameters

TInt aError

InitRootWindowL(TBool, TInt)

voidInitRootWindowL(TBoolaInitialFocusState,
TIntaWindowGroupID = 0
)[private]

Parameters

TBool aInitialFocusState
TInt aWindowGroupID = 0

InitScreenL(TInt)

voidInitScreenL(TIntaDefaultScreenNumber)[private]

Parameters

TInt aDefaultScreenNumber

InitSystemFontsL()

IMPORT_C voidInitSystemFontsL()[private, virtual]

InitSystemGcL()

voidInitSystemGcL()[private]

InitViewServerSessionL(MVwsSessionWrapperObserver &)

CVwsSessionWrapper *InitViewServerSessionL(MVwsSessionWrapperObserver &aObserver)

Parameters

MVwsSessionWrapperObserver & aObserver

InitialHandleCount()

TUint InitialHandleCount()const [private]

InputCapabilitiesChanged()

IMPORT_C voidInputCapabilitiesChanged()

InstallFepL(TUid)

IMPORT_C voidInstallFepL(TUidaFepUid)

Parameters

TUid aFepUid

InstallFepL(TUid, const TBool)

IMPORT_C voidInstallFepL(TUidaFepUid,
const TBoolaLeave
)

Parameters

TUid aFepUid
const TBool aLeave

IsRedrawEventPending()

IMPORT_C TBoolIsRedrawEventPending()const

IsResourceAvailableL(TInt)

IMPORT_C TBoolIsResourceAvailableL(TIntaResourceId)const

Parameters

TInt aResourceId

IsSchedulerRunning()

TBool IsSchedulerRunning()const [inline]

IsWservEventPending()

IMPORT_C TBoolIsWservEventPending()const

LastEvent()

const TWsEvent &LastEvent()const [inline]

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

Note: standard events are all events except redraw events and priority key events.

The last event.

LeaveWithErrorText(const TDesC &, const TDesC *)

IMPORT_C voidLeaveWithErrorText(const TDesC &aMsg,
const TDesC *aContextText = NULL
)

Parameters

const TDesC & aMsg
const TDesC * aContextText = NULL

MopSupplyObject(TTypeUid)

IMPORT_C TTypeUid::PtrMopSupplyObject(TTypeUidaId)[protected]

Parameters

TTypeUid aId

NormalFont()

const CFont *NormalFont()const [inline]

Gets the normal environment font.

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

Pointer to the normal environment font.

InitSystemFontsL()

NotifyFocusObserversOfDestructionOfFocusedItem()

voidNotifyFocusObserversOfDestructionOfFocusedItem()

NotifyForegroundObserversOfGainingForeground()

voidNotifyForegroundObserversOfGainingForeground()

NotifyForegroundObserversOfLosingForeground()

voidNotifyForegroundObserversOfLosingForeground()

NotifyMessageMonitorObserversOfEvent(const TWsEvent &)

voidNotifyMessageMonitorObserversOfEvent(const TWsEvent &aEvent)

Parameters

const TWsEvent & aEvent

NotifyResourceObserversOfChangeInResource()

voidNotifyResourceObserversOfChangeInResource()

PopulateArrayOfScreenItemsL()

voidPopulateArrayOfScreenItemsL()[private]

PrepareToExit()

IMPORT_C voidPrepareToExit()

QueueNotificationToFocusObserversOfChangeInFocus()

voidQueueNotificationToFocusObserversOfChangeInFocus()

ReadDesC16ArrayResourceL(TInt)

IMPORT_C CDesC16ArrayFlat *ReadDesC16ArrayResourceL(TIntaResourceId)

Parameters

TInt aResourceId

ReadDesC8ArrayResourceL(TInt)

IMPORT_C CDesC8ArrayFlat *ReadDesC8ArrayResourceL(TIntaResourceId)

Parameters

TInt aResourceId

ReadDesCArrayResourceL(TInt)

CDesCArrayFlat *ReadDesCArrayResourceL(TIntaResourceId)[inline]

Reads a resource into a Unicode descriptor array.

A pointer to the descriptor array containing the resource data.

TResourceReader::ReadDesCArrayL()

Parameters

TInt aResourceIdThe numeric ID of the resource to be read.

ReadResource(TDes &, TInt)

voidReadResource(TDes &aDes,
TIntaResourceId
)const [inline]

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.

Deprecated - Use CCoeEnv::ReadResourceL() instead.

RResourceFile::ReadL()

KErrCoeFailedToReadFromProgDisk

Parameters

TDes & aDesOn return, contains the resource data.
TInt aResourceIdThe numeric ID of the resource to be read.

ReadResourceAsDes16(TDes16 &, TInt)

IMPORT_C voidReadResourceAsDes16(TDes16 &aDes,
TIntaResourceId
)const

Parameters

TDes16 & aDes
TInt aResourceId

ReadResourceAsDes16L(TDes16 &, TInt)

IMPORT_C voidReadResourceAsDes16L(TDes16 &aDes,
TIntaResourceId
)const

7.0

Parameters

TDes16 & aDes
TInt aResourceId

ReadResourceAsDes8(TDes8 &, TInt)

IMPORT_C voidReadResourceAsDes8(TDes8 &aDes,
TIntaResourceId
)const

Parameters

TDes8 & aDes
TInt aResourceId

ReadResourceAsDes8L(TDes8 &, TInt)

IMPORT_C voidReadResourceAsDes8L(TDes8 &aDes,
TIntaResourceId
)const

7.0

Parameters

TDes8 & aDes
TInt aResourceId

ReadResourceL(TDes &, TInt)

voidReadResourceL(TDes &aDes,
TIntaResourceId
)const [inline]

Reads a resource into a descriptor.

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

Pointer to a heap descriptor containing the resource.

Parameters

TDes & aDesOn return, contains the resource data.
TInt aResourceIdThe numeric ID of the resource to be read.

RefetchPixelMappingL()

voidRefetchPixelMappingL()

ReleaseScreenFont(CFont *)

IMPORT_C voidReleaseScreenFont(CFont *aFont)const

Parameters

CFont * aFont

RemoveFepObserver(MCoeFepObserver &)

IMPORT_C voidRemoveFepObserver(MCoeFepObserver &aFepObserver)

Parameters

MCoeFepObserver & aFepObserver

RemoveFocusObserver(MCoeFocusObserver &)

IMPORT_C voidRemoveFocusObserver(MCoeFocusObserver &aFocusObserver)

Parameters

MCoeFocusObserver & aFocusObserver

RemoveForegroundObserver(MCoeForegroundObserver &)

IMPORT_C voidRemoveForegroundObserver(MCoeForegroundObserver &aForegroundObserver)

Parameters

MCoeForegroundObserver & aForegroundObserver

RemoveMessageMonitorObserver(MCoeMessageMonitorObserver &)

IMPORT_C voidRemoveMessageMonitorObserver(MCoeMessageMonitorObserver &aMessageMonitorObserver)

Parameters

MCoeMessageMonitorObserver & aMessageMonitorObserver

RemoveMessageObserver(MCoeMessageObserver &)

IMPORT_C voidRemoveMessageObserver(MCoeMessageObserver &aMessageObserver)

Parameters

MCoeMessageObserver & aMessageObserver

RemoveObserver(TAny *, RGenericPointerArray &)

voidRemoveObserver(TAny *aObserver,
RGenericPointerArray &aArray
)[private]

Parameters

TAny * aObserver
RGenericPointerArray & aArray

RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep &)

IMPORT_C voidRemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep &aObserverOfLoadedFep)

Parameters

MCoeObserverOfLoadedFep & aObserverOfLoadedFep

RemoveResourceChangeObserver(MCoeResourceChangeObserver &)

IMPORT_C voidRemoveResourceChangeObserver(MCoeResourceChangeObserver &aResourceChangeObserver)

Parameters

MCoeResourceChangeObserver & aResourceChangeObserver

RequestEventNotification()

voidRequestEventNotification()[private]

Reserved_1()

IMPORT_C voidReserved_1()[private, virtual]

Reserved_2()

IMPORT_C voidReserved_2()[private, virtual]

ResourceFileForId(TInt)

RResourceFile &ResourceFileForId(TIntaResourceId)const [private]

Parameters

TInt aResourceId

ResourceFileVersionNumber()

IMPORT_C TIntResourceFileVersionNumber()const [private, virtual]

RootWin()

RWindowGroup &RootWin()const [inline]

Gets the application's window group.

Note: a window group is an invisible window which acts as the parent window for all other windows in an application. Typically, each application has one window group. In the window server, window groups are also the unit of keyboard focus.

The application's window group.

RootWin(TInt)

IMPORT_C RWindowGroup *RootWin(TIntaScreenNumber)const

Parameters

TInt aScreenNumber

RunError(TInt)

IMPORT_C TIntRunError(TIntaError)[private, virtual]

Parameters

TInt aError

RunL()

IMPORT_C voidRunL()[virtual]

Handles an active object's request completion event.

A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.

The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.

Before calling this active object's RunL() function, the active scheduler has:

1. decided that this is the highest priority active object with a completed request

2. marked this active object's request as complete (i.e. the request is no longer outstanding)

RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.

Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.

CActiveScheduler::Start

CActiveScheduler::Error

CActiveScheduler::WaitForAnyRequest

TRAPD

ScreenDevice()

CWsScreenDevice *ScreenDevice()const [inline]

Gets the default screen device owned by this CCoeEnv.

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

The default screen device owned by this CCoeEnv.

ScreenDevice(TInt)

IMPORT_C CWsScreenDevice *ScreenDevice(TIntaScreenNumber)const

Parameters

TInt aScreenNumber

SetAppStartupInstrumentationEventIdBaseL(TInt)

IMPORT_C voidSetAppStartupInstrumentationEventIdBaseL(TIntaAppStartupInstrumentationEventIdBase)[protected]

Parameters

TInt aAppStartupInstrumentationEventIdBase

SetAppUi(CCoeAppUi *)

IMPORT_C CCoeAppUi *SetAppUi(CCoeAppUi *aAppUi)

Parameters

CCoeAppUi * aAppUi

SetInitialHandleCount()

voidSetInitialHandleCount()[private]

SetZoomFactor(const TZoomFactor &)

IMPORT_C voidSetZoomFactor(const TZoomFactor &aZoomFactor)

Parameters

const TZoomFactor & aZoomFactor

SimulateKeyEventL(const TKeyEvent &, TEventCode)

IMPORT_C voidSimulateKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)

Parameters

const TKeyEvent & aKeyEvent
TEventCode aType

Static()

IMPORT_C CCoeEnv *Static()[static]

Static(TUid)

IMPORT_C CCoeStatic *Static(TUidaUid)[static]

Parameters

TUid aUid

SupportedPointers()

TInt SupportedPointers()const

SuppressNextFlush()

IMPORT_C voidSuppressNextFlush()

SwapSystemGc(CWindowGc *)

IMPORT_C CWindowGc *SwapSystemGc(CWindowGc *aGc)

Parameters

CWindowGc * aGc

SyncNotifyFocusObserversOfChangeInFocus()

IMPORT_C voidSyncNotifyFocusObserversOfChangeInFocus()

SystemGc()

CWindowGc &SystemGc()const [inline]

Gets the system graphics context.

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

The system graphics context.

UpdateStatic(CCoeAppUi *)

voidUpdateStatic(CCoeAppUi *aNewAppUi)[private]

Parameters

CCoeAppUi * aNewAppUi

Version()

IMPORT_C TVersionVersion()[static]

WsSession()

RWsSession &WsSession()const [inline]

Gets the window server session owned by the application.

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

The window server session opened by the application.

ZoomFactor()

IMPORT_C TZoomFactorZoomFactor()const

Member Enumerations Documentation

Enum TFlags

Enumerators

ENoShutdownChecks = 0x0001
EExtraPointerIsErrorCode = 0x0002
ESchedulerIsRunning = 0x0004

Member Data Documentation

CCoeAppUi * iAppUi

CCoeAppUi *iAppUi[protected]

CTrapCleanup * iCleanup

CTrapCleanup *iCleanup[private]

TUint iEnvFlags

TUint iEnvFlags[private]

TDes * iErrorContextText

TDes *iErrorContextText[private]

TDes * iErrorText

TDes *iErrorText[private]

CCoeEnvExtra * iExtra

CCoeEnvExtra *iExtra[private]

RFs iFsSession

RFs iFsSession[protected]

TWsEvent iLastEvent

TWsEvent iLastEvent[protected]

const CFont * iNormalFont

const CFont *iNormalFont[protected]

CArrayFix< RResourceFile > * iResourceFileArray

CArrayFix< RResourceFile > *iResourceFileArray[protected]

RWindowGroup iRootWin

RWindowGroup iRootWin[protected]

CWsScreenDevice * iScreen

CWsScreenDevice *iScreen[protected]

CWindowGc * iSystemGc

CWindowGc *iSystemGc[protected]

RWsSession iWsSession

RWsSession iWsSession[protected]