--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/webengine/webkitutils/stmgesturefw/inc/flickgesturerecogniser.h Wed Sep 01 12:28:30 2010 +0100
@@ -0,0 +1,71 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Flick Recognizer
+*
+*/
+
+#ifndef FLICKGESTURERECOGNISER_H_
+#define FLICKGESTURERECOGNISER_H_
+
+#include "rt_gestureengineif.h"
+#include <rt_gestureif.h>
+#include <rt_gesturelistener.h>
+
+class CCoeControl ;
+
+namespace stmGesture
+{
+
+/*!
+ * CFlickGestureRecogniser handles release "gesture"
+ * This is countarpart to touch gesture recogniser, just
+ * informing the app that ERelease has been seen.
+ * This should be placed towards the end of the list of gesture
+ * recognisers, all other recognisers which handle ERelease with
+ * some other events preceding the ERelease must be before this one.
+ *
+ */
+NONSHARABLE_CLASS( CFlickGestureRecogniser ): public CGestureRecogniser
+{
+public:
+ static const TGestureUid KUid = EGestureUidFlick;
+
+ /** Two-phase constructor */
+ static CFlickGestureRecogniser* NewL(MGestureListener* aListener);
+ virtual ~CFlickGestureRecogniser();
+
+ /*!
+ * MGestureRecogniserIf methods
+ */
+ virtual TGestureRecognitionState recognise(int numOfActiveStreams, MGestureEngineIf* ge) ;
+ virtual void release(MGestureEngineIf* ge) ;
+
+ virtual TGestureUid gestureUid() const
+ {
+ return KUid;
+ }
+
+public:
+ void setFlickingSpeed(float aSpeed) __SOFTFP;
+
+private:
+ CFlickGestureRecogniser(MGestureListener* aListener) ;
+
+private:
+ float m_speed ;
+};
+
+} // namespace
+
+#endif /* FLICKGESTURERECOGNISER_H_ */