vmbx/vmbxengine/src/voicemailboximpl.cpp
changeset 46 2fa1fa551b0b
parent 32 1f002146abb4
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
   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         }