|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef QSTMFLICKGESTURERECOGNISER_H_ |
|
19 #define QSTMFLICKGESTURERECOGNISER_H_ |
|
20 |
|
21 #include <qstmgestureengine_if.h> |
|
22 #include <qstmgesture_if.h> |
|
23 #include <qstmgesturelistener_if.h> |
|
24 |
|
25 namespace qstmGesture |
|
26 { |
|
27 |
|
28 /*! |
|
29 * QStm_FlickGestureRecogniser handles release "gesture" |
|
30 * This is countarpart to touch gesture recogniser, just |
|
31 * informing the app that ERelease has been seen. |
|
32 * This should be placed towards the end of the list of gesture |
|
33 * recognisers, all other recognisers which handle ERelease with |
|
34 * some other events preceding the ERelease must be before this one. |
|
35 * |
|
36 */ |
|
37 class QStm_FlickGestureRecogniser : public QStm_GestureRecogniser |
|
38 { |
|
39 public: |
|
40 static const QStm_GestureUid KUid = EGestureUidFlick; |
|
41 |
|
42 virtual ~QStm_FlickGestureRecogniser(); |
|
43 |
|
44 virtual QStm_GestureRecognitionState recognise(int numOfActiveStreams, QStm_GestureEngineIf* ge) ; |
|
45 virtual void release(QStm_GestureEngineIf* ge) ; |
|
46 |
|
47 virtual QStm_GestureUid gestureUid() const { return KUid; } |
|
48 |
|
49 void setFlickingSpeed(float aSpeed) /*__SOFTFP*/; |
|
50 |
|
51 QStm_FlickGestureRecogniser(QStm_GestureListenerIf* listener) ; |
|
52 |
|
53 private: |
|
54 float m_speed ; |
|
55 }; |
|
56 |
|
57 } // namespace |
|
58 |
|
59 #endif /* QSTMFLICKGESTURERECOGNISER_H_ */ |