Location:
coemain.h
Link against: N/A
MCoeForegroundObserver
Supported from 6.0
Interface providing notification of foreground/background changes.
The FEP framework class, CCoeFep
, derives from
MCoeForegroundObserver
which enables FEPs to receive
notification when the target application (which receives characters produced by the FEP) goes into the foreground or background.
Writing derived classes:
Anything that needs this notification should derive from this class and override its two pure virtual functions.
In addition, derived classes also need to call
CCoeEnv::AddForegroundObserverL()
during construction, and
CCoeEnv::RemoveForegroundObserver()
in their
destructors.
Defined in MCoeForegroundObserver
:
HandleGainingForeground()
, HandleLosingForeground()
virtual void HandleGainingForeground();
Handles the application coming to the foreground.
virtual void HandleLosingForeground();
Handles the application going into the background.