--- a/phonebookui/Phonebook2/ServerApplication/src/CPbk2FetchService.cpp Thu Jul 15 18:22:55 2010 +0300
+++ b/phonebookui/Phonebook2/ServerApplication/src/CPbk2FetchService.cpp Thu Aug 19 09:41:07 2010 +0300
@@ -276,13 +276,23 @@
TPckg<TBool> acceptedPkg( accepted );
aMessage.ReadL( KAcceptServiceSlot, acceptedPkg );
- if ( iUiService && accepted )
+ if ( iUiService )
{
HBufC8* buffer = HBufC8::NewLC(
aMessage.GetDesMaxLengthL( KSelectedContactSlot ) );
TPtr8 ptr = buffer->Des();
aMessage.ReadL( KSelectedContactSlot, ptr );
- iUiService->AcceptDelayedContactsL( *buffer );
+
+ // If client accepts selected contact, call AcceptDelayedContacts
+ // Otherwise call DenyDelayedContactsL
+ if( accepted )
+ {
+ iUiService->AcceptDelayedContactsL( *buffer );
+ }
+ else
+ {
+ iUiService->DenyDelayedContactsL( *buffer );
+ }
CleanupStack::PopAndDestroy(); // buffer
}