Location:
coeauis.h
Link against: cone.lib
CCoeAppUiSimple
Supported from 5.0
Simple application UI.
Applications which use this class designate one control to be the
root control — which receives all key events for the application.
The root control must handle key events itself or channel them to other
controls within the application, by calling
CCoeControl::OfferKeyEventL()
.
In practise, most realistic applications use the standard app
UI — CCoeAppUi
. The main difference is that this
class provides a control stack rather than a root control.
|
Defined in CCoeAppUiSimple
:
CCoeAppUiSimple()
, HandleForegroundEventL()
, HandleKeyEventL()
, HandleWsEventL()
, SetRootControl()
, ~CCoeAppUiSimple()
Inherited from CBase
:
operator new()
Inherited from CCoeAppUiBase
:
PrepareToExit()
void SetRootControl(CCoeControl* aControl);
Sets the simple app UI’s root control. This control will
subsequently receive all key events for the application, which it should
process or pass to other controls in the application using
CCoeControl::OfferKeyEventL()
.
|
protected: void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination);
Handles standard events.
The function is called whenever the window server sends a standard
event to the application. It calls one of three functions, according to the
type of the event: for key press events it calls
HandleKeyEventL()
, for pointer events it calls
CCoeControl::ProcessPointerEventL()
on the control given by
aDestination
, and for focus changed events it calls
HandleForegroundEventL()
.
|
private: virtual void HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
Handles key events. It is called by HandleWsEventL()
when
a key press event occurs. It may be overridden by derived classes. The default
implementation calls CCoeControl::OfferKeyEventL()
on the root
control.
|
private: virtual void HandleForegroundEventL(TBool aForeground);
Handles changes in keyboard focus. This function is called from
HandleWsEventL()
when an event occurs of type
EEventFocusLost
or EEventFocusGained
.
The default implementation calls CCoeControl::SetFocus()
on
the application’s root control, passing aForeground
as the
aFocus
parameter. It may be overridden by derived
classes.
|