phonebookengines/contactsmodel/cntmodel/src/ccontactdatabase.cpp
changeset 46 efe85016a067
parent 37 fd64c38c277d
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
  4802 				{
  4802 				{
  4803 				// No sort order is defined only the contact's type is needed.
  4803 				// No sort order is defined only the contact's type is needed.
  4804 				TContactItemId actualId;
  4804 				TContactItemId actualId;
  4805 				TUid contactType = KNullUid;
  4805 				TUid contactType = KNullUid;
  4806 				TBool deleted = EFalse;
  4806 				TBool deleted = EFalse;
       
  4807 				TBool found = EFalse;
  4807 	
  4808 	
  4808         		MLplCollection& collection = FactoryL()->GetCollectorL();
  4809         		MLplCollection& collection = FactoryL()->GetCollectorL();
  4809 				TRAP(error, collection.SeekContactL(aContactId,actualId,contactType,deleted));
  4810 				TRAP(error, found = collection.SeekContactL(aContactId,actualId,contactType,deleted));
  4810 				
  4811 				
  4811 				if (CheckSortError(error)==EFalse)
  4812 				if (found && CheckSortError(error)==EFalse)
  4812 					{
  4813 					{
  4813 					if (CheckType(contactType))
  4814 					if (CheckType(contactType))
  4814 						{
  4815 						{
  4815 						iSortedItems->AddL(aContactId);
  4816 						iSortedItems->AddL(aContactId);
  4816 						}
  4817 						}