phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycard.cpp
branchRCL_3
changeset 26 0d28c1c5b6dd
parent 23 5586b4d2ec3e
child 35 4ae315f230bc
equal deleted inserted replaced
23:5586b4d2ec3e 26:0d28c1c5b6dd
   373     {
   373     {
   374     iForceCreateMyCard = ETrue;
   374     iForceCreateMyCard = ETrue;
   375     }
   375     }
   376 
   376 
   377 // ---------------------------------------------------------------------------
   377 // ---------------------------------------------------------------------------
       
   378 // CCCAppMyCard::HeaderControlBlocked
       
   379 // ---------------------------------------------------------------------------
       
   380 //
       
   381 TBool CCCAppMyCard::HeaderControlBlocked()
       
   382     {
       
   383     return iDialogIsRunning;
       
   384     }
       
   385 
       
   386 // ---------------------------------------------------------------------------
   378 // CCCAppMyCard::NotifyObservers
   387 // CCCAppMyCard::NotifyObservers
   379 // ---------------------------------------------------------------------------
   388 // ---------------------------------------------------------------------------
   380 //
   389 //
   381 void CCCAppMyCard::NotifyObservers( MMyCardObserver::TEvent aEvent ) const
   390 void CCCAppMyCard::NotifyObservers( MMyCardObserver::TEvent aEvent ) const
   382     {
   391     {
   572 TInt CCCAppMyCard::CreateMyCardContact( TAny* aPtr )
   581 TInt CCCAppMyCard::CreateMyCardContact( TAny* aPtr )
   573 	{
   582 	{
   574 	CCCAppMyCard* self = static_cast<CCCAppMyCard*>( aPtr );
   583 	CCCAppMyCard* self = static_cast<CCCAppMyCard*>( aPtr );
   575 	TRAPD( err, self->LaunchContactEditorL( TPbk2ContactEditorParams::ENewContact | 
   584 	TRAPD( err, self->LaunchContactEditorL( TPbk2ContactEditorParams::ENewContact | 
   576         TPbk2ContactEditorParams::EOwnContact ) );
   585         TPbk2ContactEditorParams::EOwnContact ) );
   577 	
   586 			
   578 	if( err != KErrNone )
   587 	if( err != KErrNone )
   579         {        
   588         {        
   580         self->iPlugin.HandleError( err );
   589         self->iPlugin.HandleError( err );
   581         
   590         
   582         if( !self->iMyCard )
   591         if( !self->iMyCard )
   798     // contact locked complete for editing
   807     // contact locked complete for editing
   799     if( aResult.iOpCode == MVPbkContactObserver::EContactLock )
   808     if( aResult.iOpCode == MVPbkContactObserver::EContactLock )
   800     	{
   809     	{
   801     	TRAPD( err, LaunchContactEditorL( TPbk2ContactEditorParams::EModified | 
   810     	TRAPD( err, LaunchContactEditorL( TPbk2ContactEditorParams::EModified | 
   802             TPbk2ContactEditorParams::EOwnContact) );
   811             TPbk2ContactEditorParams::EOwnContact) );
   803     	
   812     	    	    	
   804     	if( err == KLeaveExit )
   813     	if( err == KLeaveExit )
   805     	    {                                                                           
   814     	    {                                                                           
   806             iCloseCallBack->Call();
   815             iCloseCallBack->Call();
   807             }    	    
   816             }    	    
   808     	else if( err != KErrNone )
   817     	else if( err != KErrNone )