AknTouchGestureFw::MAknTouchGestureFwObserver Class Reference

class AknTouchGestureFw::MAknTouchGestureFwObserver

Touch gesture framework observer.

Touch gesture framework notifies observer when user makes gestures in the gesture control area. Observer class should implement this interface and register itself to CAknTouchGestureFw in order to receive gesture events. Gesture interest should also be set to enable correct gesture event notifications.

The sent events are of type MAknTouchGestureFwEvent . The event should be casted according to event group before all data can be acquired.

Example when observer is interested in drag and flick gestures:
        void CTouchGestureObserver::HandleTouchGestureL( MAknTouchGestureFwEvent& aEvent )
     {
     if ( ( MAknTouchGestureFwFlickEvent* flickEvent = AknTouchGestureFwEventFlick( aEvent ) ) )
         {
         ...
         }
     else if ( ( MAknTouchGestureFwDragEvent* dragEvent = AknTouchGestureFwEventDrag( aEvent ) ) )
         {
         ...
         }
     }
       
akntouchgesturefw
Since
S60 v5.2
Public Member Functions
void HandleTouchGestureL ( MAknTouchGestureFwEvent &)

Member Functions Documentation

HandleTouchGestureL(MAknTouchGestureFwEvent &)

void HandleTouchGestureL ( MAknTouchGestureFwEvent & aEvent ) [pure virtual]

Handles the gesture event. Do not start CActiveScheduler in this method implementation.

Parameters

MAknTouchGestureFwEvent & aEvent Event describing the gesture.