QRadioData¶
The
QRadioData
class provides interfaces to the RDS functionality of the system radio. More…
Synopsis¶
Functions¶
def
availability
()def
error
()def
errorString
()def
programType
()def
programTypeName
()def
radioText
()def
stationId
()def
stationName
()
Slots¶
def
setAlternativeFrequenciesEnabled
(enabled)
Signals¶
def
alternativeFrequenciesEnabledChanged
(enabled)def
error
(error)def
programTypeChanged
(programType)def
programTypeNameChanged
(programTypeName)def
radioTextChanged
(radioText)def
stationIdChanged
(stationId)def
stationNameChanged
(stationName)
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 theradioData
property from aQRadioTuner
instance.radio = new QRadioTuner; radioData = radio->radioData();Alternatively, you can pass an instance of
QRadioTuner
to the constructor toQRadioData
.See also
- class PySide2.QtMultimedia.QRadioData(mediaObject[, parent=None])¶
- param parent:
- param mediaObject:
Constructs a radio data based on a
mediaObject
andparent
.The
mediaObject
should be an instance ofQRadioTuner
. It is preferable to use theradioData
property on aQRadioTuner
instance to get an instance ofQRadioData
.During construction, this class is bound to the
mediaObject
using thebind()
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:
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 theradio tuner
.
- PySide2.QtMultimedia.QRadioData.error()¶
- Return type:
Returns the error state of a radio data.
See also
- PySide2.QtMultimedia.QRadioData.error(error)
- Parameters:
error –
Error
- PySide2.QtMultimedia.QRadioData.errorString()¶
- Return type:
str
Returns a description of a radio data’s error state.
See also
- PySide2.QtMultimedia.QRadioData.isAlternativeFrequenciesEnabled()¶
- Return type:
bool
This property holds Is Alternative Frequency currently enabled.
- PySide2.QtMultimedia.QRadioData.programType()¶
- Return type:
This property holds Current Program Type.
- PySide2.QtMultimedia.QRadioData.programTypeChanged(programType)¶
- Parameters:
programType –
ProgramType
- 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
© 2022 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.