phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/src/ccappcommlaunchermenuhandler.cpp
branchRCL_3
changeset 58 d4f567ce2e7c
parent 45 34879f5cfc63
child 64 c1e8ba0c2b16
equal deleted inserted replaced
57:2666d9724c76 58:d4f567ce2e7c
   542     if (param)
   542     if (param)
   543         {
   543         {
   544         TPtrC8 contactLink = param->Value().AsData();
   544         TPtrC8 contactLink = param->Value().AsData();
   545 
   545 
   546         // Update the CCA parameter contact data
   546         // Update the CCA parameter contact data
   547         HBufC16* link16 = HBufC16::NewLC( contactLink.Length() );
   547         TInt length = contactLink.Length();
   548         link16->Des().Copy( contactLink );
   548         if ( length > 0 )
   549         iPlugin.AppEngine()->Parameter().SetContactDataL( link16->Des() );
   549             {
   550         // Set contact data flag to EContactLink, because the parameters returned from 
   550             HBufC16* link16 = HBufC16::NewLC( length );
   551         // phonebook AIW provider have conatct link but not contact id.
   551             link16->Des().Copy( contactLink );
   552         iPlugin.AppEngine()->Parameter().SetContactDataFlag( MCCAParameter::EContactLink );
   552             iPlugin.AppEngine()->Parameter().SetContactDataL( link16->Des() );
   553         CleanupStack::PopAndDestroy(1); // link16
   553             // Set contact data flag to EContactLink, because the parameters returned from 
   554 
   554             // phonebook AIW provider have conatct link but not contact id.
   555         // Inform the app engine of the contact event
   555             iPlugin.AppEngine()->Parameter().SetContactDataFlag( MCCAParameter::EContactLink );
   556         iPlugin.AppEngine()->CCAppContactEventL();
   556             CleanupStack::PopAndDestroy(1); // link16
   557 
   557 
   558         // Update the commlauncher the UI contact data
   558             // Inform the app engine of the contact event
   559         iPlugin.ContactHandler().RefetchContactL();
   559             iPlugin.AppEngine()->CCAppContactEventL();
   560         iPlugin.Container().ContactsChangedL();
   560 
   561         
   561             // Update the commlauncher the UI contact data
   562         //Update the Store
   562             iPlugin.ContactHandler().RefetchContactL();
   563         SetContactStore(iPlugin.ContactHandler().ContactStore());
   563             iPlugin.Container().ContactsChangedL();
       
   564             
       
   565             //Update the Store
       
   566             SetContactStore(iPlugin.ContactHandler().ContactStore());
       
   567             }
   564         }
   568         }
   565 
   569 
   566     if (errParam)
   570     if (errParam)
   567         {
   571         {
   568         TInt32 err;
   572         TInt32 err;