stmGesture::MGestureListener Class Reference

class stmGesture::MGestureListener

The gesture listener interface. This interface needs to be implemented by the listener of the standard gestures implemented in the gesture framework.

Public Member Functions
voidgestureEnter(MGestureIf &)
voidgestureExit(TGestureUid)
CCoeControl *getOwner()

Member Functions Documentation

gestureEnter(MGestureIf &)

voidgestureEnter(MGestureIf &theGesture)[pure virtual]

The method that will be called by the gesture framework to inform about a gesture being recognised.

Parameters

MGestureIf & theGesture

gestureExit(TGestureUid)

voidgestureExit(TGestureUidgestureUid)[pure virtual]
The method to inform the listener that the gesture has ended. This happens if another gesture is recognised or e.g. the Release UI event is handled.
Note:

Some gestures produce only gestureEnter() callback and no gestureExit().

Parameters

TGestureUid gestureUid

getOwner()

CCoeControl *getOwner()[pure virtual]

The listener needs to provide the target control (CCoeControl*) to the standard gestures. Since the gesture framework processes all events in the application, the gesture recognisers check whether the events are targeted to the listener owning control. Not all gesture recognisers need to perform this check.