fmradio/fmradio/src/fmradioappui.cpp
branchRCL_3
changeset 12 9f3ff466f56b
parent 9 0004e923f486
child 13 4f2584af5a29
equal deleted inserted replaced
11:97dcae98e602 12:9f3ff466f56b
   657             }
   657             }
   658         }
   658         }
   659 
   659 
   660     if ( continueWithSave )
   660     if ( continueWithSave )
   661         {
   661         {
       
   662         CFMRadioRdsReceiverBase& receiver = iRadioEngine->RdsReceiver();
   662         CFMRadioRdsReceiverBase::TFMRadioProgrammeSeviceType type = 
   663         CFMRadioRdsReceiverBase::TFMRadioProgrammeSeviceType type = 
   663             iRadioEngine->RdsReceiver().ProgrammeServiceNameType();
   664                 receiver.ProgrammeServiceNameType();
   664         const TDesC& channelName = type == CFMRadioRdsReceiverBase::EFMRadioPSNameStatic ?
   665         const TDesC& channelName = type == CFMRadioRdsReceiverBase::EFMRadioPSNameStatic ?
   665                 iRadioEngine->RdsReceiver().ProgrammeService() : KNullDesC;
   666                 receiver.ProgrammeService() : KNullDesC;
   666 
   667         
   667         AddChannelToListL( channelName, iRadioEngine->GetTunedFrequency() );
   668         CFMRadioPreset* preset = CFMRadioPreset::NewL();
       
   669         CleanupStack::PushL( preset );
       
   670         preset->SetPresetNameL( channelName );
       
   671         preset->SetPresetFrequency( iRadioEngine->GetTunedFrequency() );
       
   672                 
       
   673         const TDesC& webUrl = receiver.RtPlusProgramUrl();
       
   674         if ( webUrl.Length() )
       
   675             {
       
   676             preset->SetPresetUrlL( webUrl );
       
   677             }        
       
   678         iChannels.AppendL( preset );
       
   679         CleanupStack::Pop( preset ); 
       
   680         
   668         UpdateChannelsL( EStoreAllToRepository, 0, 0 );
   681         UpdateChannelsL( EStoreAllToRepository, 0, 0 );
   669         
   682         
   670         iMainView->SetStationChangeType( EFMRadioStationChangeNone );
   683         iMainView->SetStationChangeType( EFMRadioStationChangeNone );
   671         PlayChannel( iChannels.Count() - 1 );
   684         PlayChannel( iChannels.Count() - 1 );
   672         }
   685         }