equal
deleted
inserted
replaced
177 iProgressDialog->RunLD(); |
177 iProgressDialog->RunLD(); |
178 } |
178 } |
179 else |
179 else |
180 { |
180 { |
181 iProgressDialog->ProcessFinishedL(); |
181 iProgressDialog->ProcessFinishedL(); |
182 iGlxGridViewNotifyObserver.HandleDialogDismissedL(); |
|
183 if (iProgressDialog) |
182 if (iProgressDialog) |
184 { |
183 { |
185 iProgressDialog = NULL; |
184 iProgressDialog = NULL; |
186 iProgressInfo = NULL; |
185 iProgressInfo = NULL; |
187 } |
186 } |
221 delete iProgressbarTicker; |
220 delete iProgressbarTicker; |
222 iProgressbarTicker = NULL; |
221 iProgressbarTicker = NULL; |
223 } |
222 } |
224 iProgressDialog = NULL; |
223 iProgressDialog = NULL; |
225 iProgressInfo = NULL; |
224 iProgressInfo = NULL; |
|
225 iGlxGridViewNotifyObserver.HandleDialogDismissedL(); |
226 } |
226 } |
227 |
227 |
228 // ----------------------------------------------------------------------------- |
228 // ----------------------------------------------------------------------------- |
229 // CalculateDisplayBarIncrement |
229 // CalculateDisplayBarIncrement |
230 // ----------------------------------------------------------------------------- |
230 // ----------------------------------------------------------------------------- |
254 // ----------------------------------------------------------------------------- |
254 // ----------------------------------------------------------------------------- |
255 // |
255 // |
256 void EXPORT_C CGlxProgressIndicator::ShowProgressbarL() |
256 void EXPORT_C CGlxProgressIndicator::ShowProgressbarL() |
257 { |
257 { |
258 TRACER("CGlxProgressIndicator::ShowProgressbarL"); |
258 TRACER("CGlxProgressIndicator::ShowProgressbarL"); |
|
259 if (iProgressDialog) |
|
260 { |
|
261 GLX_DEBUG1("Glx: ShowProgressbarL() - Already displayed. No need to Re-create it!"); |
|
262 return; |
|
263 } |
|
264 |
259 TInt itemsLeft = iUiUtility->GetItemsLeftCount(); |
265 TInt itemsLeft = iUiUtility->GetItemsLeftCount(); |
260 GLX_DEBUG3("ShowProgressbarL itemsLeft(%d), iFinalCount(%d)", itemsLeft, |
266 GLX_DEBUG3("ShowProgressbarL itemsLeft(%d), iFinalCount(%d)", itemsLeft, |
261 iFinalCount); |
267 iFinalCount); |
262 |
268 |
263 if (iFinalCount < itemsLeft) |
269 if (iFinalCount < itemsLeft) |