phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 68 9da50d567e3c
--- a/phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp	Wed Sep 15 11:56:55 2010 +0300
+++ b/phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp	Wed Oct 13 14:15:33 2010 +0300
@@ -21,7 +21,7 @@
 #include "CPbk2ContactEditorNewContact.h"
 
 // Phonebook 2
-#include <pbk2uicontrols.rsg>
+#include <Pbk2UIControls.rsg>
 #include <TPbk2ContactEditorParams.h>
 #include <CPbk2PresentationContact.h>
 #include "CPbk2InputAbsorber.h"
@@ -224,14 +224,14 @@
         ( "CPbk2ContactEditorNewContact::HandleIdleDelete(0x%x)" ), this );
 
     iInputAbsorber->StopWait();
-    // Notify client asynchronously to let Delete Operation complete firstly and
-    // then the client will be notified to do the other things in the RunL() function.
-    iLatestResult.iExtension = NULL;
-    iLatestResult.iStoreContact = NULL;
-    iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete;
-    TRequestStatus* status = &iStatus;
-    User::RequestComplete(status, KErrNone);
-    SetActive();
+    MPbk2ContactEditorEventObserver* observer = iObserver;
+    iObserver = NULL;
+    MVPbkContactObserver::TContactOpResult result;
+    // Disable warnings by nulling the data members
+    result.iStoreContact = NULL;
+    result.iExtension = NULL;
+    result.iOpCode = MVPbkContactObserver::EContactDelete;
+    observer->ContactEditorOperationCompleted( result, iEditorParams );
     }
 
 // --------------------------------------------------------------------------