phonebookui/Phonebook2/UIControls/src/cpbk2contacteditornewowncontact.cpp
branchRCL_3
changeset 18 d4f567ce2e7c
parent 0 e686773b3f54
equal deleted inserted replaced
17:2666d9724c76 18:d4f567ce2e7c
   222 //
   222 //
   223 void CPbk2ContactEditorNewOwnContact::HandleIdleDelete()
   223 void CPbk2ContactEditorNewOwnContact::HandleIdleDelete()
   224     {
   224     {
   225     PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING
   225     PBK2_DEBUG_PRINT( PBK2_DEBUG_STRING
   226         ( "CPbk2ContactEditorNewOwnContact::HandleIdleDelete(0x%x)" ), this );
   226         ( "CPbk2ContactEditorNewOwnContact::HandleIdleDelete(0x%x)" ), this );
   227 
   227     iInputAbsorber->StopWait();   
   228     iInputAbsorber->StopWait();
   228     // Notify client asynchronously to let Delete Operation complete firstly and
   229     MPbk2ContactEditorEventObserver* observer = iObserver;
   229     // then the client will be notified to do the other things in the RunL() function.
   230     iObserver = NULL;
   230     iLatestResult.iExtension = NULL;
   231     MVPbkContactObserver::TContactOpResult result;
   231     iLatestResult.iStoreContact = NULL;
   232     // Disable warnings by nulling the data members
   232     iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete;
   233     result.iStoreContact = NULL;
   233     TRequestStatus* status = &iStatus;
   234     result.iExtension = NULL;
   234     User::RequestComplete(status, KErrNone);
   235     result.iOpCode = MVPbkContactObserver::EContactDelete;
   235     SetActive();
   236     observer->ContactEditorOperationCompleted( result, iEditorParams );
       
   237     }
   236     }
   238 
   237 
   239 // --------------------------------------------------------------------------
   238 // --------------------------------------------------------------------------
   240 // CPbk2ContactEditorNewOwnContact::ContactOperationCompleted
   239 // CPbk2ContactEditorNewOwnContact::ContactOperationCompleted
   241 // --------------------------------------------------------------------------
   240 // --------------------------------------------------------------------------