|
1 /* |
|
2 * Copyright (c) 2009 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: Class to provide physics interface for LCDUI |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MMIDLCDUIPHYSICSINTERFACE_H |
|
20 #define MMIDLCDUIPHYSICSINTERFACE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 #include "MMIDLcduiPhysicsObserver.h" |
|
26 |
|
27 class MMIDLcduiPhysicsInterface |
|
28 { |
|
29 public: |
|
30 |
|
31 virtual TBool FeatureEnabled() = 0; |
|
32 |
|
33 virtual void InitPhysicsL(const TSize& aWorldSize, const TSize& aViewSize, const TBool aDirection) = 0; |
|
34 |
|
35 virtual void RegisterPanningPosition(const TPoint& aPosition) = 0; |
|
36 |
|
37 virtual TBool StartFlick(const TPoint& aLength, TTime aDuration) = 0; |
|
38 |
|
39 virtual TBool CanBeStopped() const = 0; |
|
40 |
|
41 virtual void StopPhysics() = 0; |
|
42 |
|
43 virtual void ResetFriction() = 0; |
|
44 |
|
45 virtual TInt DragThreshold() const = 0; |
|
46 |
|
47 virtual TInt HighlightTimeout() const = 0; |
|
48 |
|
49 virtual ~MMIDLcduiPhysicsInterface() {} |
|
50 }; |
|
51 |
|
52 // Typedef for factory function |
|
53 typedef MMIDLcduiPhysicsInterface*(*GetInstance)(CCoeControl*, MMIDLcduiPhysicsObserver*); |
|
54 |
|
55 #endif // MMIDLCDUIPHYSICSINTERFACE_H |