equal
deleted
inserted
replaced
250 |
250 |
251 int numberOfFields = parameters->iContactFields.size(); |
251 int numberOfFields = parameters->iContactFields.size(); |
252 // create a new contact item |
252 // create a new contact item |
253 |
253 |
254 TUint32 contactId = iPhonebookWrapper->CreateContactEntryL( parameters->iContactFields ); //wrapper should return contact id to store |
254 TUint32 contactId = iPhonebookWrapper->CreateContactEntryL( parameters->iContactFields ); //wrapper should return contact id to store |
255 iContactsToDelete.Append( contactId ); |
255 iContactsToDelete.AppendL( contactId ); |
256 |
256 |
257 |
257 |
258 // If this contact has a link id in script (i.e. belongs to a contact-set), we must cache the contact id: |
258 // If this contact has a link id in script (i.e. belongs to a contact-set), we must cache the contact id: |
259 if( parameters->ScriptLinkId() > 0 ) |
259 if( parameters->ScriptLinkId() > 0 ) |
260 { |
260 { |
390 in.OpenLC( *store, aStoreUid ); |
390 in.OpenLC( *store, aStoreUid ); |
391 bool r = false; |
391 bool r = false; |
392 TRAP_IGNORE( |
392 TRAP_IGNORE( |
393 do{ //iContactMngr->CreateLinksLC( in )) != NULL ) // will leave with KErrEof |
393 do{ //iContactMngr->CreateLinksLC( in )) != NULL ) // will leave with KErrEof |
394 previousLink = in.ReadUint32L(); |
394 previousLink = in.ReadUint32L(); |
395 iPreviousDeleteLinks.Append( previousLink ); |
395 iPreviousDeleteLinks.AppendL( previousLink ); |
396 if(previousLink) |
396 if(previousLink) |
397 { |
397 { |
398 r=true; |
398 r=true; |
399 } |
399 } |
400 else |
400 else |
656 |
656 |
657 } |
657 } |
658 |
658 |
659 // store the link to contact, so that Creator is able to delete |
659 // store the link to contact, so that Creator is able to delete |
660 // it when user requests deletion of contacts that were created with Creator |
660 // it when user requests deletion of contacts that were created with Creator |
661 iContactGroupsToDelete.Append( newGroupId ); |
661 iContactGroupsToDelete.AppendL( newGroupId ); |
662 |
662 |
663 return err; |
663 return err; |
664 } |
664 } |
665 |
665 |
666 //---------------------------------------------------------------------------- |
666 //---------------------------------------------------------------------------- |