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:
@@ -234,6 +234,14 @@ QRadioTunerControl::~QRadioTunerControl()
|
||||
Returns true if the tuner is scanning, and false if it is not.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn bool QRadioTunerControl::antennaConnected() const
|
||||
|
||||
Identifies if there is an antenna connected to the device.
|
||||
|
||||
Returns true if there is a connected antenna, and false otherwise.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QRadioTunerControl::searchForward()
|
||||
|
||||
@@ -337,6 +345,13 @@ QRadioTunerControl::~QRadioTunerControl()
|
||||
Signals that new station with \a frequency was found when scanning
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QRadioTunerControl::antennaConnectedChanged(bool connectionStatus)
|
||||
|
||||
Signals that the antenna has either been connected or disconnected as
|
||||
reflected with the \a connectionStatus.
|
||||
*/
|
||||
|
||||
#include "moc_qradiotunercontrol.cpp"
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
||||
@@ -87,6 +87,8 @@ public:
|
||||
|
||||
virtual bool isSearching() const = 0;
|
||||
|
||||
virtual bool isAntennaConnected() const { return true; }
|
||||
|
||||
virtual void searchForward() = 0;
|
||||
virtual void searchBackward() = 0;
|
||||
virtual void searchAllStations(QRadioTuner::SearchMode searchMode = QRadioTuner::SearchFast) = 0;
|
||||
@@ -109,6 +111,7 @@ Q_SIGNALS:
|
||||
void mutedChanged(bool muted);
|
||||
void error(QRadioTuner::Error err);
|
||||
void stationFound(int frequency, QString stationId);
|
||||
void antennaConnectedChanged(bool connectionStatus);
|
||||
|
||||
protected:
|
||||
QRadioTunerControl(QObject *parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user