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:
committed by
Qt by Nokia
parent
cbb21e30d5
commit
6aea1a22ee
@@ -79,6 +79,7 @@ class QDeclarativeRadio : public QObject
|
||||
Q_ENUMS(Band)
|
||||
Q_ENUMS(Error)
|
||||
Q_ENUMS(StereoMode)
|
||||
Q_ENUMS(SearchMode)
|
||||
|
||||
public:
|
||||
enum State {
|
||||
@@ -107,6 +108,11 @@ public:
|
||||
Auto = QRadioTuner::Auto
|
||||
};
|
||||
|
||||
enum SearchMode {
|
||||
SearchFast = QRadioTuner::SearchFast,
|
||||
SearchGetStationId = QRadioTuner::SearchGetStationId
|
||||
};
|
||||
|
||||
QDeclarativeRadio(QObject *parent = 0);
|
||||
~QDeclarativeRadio();
|
||||
|
||||
@@ -139,6 +145,8 @@ public Q_SLOTS:
|
||||
void scanUp();
|
||||
void tuneUp();
|
||||
void tuneDown();
|
||||
void searchAllStations(QDeclarativeRadio::SearchMode searchMode = QDeclarativeRadio::SearchFast );
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
@@ -151,6 +159,7 @@ Q_SIGNALS:
|
||||
void signalStrengthChanged(int signalStrength);
|
||||
void volumeChanged(int volume);
|
||||
void mutedChanged(bool muted);
|
||||
void stationFound(int frequency, QString stationId);
|
||||
|
||||
void errorChanged();
|
||||
void error(QDeclarativeRadio::Error errorCode);
|
||||
|
||||
Reference in New Issue
Block a user