QIviTunerStation Class

The QIviTunerStation represents a tuner station. More...

Header: #include <QIviTunerStation>
qmake: QT += ivimedia
Instantiated By: TunerStation
Inherits: QIviSearchAndBrowseModelItem
Inherited By:

QIviAmFmTunerStation

Properties

Public Functions

QIviTunerStation()
QIviTunerStation(const QIviTunerStation &)
~QIviTunerStation()
QString category() const
virtual int frequency() const
QString radioText() const
int receptionQuality() const
void setCategory(QString category)
virtual void setFrequency(int frequency)
void setRadioText(QString radioText)
void setReceptionQuality(int receptionQuality)
void setStationLogoUrl(QString stationLogoUrl)
virtual void setStationName(const QString &stationName)
QString stationLogoUrl() const
virtual QString stationName() const
bool operator!=(const QIviTunerStation &other)
QIviTunerStation &operator=(const QIviTunerStation &)
bool operator==(const QIviTunerStation &other)

Reimplemented Public Functions

virtual QString name() const override
virtual QString type() const override

Detailed Description

The QIviTunerStation represents a tuner station.

Property Documentation

category : QString

Holds the category of the tuner station.

For a AM/FM station this is usually string representation of pty (programme type) inside the RDS (Radio Data Segment).

Access functions:

QString category() const
void setCategory(QString category)

frequency : int

Holds the frequency of the tuner station.

Access functions:

virtual int frequency() const
virtual void setFrequency(int frequency)

radioText : QString

Holds the radio text transmitted by the tuner station.

The radio text is used to provide additional information about the current station program or for commericials. It is expected that the backend extracts the useful information from the radioText and provide it in more suitable properties like the the currentArtist or similar.

Access functions:

QString radioText() const
void setRadioText(QString radioText)

receptionQuality : int

Holds the reception quality of the tuner station.

//TODO What's the usual unit and range of this ?

Access functions:

int receptionQuality() const
void setReceptionQuality(int receptionQuality)

stationLogoUrl : QString

Holds the logo of this station.

This can be a url to a local image file or a link to a qml image provider.

Access functions:

QString stationLogoUrl() const
void setStationLogoUrl(QString stationLogoUrl)

stationName : QString

Holds the name of the tuner station.

Access functions:

virtual QString stationName() const
virtual void setStationName(const QString &stationName)

Member Function Documentation

QIviTunerStation::QIviTunerStation()

Default constructs an instance of QIviTunerStation.

QIviTunerStation::QIviTunerStation(const QIviTunerStation &)

Copy constructor.

QIviTunerStation::~QIviTunerStation()

Destroys the instance of QIviTunerStation.

[override virtual] QString QIviTunerStation::name() const

Reimplemented from QIviSearchAndBrowseModelItem::name().

[override virtual] QString QIviTunerStation::type() const

Reimplemented from QIviSearchAndBrowseModelItem::type().

bool QIviTunerStation::operator!=(const QIviTunerStation &other)

Returns true if this item is not equal to other; otherwise returns false.

See also operator==().

QIviTunerStation &QIviTunerStation::operator=(const QIviTunerStation &)

Copy-assignment operator.

bool QIviTunerStation::operator==(const QIviTunerStation &other)

Returns true if this item is equal to other; otherwise returns false.

See also operator!=().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.