phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp
branchRCL_3
changeset 8 5586b4d2ec3e
parent 0 e686773b3f54
child 9 0d28c1c5b6dd
equal deleted inserted replaced
7:b3431bff8c19 8:5586b4d2ec3e
   666 			{
   666 			{
   667 			idMap.iId=contact.Id();
   667 			idMap.iId=contact.Id();
   668 			idMap.iMapping=i;
   668 			idMap.iMapping=i;
   669 			User::LeaveIfError(array.Append(idMap));
   669 			User::LeaveIfError(array.Append(idMap));
   670 			}
   670 			}
       
   671 			
       
   672         //Always keep server side local view in memory saving mode, so we
       
   673         //change the view contact object stored in iView into lightweight object
       
   674 		const_cast<CViewContact&>( contact ).ChangeToLightweightObject();
   671 		}
   675 		}
   672 
   676 
   673 	// Externalize array to client.
   677 	// Externalize array to client.
   674 	const TInt count(array.Count());
   678 	const TInt count(array.Count());
   675 	const TInt maxBufSize = (1+(array.Count()*2))*sizeof(TInt);
   679 	const TInt maxBufSize = (1+(array.Count()*2))*sizeof(TInt);