Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <COEMAIN.H>
Link against: cone.lib

Class MCoeFocusObserver

class MCoeFocusObserver;

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.

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

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

Members

Defined in MCoeFocusObserver:


Construction and destruction


MCoeFocusObserver()

protected: IMPORT_C MCoeFocusObserver();

Description

[Top]


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.


MCoeFocusObserver_Reserved_1()

private: IMPORT_C virtual void MCoeFocusObserver_Reserved_1();

Description


MCoeFocusObserver_Reserved_2()

private: IMPORT_C virtual void MCoeFocusObserver_Reserved_2();

Description