222 { |
222 { |
223 PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING |
223 PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING |
224 ( "CPbk2ContactEditorNewContact::HandleIdleDelete(0x%x)" ), this ); |
224 ( "CPbk2ContactEditorNewContact::HandleIdleDelete(0x%x)" ), this ); |
225 |
225 |
226 iInputAbsorber->StopWait(); |
226 iInputAbsorber->StopWait(); |
227 MPbk2ContactEditorEventObserver* observer = iObserver; |
227 // Notify client asynchronously to let Delete Operation complete firstly and |
228 iObserver = NULL; |
228 // then the client will be notified to do the other things in the RunL() function. |
229 MVPbkContactObserver::TContactOpResult result; |
229 iLatestResult.iExtension = NULL; |
230 // Disable warnings by nulling the data members |
230 iLatestResult.iStoreContact = NULL; |
231 result.iStoreContact = NULL; |
231 iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete; |
232 result.iExtension = NULL; |
232 TRequestStatus* status = &iStatus; |
233 result.iOpCode = MVPbkContactObserver::EContactDelete; |
233 User::RequestComplete(status, KErrNone); |
234 observer->ContactEditorOperationCompleted( result, iEditorParams ); |
234 SetActive(); |
235 } |
235 } |
236 |
236 |
237 // -------------------------------------------------------------------------- |
237 // -------------------------------------------------------------------------- |
238 // CPbk2ContactEditorNewContact::ContactOperationCompleted |
238 // CPbk2ContactEditorNewContact::ContactOperationCompleted |
239 // -------------------------------------------------------------------------- |
239 // -------------------------------------------------------------------------- |