messagingappbase/ncnlist/src/NcnMsvSessionObserver.cpp
branchRCL_3
changeset 17 caea42e26caa
parent 0 72b543305e3a
equal deleted inserted replaced
9:1d7827e39b52 17:caea42e26caa
   929         NCN_RDEBUG_INT(_L("HandleNewChildrenL:CheckAndHandleSmsEntryL Trap error Id is: %d "), err );
   929         NCN_RDEBUG_INT(_L("HandleNewChildrenL:CheckAndHandleSmsEntryL Trap error Id is: %d "), err );
   930 		if(err == KErrInUse)
   930 		if(err == KErrInUse)
   931 		{
   931 		{
   932 			entryToHandle.SetVisible( EFalse );
   932 			entryToHandle.SetVisible( EFalse );
   933 			entryToHandle.SetInPreparation(ETrue);
   933 			entryToHandle.SetInPreparation(ETrue);
   934 			TRAPD(err1,aEntryToHandlePtr->ChangeL( entryToHandle ));
   934 #ifdef _DEBUG
   935 			NCN_RDEBUG_INT(_L("HandleNewChildrenL:CheckAndHandleSmsEntryL ChangeL Trap error1 Id is: %d "), err1 );
   935 			TRAPD(TrapError,aEntryToHandlePtr->ChangeL( entryToHandle ));
       
   936 			NCN_RDEBUG_INT(_L("HandleNewChildrenL:CheckAndHandleSmsEntryL ChangeL Trap error1 Id is: %d "), TrapError );
       
   937 #else
       
   938 			TRAP_IGNORE(aEntryToHandlePtr->ChangeL( entryToHandle ));
       
   939 #endif			
   936 			iUpdateNotifier = EFalse;
   940 			iUpdateNotifier = EFalse;
   937 			NCN_RDEBUG(_L("CNcnMsvSessionObserver::CheckAndHandleSmsEntryL Discard message: Try deleting again "));
   941 			NCN_RDEBUG(_L("CNcnMsvSessionObserver::CheckAndHandleSmsEntryL Discard message: Try deleting again "));
   938 			//Entry is not yet released.. try Remove Entry
   942 			//Entry is not yet released.. try Remove Entry
   939 			msvSession.RemoveEntry(entryToHandle.Id());
   943 			msvSession.RemoveEntry(entryToHandle.Id());
   940 		}  
   944 		}