Added RDS functionality to the QRadioTuner/QDeclarativeRadio

Change-Id: I865e3caba82977002cf1f01f1d64ee0a42de77c6
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
Sami Nurmenniemi
2011-10-11 09:06:12 +03:00
committed by Qt by Nokia
parent cbb21e30d5
commit 6aea1a22ee
33 changed files with 2076 additions and 10 deletions

View File

@@ -106,6 +106,7 @@ QRadioTuner::QRadioTuner(QObject *parent, QMediaServiceProvider* provider):
connect(d->control, SIGNAL(signalStrengthChanged(int)), SIGNAL(signalStrengthChanged(int)));
connect(d->control, SIGNAL(volumeChanged(int)), SIGNAL(volumeChanged(int)));
connect(d->control, SIGNAL(mutedChanged(bool)), SIGNAL(mutedChanged(bool)));
connect(d->control, SIGNAL(stationFound(int,QString)), SIGNAL(stationFound(int,QString)));
connect(d->control, SIGNAL(error(QRadioTuner::Error)), SIGNAL(error(QRadioTuner::Error)));
}
}
@@ -456,6 +457,26 @@ void QRadioTuner::searchBackward()
d->control->searchBackward();
}
/*!
Search all stations in current band
Emits QRadioTuner::stationFound(int, QString) for every found station.
After searching is completed, QRadioTuner::searchingChanged(bool) is
emitted (false). If \a searchMode is set to SearchGetStationId, searching
waits for station id (PI) on each frequency.
\since 5.0
\sa searchForward(), searchBackward(), searching
*/
void QRadioTuner::searchAllStations(QRadioTuner::SearchMode searchMode)
{
Q_D(const QRadioTuner);
if (d->control != 0)
d->control->searchAllStations(searchMode);
}
/*!
Stops scanning for a signal.
@@ -554,6 +575,14 @@ QString QRadioTuner::errorString() const
\since 1.0
*/
/*!
\fn void QRadioTuner::stationFound(int frequency, QString stationId)
Signals that a station was found in \a frequency with \a stationId Program
Identification code.
\since 5.0
*/
/*!
\fn void QRadioTuner::error(QRadioTuner::Error error)