Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: coemain.h
Link against: N/A

Class MCoeFocusObserver

MCoeFocusObserver

Support

Supported from 6.0

Description

Interface providing notification if any control gains or loses focus or is destroyed.

The FEP framework uses this class to observe when a target control changes for reasons unrelated to the FEP.

Writing derived classes:

Anything that needs such notification should derive from this class and override its two pure virtual functions.

In addition, derived classes need to call CCoeEnv::AddFocusObserverL() during construction, and CCoeEnv::RemoveFocusObserver() in their destructors.

Defined in MCoeFocusObserver:
HandleChangeInFocus(), HandleDestructionOfFocusedItem()

See also:


Member functions


HandleChangeInFocus()

virtual void HandleChangeInFocus()=0;

Description

Handles changes in focus. The function is called if any control gains or loses focus.


HandleDestructionOfFocusedItem()

virtual void HandleDestructionOfFocusedItem()=0;

Description

Handles the destruction of any control. It is called by the framework if any control is destroyed.