summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2016-06-27 12:56:23 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2016-07-05 12:32:10 +0000
commitbcfe075aed88abf0bb81bacf8115ea085454e62f (patch)
tree8d2ec4c5a1b07ef8810bcc47d177a9966da2b517 /src
parent8516bf6c9d2111d0343338e3eb39d893c6768110 (diff)
downloadqtivi-bcfe075aed88abf0bb81bacf8115ea085454e62f.tar.gz
Doc: Documented the TunerStation classes
Change-Id: Ia4a4dc7509eb7b9a0b9c2cd239eb80ba91f26947 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
Diffstat (limited to 'src')
-rw-r--r--src/ivimedia/qiviplayableitem.cpp3
-rw-r--r--src/ivimedia/qivitunerstation.cpp111
2 files changed, 113 insertions, 1 deletions
diff --git a/src/ivimedia/qiviplayableitem.cpp b/src/ivimedia/qiviplayableitem.cpp
index 3d5f777..ce13c86 100644
--- a/src/ivimedia/qiviplayableitem.cpp
+++ b/src/ivimedia/qiviplayableitem.cpp
@@ -101,9 +101,9 @@ QT_END_NAMESPACE
/*!
\qmltype PlayableItem
- \qmlabstract
\instantiates QIviPlayableItem
\inqmlmodule QtIvi.Media
+ \inherits SearchAndBrowseModelItem
\brief The PlayableItem is the base class of a row in the PlayQueue model.
\note This item is not creatable from QML.
@@ -196,6 +196,7 @@ bool QIviPlayableItem::operator==(const QIviPlayableItem &other)
\qmltype AudioTrackItem
\instantiates QIviAudioTrackItem
\inqmlmodule QtIvi.Media
+ \inherits PlayableItem
\brief The AudioTrackItem represents a playable audio track.
\note This item is not creatable from QML.
diff --git a/src/ivimedia/qivitunerstation.cpp b/src/ivimedia/qivitunerstation.cpp
index cfdfb6f..cbf6d47 100644
--- a/src/ivimedia/qivitunerstation.cpp
+++ b/src/ivimedia/qivitunerstation.cpp
@@ -77,6 +77,46 @@ public:
QT_END_NAMESPACE
+/*!
+ \class QIviTunerStation
+ \inmodule QtIviMedia
+ \brief The QIviTunerStation represents a tuner station.
+*/
+
+/*!
+ \qmltype TunerStation
+ \instantiates QIviTunerStation
+ \inqmlmodule QtIvi.Media
+ \inherits SearchAndBrowseModelItem
+ \brief The TunerStation represents a tuner station.
+
+ \note This item is not creatable from QML.
+*/
+
+/*!
+ \qmlproperty string TunerStation::stationName
+
+ Holds the name of the tuner station.
+*/
+
+/*!
+ \property QIviTunerStation::stationName
+
+ Holds the name of the tuner station.
+*/
+
+/*!
+ \qmlproperty int TunerStation::frequency
+
+ Holds the frequency of the tuner station.
+*/
+
+/*!
+ \property QIviTunerStation::frequency
+
+ Holds the frequency of the tuner station.
+*/
+
QIviTunerStation::QIviTunerStation()
: QIviSearchAndBrowseModelItem()
, d(new QIviTunerStationPrivate)
@@ -121,16 +161,27 @@ void QIviTunerStation::setFrequency(int frequency)
d->m_frequency = frequency;
}
+/*!
+ \reimp
+*/
QString QIviTunerStation::name() const
{
return d->m_stationName;
}
+/*!
+ \reimp
+*/
QString QIviTunerStation::type() const
{
return QLatin1String("tunerstation");
}
+/*!
+ Returns \e true if this item is equal to \a other; otherwise returns false.
+
+ \sa operator!=()
+*/
bool QIviTunerStation::operator==(const QIviTunerStation &other)
{
return (QIviSearchAndBrowseModelItem::operator==(other) &&
@@ -138,6 +189,50 @@ bool QIviTunerStation::operator==(const QIviTunerStation &other)
d->m_frequency == other.d->m_frequency);
}
+/*!
+ \fn bool QIviTunerStation::operator!=(const QIviTunerStation &other)
+
+ Returns \e true if this item is not equal to \a other; otherwise returns false.
+
+ \sa operator==()
+*/
+
+/*!
+ \class QIviAmFmTunerStation
+ \inmodule QtIviMedia
+ \brief The QIviTunerStation represents a tuner station.
+*/
+
+/*!
+ \qmltype AmFmTunerStation
+ \instantiates QIviAmFmTunerStation
+ \inqmlmodule QtIvi.Media
+ \inherits TunerStation
+ \brief The TunerStation represents a tuner station.
+
+ \note This item is not creatable from QML.
+*/
+
+/*!
+ \qmlproperty enumeration AmFmTunerStation::band
+
+ Holds the band of the tuner station.
+
+ Available values are:
+ \value AMBand
+ The AM Band is based on the Amplitude Modulation technique and can range from 520 to 1610 kHz (1710 kHz).
+ The step size is usually between 9 or 10 kHz.
+ \value FMBand
+ The FM Band is based on the Frequency Modulation technique and can range from 87.5 to 108.0 MHz.
+ The step size is usually 100 kHz.
+*/
+
+/*!
+ \property QIviAmFmTunerStation::band
+
+ Holds the band of the tuner station.
+*/
+
QIviAmFmTunerStation::QIviAmFmTunerStation()
: QIviTunerStation()
, d(new QIviAmFmTunerStationPrivate)
@@ -172,13 +267,29 @@ void QIviAmFmTunerStation::setBand(QIviAmFmTuner::Band band)
d->m_band = band;
}
+/*!
+ \reimp
+*/
QString QIviAmFmTunerStation::type() const
{
return QLatin1String("amfmtunerstation");
}
+/*!
+ Returns \e true if this item is equal to \a other; otherwise returns false.
+
+ \sa operator!=()
+*/
bool QIviAmFmTunerStation::operator==(const QIviAmFmTunerStation &other)
{
return (QIviTunerStation::operator==(other) &&
d->m_band == other.d->m_band);
}
+
+/*!
+ \fn bool QIviAmFmTunerStation::operator!=(const QIviAmFmTunerStation &other)
+
+ Returns \e true if this item is not equal to \a other; otherwise returns false.
+
+ \sa operator==()
+*/