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.
void CTouchGestureObserver::HandleTouchGestureL( MAknTouchGestureFwEvent& aEvent ) { if ( ( MAknTouchGestureFwFlickEvent* flickEvent = AknTouchGestureFwEventFlick( aEvent ) ) ) { ... } else if ( ( MAknTouchGestureFwDragEvent* dragEvent = AknTouchGestureFwEventDrag( aEvent ) ) ) { ... } }
Public Member Functions | |
---|---|
void | HandleTouchGestureL(MAknTouchGestureFwEvent &) |
void | HandleTouchGestureL | ( | MAknTouchGestureFwEvent & | aEvent | ) | [pure virtual] |
Handles the gesture event. Do not start CActiveScheduler in this method implementation.
MAknTouchGestureFwEvent & aEvent | Event describing the gesture. |
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.