diff -r 6b5524b4f673 -r 38bb213f60ba phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchermenuhandler.cpp --- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchermenuhandler.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchermenuhandler.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -374,9 +374,6 @@ case ECCAppCommLauncherDeleteCmd: DoDeleteCmdL(); break; - case ECCAppCommLauncherSendBCardCmd: - DoSendBCardCmdL(); - break; default: break; } @@ -547,27 +544,23 @@ TPtrC8 contactLink = param->Value().AsData(); // Update the CCA parameter contact data - TInt length = contactLink.Length(); - if ( length > 0 ) - { - HBufC16* link16 = HBufC16::NewLC( length ); - link16->Des().Copy( contactLink ); - iPlugin.AppEngine()->Parameter().SetContactDataL( link16->Des() ); - // Set contact data flag to EContactLink, because the parameters returned from - // phonebook AIW provider have conatct link but not contact id. - iPlugin.AppEngine()->Parameter().SetContactDataFlag( MCCAParameter::EContactLink ); - CleanupStack::PopAndDestroy(1); // link16 + HBufC16* link16 = HBufC16::NewLC( contactLink.Length() ); + link16->Des().Copy( contactLink ); + iPlugin.AppEngine()->Parameter().SetContactDataL( link16->Des() ); + // Set contact data flag to EContactLink, because the parameters returned from + // phonebook AIW provider have conatct link but not contact id. + iPlugin.AppEngine()->Parameter().SetContactDataFlag( MCCAParameter::EContactLink ); + CleanupStack::PopAndDestroy(1); // link16 - // Inform the app engine of the contact event - iPlugin.AppEngine()->CCAppContactEventL(); + // Inform the app engine of the contact event + iPlugin.AppEngine()->CCAppContactEventL(); - // Update the commlauncher the UI contact data - iPlugin.ContactHandler().RefetchContactL(); - iPlugin.Container().ContactsChangedL(); - - //Update the Store - SetContactStore(iPlugin.ContactHandler().ContactStore()); - } + // Update the commlauncher the UI contact data + iPlugin.ContactHandler().RefetchContactL(); + iPlugin.Container().ContactsChangedL(); + + //Update the Store + SetContactStore(iPlugin.ContactHandler().ContactStore()); } if (errParam) @@ -650,22 +643,6 @@ } // --------------------------------------------------------------------------- -// CCCAppCommLauncherMenuHandler::DoSendBCardCmdL -// --------------------------------------------------------------------------- -// -void CCCAppCommLauncherMenuHandler::DoSendBCardCmdL() - { - if( !iPbkCmd ) - { - iPbkCmd = CCCAppCommLauncherPbkCmd::NewL( iPlugin ); - } - iPbkCmd->ExecutePbk2CmdSendBCardL( - *iPlugin.ContactHandler().ContactIdentifierLC() ); - - CleanupStack::PopAndDestroy( 1 ); // ContactIdentifierLC - } - -// --------------------------------------------------------------------------- // CCCAppCommLauncherMenuHandler::XspContactDynInitMenuPaneL // --------------------------------------------------------------------------- //