equal
deleted
inserted
replaced
275 // CXnViewManager::~CXnViewManager() |
275 // CXnViewManager::~CXnViewManager() |
276 // C++ default destructor. |
276 // C++ default destructor. |
277 // ----------------------------------------------------------------------------- |
277 // ----------------------------------------------------------------------------- |
278 // |
278 // |
279 CXnViewManager::~CXnViewManager() |
279 CXnViewManager::~CXnViewManager() |
280 { |
280 { |
281 delete iUiStartupPhase; |
|
282 |
|
283 delete iStabilityTimer; |
281 delete iStabilityTimer; |
284 |
282 |
285 iObservers.Reset(); |
283 iObservers.Reset(); |
286 |
284 |
287 delete iRootData; |
285 delete iRootData; |
301 delete iComposer; |
299 delete iComposer; |
302 delete iEditor; |
300 delete iEditor; |
303 delete iOomSysHandler; |
301 delete iOomSysHandler; |
304 } |
302 } |
305 |
303 |
306 // ----------------------------------------------------------------------------- |
|
307 // CXnViewManager::PropertyChangedL() |
|
308 // |
|
309 // ----------------------------------------------------------------------------- |
|
310 // |
|
311 void CXnViewManager::PropertyChangedL( const TUint32 aKey, const TInt aValue ) |
|
312 { |
|
313 if ( aKey == KPSStartupUiPhase && aValue == EStartupUiPhaseAllDone ) |
|
314 { |
|
315 iUiStartupPhaseAllDone = ETrue; |
|
316 |
|
317 iAppUiAdapter.ViewAdapter().ActivateContainerL( ActiveViewData() ); |
|
318 } |
|
319 |
|
320 iUiStartupPhaseAllDone = ETrue; |
|
321 } |
|
322 |
|
323 // ----------------------------------------------------------------------------- |
|
324 // CXnViewManager::UiStartupPhaseAllDone() |
|
325 // |
|
326 // ----------------------------------------------------------------------------- |
|
327 // |
|
328 TBool CXnViewManager::UiStartupPhaseAllDone() const |
|
329 { |
|
330 return iUiStartupPhaseAllDone; |
|
331 } |
|
332 |
|
333 // ----------------------------------------------------------------------------- |
304 // ----------------------------------------------------------------------------- |
334 // CXnViewManager::ConstructL() |
305 // CXnViewManager::ConstructL() |
335 // 2nd phase constructor |
306 // 2nd phase constructor |
336 // ----------------------------------------------------------------------------- |
307 // ----------------------------------------------------------------------------- |
337 // |
308 // |
372 // Load root configuration and initial view. |
343 // Load root configuration and initial view. |
373 iRootData->Load(); |
344 iRootData->Load(); |
374 |
345 |
375 CleanupStack::PopAndDestroy(); // DisableRenderUiLC(); |
346 CleanupStack::PopAndDestroy(); // DisableRenderUiLC(); |
376 |
347 |
377 // Determine UI startup phase |
348 // Activate initial view already here to get publishers loaded |
378 delete iUiStartupPhase; |
349 ActiveViewData().SetActive( ETrue ); |
379 iUiStartupPhase = NULL; |
|
380 |
|
381 iUiStartupPhaseAllDone = EFalse; |
|
382 |
|
383 iUiStartupPhase = CXnPropertySubscriber::NewL( |
|
384 KPSUidStartup, KPSStartupUiPhase, *this ); |
|
385 } |
350 } |
386 |
351 |
387 // ----------------------------------------------------------------------------- |
352 // ----------------------------------------------------------------------------- |
388 // CXnViewManager::ReloadUiL() |
353 // CXnViewManager::ReloadUiL() |
389 // Reloads the application UI and initial ivew |
354 // Reloads the application UI and initial ivew |