Alf::IAlfAppEventListener Class Reference

class Alf::IAlfAppEventListener
Public Member Functions
voidhandleApplicationEvent(const UString &, const TAlfEvent &)

Member Functions Documentation

handleApplicationEvent(const UString &, const TAlfEvent &)

voidhandleApplicationEvent(const UString &aCmd,
const TAlfEvent &aEvent
)[pure virtual]

handleApplicationEvent

Function will be called when application event triggers. Application has to register itself to listen events by using duiengine's subscribeAppEvent function

example: <appevents> <eventhandler id="pressed" owner="gridwidget1"> <eventinput id="pressedinput" name="customevent"> <property name="eventid" value="1333">

</eventinput> <eventoutput name="appevent"> <property value="itemclicked"> </eventoutput> </eventhandler> </appevents>

Register your application to listen application events via IDuiEngineConstruction: duiEngineConstructionInterface->subscribeAppEvents(*this);

aCmd is the value you have set on property's value attribute, in this case "itemclicked"

Parameters

const UString & aCmdcommand which is specified to eventoutput
const TAlfEvent & aEventcontains event specific data