|
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 QSTMRELEASEGESTURERECOGNISER_H_ |
|
19 #define QSTMRELEASEGESTURERECOGNISER_H_ |
|
20 |
|
21 #include <qstmgestureengine_if.h> |
|
22 #include <qstmgesture_if.h> |
|
23 #include <qstmgesturelistener_if.h> |
|
24 |
|
25 |
|
26 namespace qstmGesture |
|
27 { |
|
28 |
|
29 /*! |
|
30 * QStm_ReleaseGestureRecogniser handles release "gesture" |
|
31 * This is countarpart to touch gesture recogniser, just |
|
32 * informing the app that ERelease has been seen. |
|
33 * This should be placed towards the end of the list of gesture |
|
34 * recognisers, all other recognisers which handle ERelease with |
|
35 * some other events preceding the ERelease must be before this one. |
|
36 * |
|
37 */ |
|
38 class QStm_ReleaseGestureRecogniser : public QStm_GestureRecogniser |
|
39 { |
|
40 public: |
|
41 static const QStm_GestureUid KUid = EGestureUidRelease; |
|
42 virtual ~QStm_ReleaseGestureRecogniser(); |
|
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 void setArea(const QRect& theArea) ; |
|
49 |
|
50 QStm_ReleaseGestureRecogniser(QStm_GestureListenerIf* listener) ; |
|
51 |
|
52 private: |
|
53 QRect m_area ; |
|
54 }; |
|
55 |
|
56 } // namespace |
|
57 |
|
58 #endif /* QSTMRELEASEGESTURERECOGNISER_H_ */ |