Added antennaConnected property to QRadioTuner and radio qml element
Change-Id: I5af8487277e0444629c710c6a0a4e890a8d35c6f Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
@@ -109,6 +109,7 @@ QDeclarativeRadio::QDeclarativeRadio(QObject *parent) :
|
||||
connect(m_radioTuner, SIGNAL(volumeChanged(int)), this, SIGNAL(volumeChanged(int)));
|
||||
connect(m_radioTuner, SIGNAL(mutedChanged(bool)), this, SIGNAL(mutedChanged(bool)));
|
||||
connect(m_radioTuner, SIGNAL(stationFound(int, QString)), this, SIGNAL(stationFound(int, QString)));
|
||||
connect(m_radioTuner, SIGNAL(antennaConnectedChanged(bool)), this, SIGNAL(antennaConnectedChanged(bool)));
|
||||
|
||||
connect(m_radioTuner, SIGNAL(error(QRadioTuner::Error)), this, SLOT(_q_error(QRadioTuner::Error)));
|
||||
}
|
||||
@@ -293,6 +294,16 @@ int QDeclarativeRadio::maximumFrequency() const
|
||||
return m_radioTuner->frequencyRange(m_radioTuner->band()).second;
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty int Radio::antennaConnected
|
||||
|
||||
This property is true if there is an antenna connected. Otherwise it will be false.
|
||||
*/
|
||||
bool QDeclarativeRadio::isAntennaConnected() const
|
||||
{
|
||||
return m_radioTuner->isAntennaConnected();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlmethod bool Radio::isAvailable()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user