phonebookui/Phonebook2/UIControls/src/CPbk2ContactEditorNewContact.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 68 9da50d567e3c
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include "CPbk2ContactEditorNewContact.h"
    21 #include "CPbk2ContactEditorNewContact.h"
    22 
    22 
    23 // Phonebook 2
    23 // Phonebook 2
    24 #include <pbk2uicontrols.rsg>
    24 #include <Pbk2UIControls.rsg>
    25 #include <TPbk2ContactEditorParams.h>
    25 #include <TPbk2ContactEditorParams.h>
    26 #include <CPbk2PresentationContact.h>
    26 #include <CPbk2PresentationContact.h>
    27 #include "CPbk2InputAbsorber.h"
    27 #include "CPbk2InputAbsorber.h"
    28 #include <Pbk2Debug.h>
    28 #include <Pbk2Debug.h>
    29 #include <csxhelp/phob.hlp.hrh>
    29 #include <csxhelp/phob.hlp.hrh>
   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     // Notify client asynchronously to let Delete Operation complete firstly and
   227     MPbk2ContactEditorEventObserver* observer = iObserver;
   228     // then the client will be notified to do the other things in the RunL() function.
   228     iObserver = NULL;
   229     iLatestResult.iExtension = NULL;
   229     MVPbkContactObserver::TContactOpResult result;
   230     iLatestResult.iStoreContact = NULL;
   230     // Disable warnings by nulling the data members
   231     iLatestResult.iOpCode = MVPbkContactObserver::EContactDelete;
   231     result.iStoreContact = NULL;
   232     TRequestStatus* status = &iStatus;
   232     result.iExtension = NULL;
   233     User::RequestComplete(status, KErrNone);
   233     result.iOpCode = MVPbkContactObserver::EContactDelete;
   234     SetActive();
   234     observer->ContactEditorOperationCompleted( result, iEditorParams );
   235     }
   235     }
   236 
   236 
   237 // --------------------------------------------------------------------------
   237 // --------------------------------------------------------------------------
   238 // CPbk2ContactEditorNewContact::ContactOperationCompleted
   238 // CPbk2ContactEditorNewContact::ContactOperationCompleted
   239 // --------------------------------------------------------------------------
   239 // --------------------------------------------------------------------------