class Alf::IAlfAppEventListener |
Public Member Functions | |
---|---|
void | handleApplicationEvent(const UString &, const TAlfEvent &) |
void | handleApplicationEvent | ( | 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"
const UString & aCmd | command which is specified to eventoutput |
const TAlfEvent & aEvent | contains event specific data |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.