serviceproviders/sapi_contacts_vpbk/src/contactinterface.cpp
branchRCL_3
changeset 36 c210248fa89d
parent 27 02682e02e51f
child 44 0b68a1b0c15e
equal deleted inserted replaced
35:68159986cd41 36:c210248fa89d
   404     TBool xspidIsDes = EFalse;
   404     TBool xspidIsDes = EFalse;
   405     TBool atleastOneField = EFalse;
   405     TBool atleastOneField = EFalse;
   406     //iDburi = HBufC::NewL(VPbkContactStoreUris::DefaultCntDbUri().Length());    
   406     //iDburi = HBufC::NewL(VPbkContactStoreUris::DefaultCntDbUri().Length());    
   407     //set the DBUri to the default value.    
   407     //set the DBUri to the default value.    
   408     //iDburi->Des().Copy(VPbkContactStoreUris::DefaultCntDbUri());
   408     //iDburi->Des().Copy(VPbkContactStoreUris::DefaultCntDbUri());
   409     iDburi = GetDefaultDBUri().AllocLC();
   409     if(iDburi)
       
   410     	{
       
   411       delete iDburi;
       
   412       iDburi=NULL;
       
   413       }
       
   414     iDburi = GetDefaultDBUri().AllocL();   
   410     //get the number of entries in the map
   415     //get the number of entries in the map
   411     TInt keyCount = aMap->Count();
   416     TInt keyCount = aMap->Count();
   412 
   417 
   413     for(TInt index=0;index<keyCount;index++)
   418     for(TInt index=0;index<keyCount;index++)
   414         {
   419         {
  1776                 else
  1781                 else
  1777                     {
  1782                     {
  1778                     User::Leave(err);
  1783                     User::Leave(err);
  1779                     }
  1784                     }
  1780                 } 
  1785                 } 
  1781             CleanupStack::Pop();
  1786             //CleanupStack::Pop();
  1782             CleanupStack::Pop(contact);
  1787             CleanupStack::Pop(contact);
  1783             } //end of if pMap
  1788             } //end of if pMap
  1784         else
  1789         else
  1785             {
  1790             {
  1786             aOutParamList.AppendL(TLiwGenericParam(KErrorMessage,
  1791             aOutParamList.AppendL(TLiwGenericParam(KErrorMessage,