|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _PROFILER_TOUCH_EVENT_ANIM_DLL_ |
|
20 #define _PROFILER_TOUCH_EVENT_ANIM_DLL_ |
|
21 |
|
22 /* |
|
23 * |
|
24 * TouchEventAnimDll.h |
|
25 * |
|
26 */ |
|
27 |
|
28 // system includes |
|
29 #include <w32adll.h> |
|
30 #include <e32def.h> |
|
31 |
|
32 |
|
33 |
|
34 /* |
|
35 * |
|
36 * Class definition of CProfilerTouchEventAnim |
|
37 * |
|
38 */ |
|
39 class CProfilerTouchEventAnim : public CWindowAnim |
|
40 { |
|
41 public: |
|
42 CProfilerTouchEventAnim(); |
|
43 virtual ~CProfilerTouchEventAnim(); |
|
44 |
|
45 // from CWindowAnim |
|
46 void ConstructL(TAny* aAny, TBool aHasFocus); |
|
47 void Redraw(); |
|
48 void FocusChanged(TBool aState); |
|
49 // from MEventHandler |
|
50 TBool OfferRawEvent(const TRawEvent& aRawEvent); |
|
51 // from CAnim |
|
52 void Animate(TDateTime* aDateTime); |
|
53 void Command(TInt aOpcode, TAny* aArgs); |
|
54 TInt CommandReplyL(TInt aOpcode, TAny* aArgs); |
|
55 |
|
56 private: |
|
57 TBool HandlePointerDown(TPoint aPoint); |
|
58 TBool HandlePointerUp(TPoint aPoint); |
|
59 TBool HandleKeyDown(TInt aScanCode); |
|
60 TBool HandleKeyUp(TInt aScanCode); |
|
61 private: |
|
62 TInt iState; |
|
63 }; |
|
64 |
|
65 |
|
66 /* |
|
67 * |
|
68 * Class definition of CProfilerTouchEventAnimDll |
|
69 * |
|
70 */ |
|
71 |
|
72 class CProfilerTouchEventAnimDll : public CAnimDll |
|
73 { |
|
74 public: |
|
75 CProfilerTouchEventAnimDll(); |
|
76 |
|
77 public: |
|
78 IMPORT_C CAnim* CreateInstanceL(TInt aType); |
|
79 |
|
80 }; |
|
81 |
|
82 |
|
83 #endif |