serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/timport_cancel.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
    48 	
    48 	
    49 	void HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId);
    49 	void HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId);
    50 	
    50 	
    51 	void HandleReturnIter(const TInt& aError, CContactIter* aIter, TInt aTransId );
    51 	void HandleReturnIter(const TInt& aError, CContactIter* aIter, TInt aTransId );
    52 	
    52 	
       
    53 	void HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId );
    53 	
    54 	
       
    55 	void HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId );
    54 private:	
    56 private:	
    55 	CActiveSchedulerWait* 	iWaitSchedular;
    57 	CActiveSchedulerWait* 	iWaitSchedular;
    56 	CContactService*		iContactService;
    58 	CContactService*		iContactService;
    57 	TInt 					iResult;	
    59 	TInt 					iResult;	
    58 };
    60 };
   105 	SetActive();
   107 	SetActive();
   106 	TRequestStatus* temp = &iStatus;
   108 	TRequestStatus* temp = &iStatus;
   107 	User::RequestComplete(temp, KErrNone);
   109 	User::RequestComplete(temp, KErrNone);
   108 	iWaitSchedular->Start();	
   110 	iWaitSchedular->Start();	
   109 	}
   111 	}
       
   112 void CImportTestAsync::HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId )
       
   113     {
       
   114     CActiveScheduler::Stop();
       
   115     }
   110 
   116 
   111 void CImportTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId)
   117 void CImportTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId)
   112 	{
   118 	{
   113 	//******************* set iResult ****************************
   119 	//******************* set iResult ****************************
   114 	
   120 	
   125 	{
   131 	{
   126 	// It should not be called
   132 	// It should not be called
   127 	iResult = KErrGeneral;
   133 	iResult = KErrGeneral;
   128 			
   134 			
   129 	}
   135 	}
   130 
   136 void CImportTestAsync::HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId )
       
   137     {
       
   138     CActiveScheduler::Stop();
       
   139     }
   131 	
   140 	
   132 TInt CImportTestAsync::Result()
   141 TInt CImportTestAsync::Result()
   133 	{
   142 	{
   134 	return iResult;
   143 	return iResult;
   135 	}
   144 	}