serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/texport_cancel.cpp
equal
deleted
inserted
replaced
59 void TestFunc(); |
59 void TestFunc(); |
60 |
60 |
61 void HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId); |
61 void HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId); |
62 |
62 |
63 void HandleReturnIter( const TInt& aError, CContactIter* aIter, TInt aTransId ); |
63 void HandleReturnIter( const TInt& aError, CContactIter* aIter, TInt aTransId ); |
64 |
64 void HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ); |
|
65 void HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ); |
|
66 |
65 |
67 |
66 private: |
68 private: |
67 CActiveSchedulerWait* iWaitSchedular; |
69 CActiveSchedulerWait* iWaitSchedular; |
68 CContactService* iContactService; |
70 CContactService* iContactService; |
69 TInt iResult; |
71 TInt iResult; |
120 SetActive(); |
122 SetActive(); |
121 TRequestStatus* temp = &iStatus; |
123 TRequestStatus* temp = &iStatus; |
122 User::RequestComplete(temp, KErrNone); |
124 User::RequestComplete(temp, KErrNone); |
123 iWaitSchedular->Start(); |
125 iWaitSchedular->Start(); |
124 } |
126 } |
|
127 void CExportTestAsync::HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ) |
|
128 { |
|
129 CActiveScheduler::Stop(); |
|
130 } |
125 |
131 |
126 void CExportTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId) |
132 void CExportTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId) |
127 { |
133 { |
128 //******************* set iResult **************************** |
134 //******************* set iResult **************************** |
129 |
135 |
154 delete buf; |
160 delete buf; |
155 delete singleContact; |
161 delete singleContact; |
156 delete aIter; |
162 delete aIter; |
157 |
163 |
158 } |
164 } |
159 |
165 void CExportTestAsync::HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ) |
|
166 { |
|
167 CActiveScheduler::Stop(); |
|
168 } |
160 |
169 |
161 TInt CExportTestAsync::Result() |
170 TInt CExportTestAsync::Result() |
162 { |
171 { |
163 return iResult; |
172 return iResult; |
164 } |
173 } |