radioapp/radiouiengine/src/radiostationmodel.cpp
changeset 38 f8c3d4e6102c
parent 36 ba22309243a1
child 47 74b7c6e79031
--- a/radioapp/radiouiengine/src/radiostationmodel.cpp	Thu Jul 08 12:44:18 2010 +0300
+++ b/radioapp/radiouiengine/src/radiostationmodel.cpp	Fri Jul 23 10:16:59 2010 +0300
@@ -180,6 +180,18 @@
         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