serviceproviders/sapi_contacts_vpbk/contactservice/src/contactservice.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 33 50974a8b132e
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
   429 	    						Ttype type,
   429 	    						Ttype type,
   430 	    						const TDesC8& aContactId,
   430 	    						const TDesC8& aContactId,
   431 	    						const TDesC& aSearchVal,
   431 	    						const TDesC& aSearchVal,
   432 	    						CSearchFields* aSearchFields,
   432 	    						CSearchFields* aSearchFields,
   433 	    						TOrder aSortOrder,
   433 	    						TOrder aSortOrder,
   434 	    						const TDesC& aStoreUri)
   434 	    						const TDesC& aStoreUri, TCmdType val)
   435 	{
   435 	{
   436 		TInt retVal = KErrGeneral;
   436 		TInt retVal = KErrGeneral;
   437 		CContactIter* iter;
   437 		CContactIter* iter;
   438 		CGetListStoreListObserver* getListOpenObserver;
   438 		CGetListStoreListObserver* getListOpenObserver;
   439 	    if(!(aCallback))
   439 	    if(!(aCallback))
   470 													 aCallback,
   470 													 aCallback,
   471 													 this,
   471 													 this,
   472 													 iter,
   472 													 iter,
   473 													 type,
   473 													 type,
   474 													 aTransId,
   474 													 aTransId,
   475 													 iContactStore) ;
   475 													 iContactStore,val) ;
   476 
   476 
   477 			        CleanupStack::PushL(getListOpenObserver);
   477 			        CleanupStack::PushL(getListOpenObserver);
   478 
   478 
   479 			        //Opens the database and goes to observer's StoreReady() function.
   479 			        //Opens the database and goes to observer's StoreReady() function.
   480 			        retVal = GetContactStoreAndOpenL( aStoreUri, getListOpenObserver );
   480 			        retVal = GetContactStoreAndOpenL( aStoreUri, getListOpenObserver );
   508 												aCallback,
   508 												aCallback,
   509 												this,
   509 												this,
   510 												iter,
   510 												iter,
   511 												type,
   511 												type,
   512 												aTransId,
   512 												aTransId,
   513 												iContactStore) ;
   513 												iContactStore,val) ;
   514 		        CleanupStack::PushL(getListOpenObserver);
   514 		        CleanupStack::PushL(getListOpenObserver);
   515 
   515 
   516 		        //Opens the database and goes to observer's StoreReady() function.
   516 		        //Opens the database and goes to observer's StoreReady() function.
   517 		        retVal = GetContactStoreAndOpenL(aStoreUri,
   517 		        retVal = GetContactStoreAndOpenL(aStoreUri,
   518 		                                         getListOpenObserver);
   518 		                                         getListOpenObserver);