phonebookui/Phonebook2/UIControls/src/cpbk2contacteditornewowncontact.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 63 f4a778e096c2
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
   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     iInputAbsorber->StopWait();   
   227 
   228     // Notify client asynchronously to let Delete Operation complete firstly and
   228     iInputAbsorber->StopWait();
   229     // then the client will be notified to do the other things in the RunL() function.
   229     MPbk2ContactEditorEventObserver* observer = iObserver;
   230     iLatestResult.iExtension = NULL;
   230     iObserver = NULL;
   231     iLatestResult.iStoreContact = NULL;
   231     MVPbkContactObserver::TContactOpResult result;
   232     iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete;
   232     // Disable warnings by nulling the data members
   233     TRequestStatus* status = &iStatus;
   233     result.iStoreContact = NULL;
   234     User::RequestComplete(status, KErrNone);
   234     result.iExtension = NULL;
   235     SetActive();
   235     result.iOpCode = MVPbkContactObserver::EContactDelete;
       
   236     observer->ContactEditorOperationCompleted( result, iEditorParams );
   236     }
   237     }
   237 
   238 
   238 // --------------------------------------------------------------------------
   239 // --------------------------------------------------------------------------
   239 // CPbk2ContactEditorNewOwnContact::ContactOperationCompleted
   240 // CPbk2ContactEditorNewOwnContact::ContactOperationCompleted
   240 // --------------------------------------------------------------------------
   241 // --------------------------------------------------------------------------