--- a/radioapp/radiouiengine/src/radiostationmodel.cpp Tue Jul 06 14:16:27 2010 +0300
+++ b/radioapp/radiouiengine/src/radiostationmodel.cpp Wed Aug 18 09:49:03 2010 +0300
@@ -179,6 +179,26 @@
RadioStationIf* stationInterface = static_cast<RadioStationIf*>( station.data_ptr() );
if ( d->mPresetStorage->readPreset( index, *stationInterface ) ) {
if ( station.isValid() && d->mWrapper->isFrequencyValid( station.frequency() ) ) {
+
+#ifdef INIT_STATIONS_WITH_DUMMY_RT
+ station.setGenre( GenreEurope::RdsChildrensProgrammes );
+ if ( index % 3 == 0 ) {
+ station.setName( "Radio Rock" );
+ station.setRadioText( "Now playing: <font color='cyan'>The Presidents of the United States of America</font> - <font color='cyan'>Dune Buggy and diipa daapa jhkjhui erjlkej rewjtl</font>" );
+ } else if ( index % 2 == 0 ) {
+ station.setName( "Radio Rock" );
+ } else {
+ station.setDynamicPsText( "DYN PS" );
+ }
+#endif // INIT_STATIONS_WITH_DUMMY_RT
+
+ // Check if the station seems to send RDS or not.
+ // Note that radiotext is not checked because it is not saved to cenrep
+ // TODO: Consider saving this state flag to cenrep
+ if ( ( station.hasName() && !station.isRenamed() ) || station.hasUrl() ) {
+ static_cast<RadioStationIf*>( station.data_ptr() )->setStationHasSentRds( true );
+ }
+
d->mStations.insert( station.frequency(), station );
} else {
LOG( "RadioStationModel::initialize: Invalid station!" );