Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: coemain.h
Link against: N/A

Class MCoeForegroundObserver

MCoeForegroundObserver

Support

Supported from 6.0

Description

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()

See also:


Member functions


HandleGainingForeground()

virtual void HandleGainingForeground();

Description

Handles the application coming to the foreground.


HandleLosingForeground()

virtual void HandleLosingForeground();

Description

Handles the application going into the background.