radioapp/radiouiengine/src/radioscannerengine_p.cpp
changeset 32 189d20c34778
parent 28 075425b8d9a4
child 37 451b2e1545b2
equal deleted inserted replaced
28:075425b8d9a4 32:189d20c34778
    59 
    59 
    60     Q_Q( RadioScannerEngine );
    60     Q_Q( RadioScannerEngine );
    61     if ( reason == TuneReason::StationScanInitialization ) {
    61     if ( reason == TuneReason::StationScanInitialization ) {
    62         mUiEngine.wrapper().startSeeking( Seek::Up, TuneReason::StationScan );
    62         mUiEngine.wrapper().startSeeking( Seek::Up, TuneReason::StationScan );
    63     } else if ( reason == TuneReason::StationScan ) {
    63     } else if ( reason == TuneReason::StationScan ) {
    64         if ( frequency > mLastFoundFrequency ) {
    64         if ( frequency == mLastFoundFrequency ) {
       
    65             // Stop scanning
       
    66             q->emitStationFound( RadioStation() );
       
    67         } else if ( frequency > mLastFoundFrequency ) {
    65             // Station has been found normally
    68             // Station has been found normally
    66             mLastFoundFrequency = frequency;
    69             mLastFoundFrequency = frequency;
    67             addFrequencyAndReport( frequency );
    70             addFrequencyAndReport( frequency );
    68         } else if ( frequency == mUiEngine.api().minFrequency() ) {
    71         } else if ( frequency == mUiEngine.api().minFrequency() ) {
    69             // Special case. A station has been found in the mininmum frequency
    72             // Special case. A station has been found in the mininmum frequency