QRadioData

The QRadioData class provides interfaces to the RDS functionality of the system radio. More

Inheritance diagram of PySide2.QtMultimedia.QRadioData

Synopsis

Functions

Slots

Signals

Detailed Description

The radio data object will emit signals for any changes in radio data. You can enable or disable alternative frequency with setAlternativeFrequenciesEnabled() .

You can get a QRadioData instance fromt the radioData property from a QRadioTuner instance.

radio = new QRadioTuner;
radioData = radio->radioData();

Alternatively, you can pass an instance of QRadioTuner to the constructor to QRadioData .

See also

Radio Overview

class PySide2.QtMultimedia.QRadioData(mediaObject[, parent=None])

Constructs a radio data based on a mediaObject and parent .

The mediaObject should be an instance of QRadioTuner . It is preferable to use the radioData property on a QRadioTuner instance to get an instance of QRadioData .

During construction, this class is bound to the mediaObject using the bind() method.

PySide2.QtMultimedia.QRadioData.Error

Enumerates radio data error conditions.

Constant

Description

QRadioData.NoError

No errors have occurred.

QRadioData.ResourceError

There is no radio service available.

QRadioData.OpenError

Unable to open radio device.

QRadioData.OutOfRangeError

An attempt to set a frequency or band that is not supported by radio device.

PySide2.QtMultimedia.QRadioData.ProgramType

This property holds the type of the currently playing program as transmitted by the radio station. The value can be any one of the values defined in the table below.

Constant

Description

QRadioData.Undefined

QRadioData.News

QRadioData.CurrentAffairs

QRadioData.Information

QRadioData.Sport

QRadioData.Education

QRadioData.Drama

QRadioData.Culture

QRadioData.Science

QRadioData.Varied

QRadioData.PopMusic

QRadioData.RockMusic

QRadioData.EasyListening

QRadioData.LightClassical

QRadioData.SeriousClassical

QRadioData.OtherMusic

QRadioData.Weather

QRadioData.Finance

QRadioData.ChildrensProgrammes

QRadioData.SocialAffairs

QRadioData.Religion

QRadioData.PhoneIn

QRadioData.Travel

QRadioData.Leisure

QRadioData.JazzMusic

QRadioData.CountryMusic

QRadioData.NationalMusic

QRadioData.OldiesMusic

QRadioData.FolkMusic

QRadioData.Documentary

QRadioData.AlarmTest

QRadioData.Alarm

QRadioData.Talk

QRadioData.ClassicRock

QRadioData.AdultHits

QRadioData.SoftRock

QRadioData.Top40

QRadioData.Soft

QRadioData.Nostalgia

QRadioData.Classical

QRadioData.RhythmAndBlues

QRadioData.SoftRhythmAndBlues

QRadioData.Language

QRadioData.ReligiousMusic

QRadioData.ReligiousTalk

QRadioData.Personality

QRadioData.Public

QRadioData.College

PySide2.QtMultimedia.QRadioData.alternativeFrequenciesEnabledChanged(enabled)
Parameters:

enabled – bool

PySide2.QtMultimedia.QRadioData.availability()
Return type:

AvailabilityStatus

Returns the availability of the radio data service.

A long as there is a media service which provides radio functionality, then the availability will be that of the radio tuner .

PySide2.QtMultimedia.QRadioData.error()
Return type:

Error

Returns the error state of a radio data.

See also

errorString()

PySide2.QtMultimedia.QRadioData.error(error)
Parameters:

errorError

PySide2.QtMultimedia.QRadioData.errorString()
Return type:

str

Returns a description of a radio data’s error state.

See also

error()

PySide2.QtMultimedia.QRadioData.isAlternativeFrequenciesEnabled()
Return type:

bool

This property holds Is Alternative Frequency currently enabled.

PySide2.QtMultimedia.QRadioData.programType()
Return type:

ProgramType

This property holds Current Program Type.

PySide2.QtMultimedia.QRadioData.programTypeChanged(programType)
Parameters:

programTypeProgramType

PySide2.QtMultimedia.QRadioData.programTypeName()
Return type:

str

This property holds Current Program Type Name.

PySide2.QtMultimedia.QRadioData.programTypeNameChanged(programTypeName)
Parameters:

programTypeName – str

PySide2.QtMultimedia.QRadioData.radioText()
Return type:

str

This property holds Current Radio Text.

PySide2.QtMultimedia.QRadioData.radioTextChanged(radioText)
Parameters:

radioText – str

PySide2.QtMultimedia.QRadioData.setAlternativeFrequenciesEnabled(enabled)
Parameters:

enabled – bool

This property holds Is Alternative Frequency currently enabled.

PySide2.QtMultimedia.QRadioData.stationId()
Return type:

str

This property holds Current Program Identification.

PySide2.QtMultimedia.QRadioData.stationIdChanged(stationId)
Parameters:

stationId – str

PySide2.QtMultimedia.QRadioData.stationName()
Return type:

str

This property holds Current Program Service.

PySide2.QtMultimedia.QRadioData.stationNameChanged(stationName)
Parameters:

stationName – str