58 * member variable |
56 * member variable |
59 * @param aEngine, handle to the slide show engine |
57 * @param aEngine, handle to the slide show engine |
60 * @param aEnv, handle to CAlfEnv |
58 * @param aEnv, handle to CAlfEnv |
61 * @param aDisplay, handle to CAlfDisplay |
59 * @param aDisplay, handle to CAlfDisplay |
62 */ |
60 */ |
63 static CShwGestureControl* NewL(CAlfEnv& aEnv,CAlfDisplay& aDisplay, |
61 static CShwGestureControl* NewL(CAlfEnv& aEnv,CAlfDisplay& aDisplay); |
64 MShwGestureObserver& aObserver); |
|
65 |
62 |
66 /** |
63 /** |
67 * HandleGestureL |
64 * HandleGestureL |
68 * From MGestureObserver |
65 * From MGestureObserver |
69 * see @ref MGestureObserver |
66 * see @ref MGestureObserver |
70 */ |
67 */ |
71 void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); |
68 void HandleGestureL( const GestureHelper::MGestureEvent& aEvent ); |
72 |
69 |
73 /** |
70 /** |
74 * ~~CShwGestureControl |
71 * ~CShwGestureControl |
75 * standard C++ destructor |
72 * standard C++ destructor |
76 */ |
73 */ |
77 ~CShwGestureControl(); |
74 ~CShwGestureControl(); |
|
75 |
|
76 /** |
|
77 * AddObserver |
|
78 * Add an Observer |
|
79 * @param aObserver, Observer to be added. |
|
80 */ |
|
81 void AddObserver(MShwGestureObserver* aObserver); |
|
82 |
|
83 /** |
|
84 * RemoveObserver |
|
85 * Remove an Observer |
|
86 * @param aEngine, handle to the slide show engine |
|
87 */ |
|
88 void RemoveObserver(MShwGestureObserver* aObserver); |
78 |
89 |
79 private: |
90 private: |
80 |
91 |
81 /** |
92 /** |
82 * CShwGestureControl |
93 * CShwGestureControl |
83 * C++ constructor |
94 * C++ constructor |
84 */ |
95 */ |
85 CShwGestureControl(MShwGestureObserver& aObserver); |
96 CShwGestureControl(); |
86 |
97 |
87 /** |
98 /** |
88 * ConstructL |
99 * ConstructL |
89 * 2nd Phase constructor |
100 * 2nd Phase constructor |
90 */ |
101 */ |
91 void ConstructL( CAlfEnv& aEnv,CAlfDisplay& aDisplay ); |
102 void ConstructL( CAlfEnv& aEnv,CAlfDisplay& aDisplay ); |
92 |
103 |
93 private: |
104 private: |
94 |
105 |
95 /* does not own **/ |
106 /** Array of observers (does not own ) */ |
96 MShwGestureObserver& iObserver; |
107 // As per present design of the SS view, there is need only for one observer, |
|
108 // but this is more generic. Also this doesnt seem like a perfomance critical path |
|
109 RPointerArray<MShwGestureObserver> iObservers; |
97 }; |
110 }; |
98 |
111 |
99 |
112 |
100 #endif //SHWGESTURECONTROL_H |
113 #endif //SHWGESTURECONTROL_H |
101 |
114 |