equal
deleted
inserted
replaced
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 */ |