|
1 /* |
|
2 * Copyright (c) 2006-2007 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: The settings model for the slideshow |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef SHWGESTURECONTROL_H |
|
22 #define SHWGESTURECONTROL_H |
|
23 |
|
24 |
|
25 #include <gestureobserver.h> |
|
26 #include <gesturecontrol.h> |
|
27 #include "shwgestureobserver.h" |
|
28 |
|
29 //namespace |
|
30 using namespace GestureHelper; |
|
31 |
|
32 //Forward declaration |
|
33 class CAlfEnv; |
|
34 class CGestureHelper; |
|
35 class MGestureObserver; |
|
36 class CShwSlideshowEngine; |
|
37 |
|
38 /** |
|
39 * CShwGestureControl is used to enable handling of gesture events in slide show |
|
40 * Gesture support is necessary to handle swipes in "Manual Mode" |
|
41 * @ MC Photos Slideshow UI spec DeSW R8 v. 1.0.doc |
|
42 * Not exposed, for internal use of Slide show |
|
43 * For documentation Gesture Helper Classes , |
|
44 * see @ref MGestureObserver. |
|
45 * see @ref CGestureControl |
|
46 */ |
|
47 |
|
48 NONSHARABLE_CLASS( CShwGestureControl ) : public CAlfControl, |
|
49 public GestureHelper::MGestureObserver |
|
50 { |
|
51 |
|
52 public: |
|
53 |
|
54 /** |
|
55 * NewL |
|
56 * static function for 2-phased object creation |
|
57 * NewLC not provided as the CShwGestureControl is primarily intended to be a |
|
58 * member variable |
|
59 * @param aEngine, handle to the slide show engine |
|
60 * @param aEnv, handle to CAlfEnv |
|
61 * @param aDisplay, handle to CAlfDisplay |
|
62 */ |
|
63 static CShwGestureControl* NewL(CAlfEnv& aEnv,CAlfDisplay& aDisplay, |
|
64 MShwGestureObserver& aObserver); |
|
65 |
|
66 /** |
|
67 * HandleGestureL |
|
68 * From MGestureObserver |
|
69 * see @ref MGestureObserver |
|
70 */ |
|
71 void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); |
|
72 |
|
73 /** |
|
74 * ~~CShwGestureControl |
|
75 * standard C++ destructor |
|
76 */ |
|
77 ~CShwGestureControl(); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * CShwGestureControl |
|
83 * C++ constructor |
|
84 */ |
|
85 CShwGestureControl(MShwGestureObserver& aObserver); |
|
86 |
|
87 /** |
|
88 * ConstructL |
|
89 * 2nd Phase constructor |
|
90 */ |
|
91 void ConstructL( CAlfEnv& aEnv,CAlfDisplay& aDisplay ); |
|
92 |
|
93 private: |
|
94 |
|
95 /* does not own **/ |
|
96 MShwGestureObserver& iObserver; |
|
97 }; |
|
98 |
|
99 |
|
100 #endif //SHWGESTURECONTROL_H |
|
101 |