25 #include "radiostation.h" |
25 #include "radiostation.h" |
26 #include "radiostationmodel.h" |
26 #include "radiostationmodel.h" |
27 #include "radiohistorymodel.h" |
27 #include "radiohistorymodel.h" |
28 #include "radioenginewrapper.h" |
28 #include "radioenginewrapper.h" |
29 #include "radiouiengine.h" |
29 #include "radiouiengine.h" |
30 #include "radiologger.h" //connectAndTest |
30 #include "radiologger.h" //Radio::connect |
31 |
31 |
32 // Constants |
32 // Constants |
33 const uint KTestFrequency1 = 89000000; |
33 const uint KTestFrequency1 = 89000000; |
34 const uint KTestFrequency2 = 89500000; |
34 const uint KTestFrequency2 = 89500000; |
35 const uint KTestFrequency3 = 90000000; |
35 const uint KTestFrequency3 = 90000000; |
178 if(mRadioStationModel->rowCount()>0) |
178 if(mRadioStationModel->rowCount()>0) |
179 { |
179 { |
180 mRadioStationModel->removeAll(); //ASSERT: \"last >= first\" in file qabstractitemmodel.cpp, line 2110 |
180 mRadioStationModel->removeAll(); //ASSERT: \"last >= first\" in file qabstractitemmodel.cpp, line 2110 |
181 } |
181 } |
182 |
182 |
183 connectAndTest( mRadioStationModel, SIGNAL(dataChanged(const QModelIndex, const QModelIndex)), |
183 Radio::connect( mRadioStationModel, SIGNAL(dataChanged(const QModelIndex, const QModelIndex)), |
184 this, SLOT(dataChanged(const QModelIndex, const QModelIndex)) ); |
184 this, SLOT(dataChanged(const QModelIndex, const QModelIndex)) ); |
185 |
185 |
186 connectAndTest( mRadioStationModel, SIGNAL(stationAdded(RadioStation)), |
186 Radio::connect( mRadioStationModel, SIGNAL(stationAdded(RadioStation)), |
187 this, SLOT(stationAdded(RadioStation)) ); |
187 this, SLOT(stationAdded(RadioStation)) ); |
188 |
188 |
189 connectAndTest( mRadioStationModel, SIGNAL(stationDataChanged(RadioStation)), |
189 Radio::connect( mRadioStationModel, SIGNAL(stationDataChanged(RadioStation)), |
190 this, SLOT(stationDataChanged(RadioStation)) ); |
190 this, SLOT(stationDataChanged(RadioStation)) ); |
191 |
191 |
192 connectAndTest( mRadioStationModel, SIGNAL(favoriteChanged(RadioStation)), |
192 Radio::connect( mRadioStationModel, SIGNAL(favoriteChanged(RadioStation)), |
193 this, SLOT(favoriteChanged(RadioStation)) ); |
193 this, SLOT(favoriteChanged(RadioStation)) ); |
194 |
194 |
195 connectAndTest( mhistoryModel, SIGNAL(itemAdded()), |
195 Radio::connect( mhistoryModel, SIGNAL(itemAdded()), |
196 this, SLOT(itemAdded()) ); |
196 this, SLOT(itemAdded()) ); |
197 } |
197 } |
198 |
198 |
199 /*! |
199 /*! |
200 * called after the last testfunction was executed |
200 * called after the last testfunction was executed |