1 /* |
|
2 * ============================================================================ |
|
3 * Name : hgteleportgestureobserver.h |
|
4 * Part of : Hg Teleport |
|
5 * Description : Define gesture observer interface |
|
6 * Version : %version: 3 % |
|
7 * |
|
8 * Copyright © 2008 Nokia. All rights reserved. |
|
9 * This material, including documentation and any related computer |
|
10 * programs, is protected by copyright controlled by Nokia. All |
|
11 * rights are reserved. Copying, including reproducing, storing, |
|
12 * adapting or translating, any or all of this material requires the |
|
13 * prior written consent of Nokia. This material also contains |
|
14 * confidential information which may not be disclosed to others |
|
15 * without the prior written consent of Nokia. |
|
16 * ============================================================================ |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef HGTELEPORTGESTUREOBSERVER_H |
|
21 #define HGTELEPORTGESTUREOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <akntouchgesturefw.h> |
|
25 |
|
26 /** |
|
27 * MHgTeleportGestureObserver |
|
28 * Define gesture observer interface |
|
29 */ |
|
30 NONSHARABLE_CLASS(MHgTeleportEventControlerObserver) |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Declare drag gesture handling. |
|
35 * @param aOffset - drag distance |
|
36 */ |
|
37 virtual void MoveOffset(const TPoint& aOffset)=0; |
|
38 |
|
39 /** |
|
40 * Declare tap gesture handling. |
|
41 * @param aPoint - tap position |
|
42 */ |
|
43 virtual void TapL(const TPoint& aPoint)=0; |
|
44 |
|
45 /** |
|
46 * Declare long tap gesture handling. |
|
47 * @param aPoint - tap position |
|
48 */ |
|
49 virtual void LongTapL(const TPoint& aPoint)=0; |
|
50 |
|
51 /** |
|
52 * Declare drag gesture handling. |
|
53 * @param aEvent - drag event |
|
54 */ |
|
55 virtual void Drag(const AknTouchGestureFw::MAknTouchGestureFwDragEvent& aEvent) =0; |
|
56 |
|
57 /** |
|
58 * Declare animation stop handling |
|
59 */ |
|
60 virtual void Stop()=0; |
|
61 |
|
62 /** |
|
63 * Declare getter for view position |
|
64 */ |
|
65 virtual TPoint ViewPos() const =0; |
|
66 }; |
|
67 |
|
68 #endif // HGTELEPORTGESTUREOBSERVER_H |
|