radioapp/radioenginewrapper/src/radioenginewrapper.cpp
changeset 33 11b6825f0862
parent 32 189d20c34778
child 37 451b2e1545b2
child 41 3a6b55c6390c
equal deleted inserted replaced
32:189d20c34778 33:11b6825f0862
   107     Q_D( const RadioEngineWrapper );
   107     Q_D( const RadioEngineWrapper );
   108     return d->mEngineHandler->frequencyStepSize();
   108     return d->mEngineHandler->frequencyStepSize();
   109 }
   109 }
   110 
   110 
   111 /*!
   111 /*!
   112  * Returns the frequency step size from the selected region
   112  * Returns true if frequency is valid, otherwise false
   113  */
   113  */
   114 bool RadioEngineWrapper::isFrequencyValid( uint frequency ) const
   114 bool RadioEngineWrapper::isFrequencyValid( uint frequency ) const
   115 {
   115 {
   116     return frequency >= minFrequency() && frequency <= maxFrequency() && frequency % frequencyStepSize() == 0;
   116     return frequency >= minFrequency() && frequency <= maxFrequency();
   117 }
   117 }
   118 
   118 
   119 /*!
   119 /*!
   120  * Checks if the radio engine is on
   120  * Checks if the radio engine is on
   121  */
   121  */