equal
deleted
inserted
replaced
34 #include <aknViewAppUi.h> // CAknViewAppUi |
34 #include <aknViewAppUi.h> // CAknViewAppUi |
35 #include <eikmenub.h> // CEikMenuBar, CEikMenuPane |
35 #include <eikmenub.h> // CEikMenuBar, CEikMenuPane |
36 #include <eikmenup.h> // CEikMenuPaneItem |
36 #include <eikmenup.h> // CEikMenuPaneItem |
37 #include <akntitle.h> // CAknTitlePane |
37 #include <akntitle.h> // CAknTitlePane |
38 #include <StringLoader.h> // StringLoader |
38 #include <StringLoader.h> // StringLoader |
39 #include <AknInfoPopupNoteController.h> // CAknInfoPopupNoteController |
|
40 #include <appmngr2.rsg> // Resource IDs |
39 #include <appmngr2.rsg> // Resource IDs |
41 |
40 |
42 const TUid KStatusPaneUid = { EEikStatusPaneUidTitle }; |
41 const TUid KStatusPaneUid = { EEikStatusPaneUidTitle }; |
43 |
42 |
44 |
43 |
66 if( iContainer ) |
65 if( iContainer ) |
67 { |
66 { |
68 AppUi()->RemoveFromViewStack( *this, iContainer ); |
67 AppUi()->RemoveFromViewStack( *this, iContainer ); |
69 delete iContainer; |
68 delete iContainer; |
70 } |
69 } |
71 delete iInfoPopup; |
|
72 } |
70 } |
73 |
71 |
74 // --------------------------------------------------------------------------- |
72 // --------------------------------------------------------------------------- |
75 // CAppMngr2ListView::RefreshL() |
73 // CAppMngr2ListView::RefreshL() |
76 // --------------------------------------------------------------------------- |
74 // --------------------------------------------------------------------------- |
87 { |
85 { |
88 UpdateMiddleSoftkeyCommandL(); |
86 UpdateMiddleSoftkeyCommandL(); |
89 StopDisplayingMenuBar(); |
87 StopDisplayingMenuBar(); |
90 iMaintainFocus = EFalse; |
88 iMaintainFocus = EFalse; |
91 } |
89 } |
92 |
90 |
93 // Close progress note used in application startup |
|
94 if( iInfoPopup && !aMoreRefreshesExpected ) |
|
95 { |
|
96 iInfoPopup->HideInfoPopupNote(); |
|
97 delete iInfoPopup; |
|
98 iInfoPopup = NULL; |
|
99 } |
|
100 |
|
101 FLOG( "CAppMngr2ListView::RefreshL() end" ); |
91 FLOG( "CAppMngr2ListView::RefreshL() end" ); |
102 } |
92 } |
103 } |
93 } |
104 |
94 |
105 // --------------------------------------------------------------------------- |
95 // --------------------------------------------------------------------------- |
235 AppUi()->AddToViewStackL( *this, iContainer ); |
225 AppUi()->AddToViewStackL( *this, iContainer ); |
236 iContainer->ActivateL(); |
226 iContainer->ActivateL(); |
237 } |
227 } |
238 UpdateMiddleSoftkeyCommandL(); |
228 UpdateMiddleSoftkeyCommandL(); |
239 |
229 |
240 if( iInfoPopup == NULL ) |
230 // Note Infopopup is removed and replaced with wait dialog. |
241 { |
|
242 iInfoPopup = CAknInfoPopupNoteController::NewL(); |
|
243 iInfoPopup->SetTimePopupInView( 0 ); |
|
244 iInfoPopup->HideWhenAppFaded( EFalse ); |
|
245 HBufC* noteText = StringLoader::LoadLC( R_QTN_AM_SCANNING_MEMORY ); |
|
246 iInfoPopup->SetTextL( *noteText ); |
|
247 CleanupStack::PopAndDestroy( noteText ); |
|
248 iInfoPopup->ShowInfoPopupNote(); |
|
249 } |
|
250 } |
231 } |
251 |
232 |
252 // --------------------------------------------------------------------------- |
233 // --------------------------------------------------------------------------- |
253 // CAppMngr2ListView::DoDeactivate() |
234 // CAppMngr2ListView::DoDeactivate() |
254 // --------------------------------------------------------------------------- |
235 // --------------------------------------------------------------------------- |
260 if( iContainer ) |
241 if( iContainer ) |
261 { |
242 { |
262 AppUi()->RemoveFromViewStack( *this, iContainer ); |
243 AppUi()->RemoveFromViewStack( *this, iContainer ); |
263 delete iContainer; |
244 delete iContainer; |
264 iContainer = NULL; |
245 iContainer = NULL; |
265 } |
|
266 if( iInfoPopup ) |
|
267 { |
|
268 delete iInfoPopup; |
|
269 iInfoPopup = NULL; |
|
270 } |
246 } |
271 } |
247 } |
272 |
248 |
273 // --------------------------------------------------------------------------- |
249 // --------------------------------------------------------------------------- |
274 // CAppMngr2ListView::Model() |
250 // CAppMngr2ListView::Model() |