|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: State Engine Configuration |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef STATEENGINECONFIGURATION_H_ |
|
19 #define STATEENGINECONFIGURATION_H_ |
|
20 |
|
21 #include "rt_uievent.h" |
|
22 #include "timerinterface.h" |
|
23 #include "statemachine_v2.h" |
|
24 |
|
25 |
|
26 namespace stmUiEventEngine |
|
27 { |
|
28 class CUiEventSender; |
|
29 |
|
30 |
|
31 NONSHARABLE_CLASS( CStateEngineConfiguration ): public CBase |
|
32 { |
|
33 public: |
|
34 CStateEngineConfiguration() ; |
|
35 void ConstructL(); |
|
36 ~CStateEngineConfiguration() ; |
|
37 |
|
38 void setTouchTimeArea(const long fingersize_mm) ; |
|
39 void setTouchArea(const long fingersize_mm) ; |
|
40 TAreaShape getTouchAreaShape() ; |
|
41 void setTouchAreaShape(const TAreaShape shape) ; |
|
42 unsigned int getTouchTimeout() ; |
|
43 void setTouchTimeout(unsigned int) ; |
|
44 void setHoldArea(const long fingersize_mm) ; |
|
45 TAreaShape getHoldAreaShape() ; |
|
46 void setHoldAreaShape(const TAreaShape shape) ; |
|
47 unsigned int getHoldTimeout() ; |
|
48 void setHoldTimeout(unsigned int a) ; |
|
49 unsigned int getTouchSuppressTimeout() ; |
|
50 void setTouchSuppressTimeout(unsigned int a) ; |
|
51 unsigned int getMoveSuppressTimeout() ; |
|
52 void setMoveSuppressTimeout(unsigned int a) ; |
|
53 bool addUiEventObserver(MUiEventObserver* observer) ; |
|
54 bool removeUiEventObserver(MUiEventObserver* observer) ; |
|
55 void enableLogging(bool a) ; |
|
56 |
|
57 private: |
|
58 void setTolerance(long fingersize_mm, TPoint& tolerance, TAreaShape shape) ; |
|
59 |
|
60 public: |
|
61 CUiEventSender* m_uiEventSender ; |
|
62 |
|
63 TAreaShape m_touchAreaShape ; |
|
64 TAreaShape m_holdAreaShape ; |
|
65 bool m_enableLogging ; |
|
66 TPoint m_touchTimeTolerance ; |
|
67 TPoint m_touchTolerance ; |
|
68 TPoint m_holdTolerance ; |
|
69 int m_touchTimerLimit ; |
|
70 int m_holdTimerLimit ; |
|
71 int m_suppressTimerLimit ; |
|
72 int m_moveSuppressTimerLimit ; |
|
73 |
|
74 |
|
75 }; |
|
76 |
|
77 } // namespace stmUiEventEngine |
|
78 |
|
79 #endif /* STATEENGINECONFIGURATION_H_ */ |