serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/tgetlist_cancel.cpp
equal
deleted
inserted
replaced
47 void TestFunc(); |
47 void TestFunc(); |
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 void HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ); |
|
53 void HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ); |
|
54 |
53 |
55 |
54 private: |
56 private: |
55 CActiveSchedulerWait* iWaitSchedular; |
57 CActiveSchedulerWait* iWaitSchedular; |
56 CContactService* iContactService; |
58 CContactService* iContactService; |
57 TInt iResult; |
59 TInt iResult; |
107 TRequestStatus* temp = &iStatus; |
109 TRequestStatus* temp = &iStatus; |
108 User::RequestComplete(temp, KErrNone); |
110 User::RequestComplete(temp, KErrNone); |
109 iWaitSchedular->Start(); |
111 iWaitSchedular->Start(); |
110 } |
112 } |
111 |
113 |
|
114 |
|
115 void CGetListTestAsync::HandleReturnId( const TInt& aError, HBufC8* acntId, TInt aTransId ) |
|
116 { |
|
117 CActiveScheduler::Stop(); |
|
118 } |
|
119 |
|
120 |
112 void CGetListTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId) |
121 void CGetListTestAsync::HandleReturnValue(TOperationEvent aEvent, const TInt& aError , TInt aTransId) |
113 { |
122 { |
114 //******************* set iResult **************************** |
123 //******************* set iResult **************************** |
115 |
124 |
116 if(aEvent ==EOpCancel) |
125 if(aEvent ==EOpCancel) |
127 // It should not be called |
136 // It should not be called |
128 iResult = KErrGeneral; |
137 iResult = KErrGeneral; |
129 |
138 |
130 } |
139 } |
131 |
140 |
132 |
141 |
|
142 void CGetListTestAsync::HandleReturnArray(const TInt& aError, RPointerArray<HBufC8>& aArray, TInt aTransId ) |
|
143 { |
|
144 CActiveScheduler::Stop(); |
|
145 } |
133 TInt CGetListTestAsync::Result() |
146 TInt CGetListTestAsync::Result() |
134 { |
147 { |
135 return iResult; |
148 return iResult; |
136 } |
149 } |
137 |
150 |