43 * @lib xn3layoutengine.lib |
43 * @lib xn3layoutengine.lib |
44 * @since S60 5.0 |
44 * @since S60 5.0 |
45 */ |
45 */ |
46 NONSHARABLE_CLASS( CXnViewAdapter ) : public CAknView, |
46 NONSHARABLE_CLASS( CXnViewAdapter ) : public CAknView, |
47 public MXnUiStateObserver |
47 public MXnUiStateObserver |
48 { |
48 { |
49 private: |
|
50 // friend classes |
|
51 friend class CXnViewManager; |
|
52 |
|
53 public: |
49 public: |
54 /** |
50 /** |
55 * Two-phase constructor |
51 * Two-phase constructor |
56 */ |
52 */ |
57 static CXnViewAdapter* NewL( CXnAppUiAdapter& aAdapter ); |
53 static CXnViewAdapter* NewL( CXnAppUiAdapter& aAdapter ); |
169 * @param aAwake ETrue if controls should exit from powersavemode, |
165 * @param aAwake ETrue if controls should exit from powersavemode, |
170 * EFalse if controls should enter to powersavemode. |
166 * EFalse if controls should enter to powersavemode. |
171 */ |
167 */ |
172 void ChangeControlsStateL( TBool aAwake ); |
168 void ChangeControlsStateL( TBool aAwake ); |
173 |
169 |
174 private: |
|
175 // new functions |
|
176 |
|
177 /** |
170 /** |
178 * Activates new container ro view. |
171 * Activates new container ro view. |
179 * Deactivates internally previous container if it exists. |
172 * Deactivates internally previous container if it exists. |
180 * This is always called from DoActivateL or from CXnViewManager. |
173 * This is always called from DoActivateL or from CXnViewManager when |
|
174 * active view data is changed. |
181 * |
175 * |
182 * @since S60 5.0 |
176 * @since S60 5.0 |
183 * @param aContainer Container to activate |
177 * @param aContainer Container to activate |
184 * @param aEnterEditState ETrue if activated container should be set to edit state. |
178 * @param aEnterEditState ETrue if activated container should be set to edit state. |
185 * @param aForceActivation if ETrue forces deactivation and then activation even if |
179 * @param aEffect Effect uid, default no effect |
186 * the conntainer remains the same |
|
187 */ |
180 */ |
188 void ActivateContainerL( CXnViewData& aContainer, |
181 void ActivateContainerL( CXnViewData& aContainer, |
189 TBool aEnterEditState = EFalse, TBool aForceActivation = EFalse ); |
182 TBool aEnterEditState = EFalse, TUid aEffect = TUid::Null() ); |
190 |
183 |
|
184 private: |
|
185 // new functions |
|
186 |
191 /** |
187 /** |
192 * Deactivates the current container from view. |
188 * Deactivates the current container from view. |
193 * |
189 * |
194 * @since S60 5.0 |
190 * @since S60 5.0 |
|
191 * @param aHide ETrue if old container is hidden, EFalse otherwise |
195 */ |
192 */ |
196 void DeactivateContainerL(); |
193 void DeactivateContainerL( TBool aHide = ETrue ); |
197 |
194 |
198 /** |
195 /** |
199 * Activates default container to view. |
196 * Activates default container to view. |
200 * Deactivates internally previous container if it exists. |
197 * Deactivates internally previous container if it exists. |
201 * |
198 * |