equal
deleted
inserted
replaced
826 { |
826 { |
827 CVmbxEngineBase* vmbxEngine = NULL; |
827 CVmbxEngineBase* vmbxEngine = NULL; |
828 iVmbxFactory->CreateEngineL( vmbxEngine, aType ); |
828 iVmbxFactory->CreateEngineL( vmbxEngine, aType ); |
829 CleanupStack::PushL( vmbxEngine ); |
829 CleanupStack::PushL( vmbxEngine ); |
830 CVoiceMailboxEntry* entry( NULL ); |
830 CVoiceMailboxEntry* entry( NULL ); |
831 vmbxEngine->GetL( entry ); |
831 TRAPD(err,vmbxEngine->GetL( entry )); |
|
832 VMBLOGSTRING2( "VMBX: CVoiceMailboxImpl::NotifyChangedL err=%d",err ); |
|
833 if(err == KErrNotFound) |
|
834 { |
|
835 delete entry; |
|
836 entry = NULL; |
|
837 entry = CVoiceMailboxEntry::NewL(); |
|
838 // get als line info |
|
839 entry->SetVmbxAlsLineType( VmbxUtilities::AlsLine() ); |
|
840 entry->SetVoiceMailboxType( aType ); |
|
841 entry->SetVmbxNumber( KNullDesC()); |
|
842 } |
|
843 else |
|
844 { |
|
845 User::LeaveIfError(err); |
|
846 } |
832 CleanupStack::PushL( entry ); |
847 CleanupStack::PushL( entry ); |
833 iNotifyCallBack->HandleNotifyL( *entry ); |
848 iNotifyCallBack->HandleNotifyL( *entry ); |
834 CleanupStack::PopAndDestroy( entry ); |
849 CleanupStack::PopAndDestroy( entry ); |
835 CleanupStack::PopAndDestroy( vmbxEngine ); |
850 CleanupStack::PopAndDestroy( vmbxEngine ); |
836 } |
851 } |