phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycardcontainer.cpp
equal
deleted
inserted
replaced
443 // |
443 // |
444 void CCCAppMyCardContainer::DoCheckExtensionFactoryL() |
444 void CCCAppMyCardContainer::DoCheckExtensionFactoryL() |
445 { |
445 { |
446 CCCAExtensionFactory* extension = iFactoryExtensionNotifier->ExtensionFactory(); |
446 CCCAExtensionFactory* extension = iFactoryExtensionNotifier->ExtensionFactory(); |
447 TBool visible = EFalse; |
447 TBool visible = EFalse; |
|
448 MCCAStatusProvider* ccaStatusProvider = NULL; |
|
449 |
448 if( extension ) |
450 if( extension ) |
449 { |
451 { |
450 if ( !iViewLauncher ) |
452 if ( !iViewLauncher ) |
451 { |
453 { |
452 iViewLauncher = extension->CreateViewLauncherL(); |
454 iViewLauncher = extension->CreateViewLauncherL(); |
460 else |
462 else |
461 { |
463 { |
462 delete iViewLauncher; |
464 delete iViewLauncher; |
463 iViewLauncher = NULL; |
465 iViewLauncher = NULL; |
464 } |
466 } |
465 |
467 |
466 CCCAppStatusControl* statusControl = iHeaderCtrl->StatusControl(); |
468 CCCAppStatusControl* statusControl = iHeaderCtrl->StatusControl(); |
|
469 |
467 if( statusControl ) |
470 if( statusControl ) |
468 { |
471 { |
469 statusControl->MakeVisible( visible ); |
472 if( extension ) |
|
473 { |
|
474 TAny* factoryExtension = extension->FactoryExtension( KCCAExtensionFactoryStatusProviderCreatorUid ); |
|
475 |
|
476 if( factoryExtension ) |
|
477 { |
|
478 MCCAExtensionFactoryStatusProviderCreator* statusProviderCreator = |
|
479 static_cast<MCCAExtensionFactoryStatusProviderCreator*>( factoryExtension ); |
|
480 |
|
481 if( statusProviderCreator ) |
|
482 { |
|
483 ccaStatusProvider = statusProviderCreator->CreateStatusProviderL(); |
|
484 } |
|
485 } |
|
486 } |
|
487 |
|
488 statusControl->SetStatusProvider( ccaStatusProvider ); |
|
489 statusControl->MakeVisible( visible ); |
470 LayoutControls(); |
490 LayoutControls(); |
471 DrawDeferred(); |
491 DrawDeferred(); |
472 } |
492 } |
473 } |
493 } |
474 |
494 |