QIfTunerStation Class

The QIfTunerStation represents a tuner station. More...

Header: #include <QIfTunerStation>
qmake: QT += ifmedia
In QML: TunerStation
Inherits: QIfStandardItem
Inherited By:

QIfAmFmTunerStation

Properties

Public Functions

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

Reimplemented Public Functions

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

Detailed Description

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(const 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(const 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(const 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

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

Reimplements an access function for property: QIfStandardItem::name.

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

Reimplements an access function for property: QIfStandardItem::type.

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

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

See also operator==().

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

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

See also operator!=().

© 2024 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.