phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycardcontainer.cpp
equal
deleted
inserted
replaced
432 // ---------------------------------------------------------------------------- |
432 // ---------------------------------------------------------------------------- |
433 // |
433 // |
434 void CCCAppMyCardContainer::DoCheckExtensionFactoryL() |
434 void CCCAppMyCardContainer::DoCheckExtensionFactoryL() |
435 { |
435 { |
436 CCCAExtensionFactory* extension = iFactoryExtensionNotifier->ExtensionFactory(); |
436 CCCAExtensionFactory* extension = iFactoryExtensionNotifier->ExtensionFactory(); |
437 // if extension is not null, extensionfactory plugins are available -> |
437 // if extension is not null and view launcher supports mycard view then |
438 // show statuscontrol |
438 // show statuscontrol |
439 TBool visible = EFalse; |
439 TBool visible = EFalse; |
440 if( extension ) |
440 if( extension ) |
441 { |
441 { |
442 if ( !iViewLauncher ) |
442 if ( !iViewLauncher ) |
443 { |
443 { |
444 iViewLauncher = extension->CreateViewLauncherL(); |
444 iViewLauncher = extension->CreateViewLauncherL(); |
445 } |
445 } |
446 visible = ETrue; |
446 if( iViewLauncher && |
|
447 iViewLauncher->IsViewSupported( MCCAViewLauncher::EMyCardView ) ) |
|
448 { |
|
449 visible = ETrue; |
|
450 } |
447 } |
451 } |
448 else |
452 else |
449 { |
453 { |
450 delete iViewLauncher; |
454 delete iViewLauncher; |
451 iViewLauncher = NULL; |
455 iViewLauncher = NULL; |