QRadioData露
- PyQt5.QtMultimedia.QRadioData
Inherits from QObject, QMediaBindableInterface.
Description露
The QRadioData class provides interfaces to the RDS functionality of the system radio.
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
Enums露
- Error
Enumerates radio data error conditions.
Member
Value
Description
NoError 0
No errors have occurred.
OpenError 2
Unable to open radio device.
OutOfRangeError 3
An attempt to set a frequency or band that is not supported by radio device.
ResourceError 1
There is no radio service available.
- 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.
Member
Value
Description
AdultHits TODO
TODO
Alarm TODO
TODO
AlarmTest TODO
TODO
ChildrensProgrammes TODO
TODO
Classical TODO
TODO
ClassicRock TODO
TODO
College TODO
TODO
CountryMusic TODO
TODO
Culture TODO
TODO
CurrentAffairs TODO
TODO
Documentary TODO
TODO
Drama TODO
TODO
EasyListening TODO
TODO
Education TODO
TODO
Finance TODO
TODO
FolkMusic TODO
TODO
Information TODO
TODO
JazzMusic TODO
TODO
Language TODO
TODO
Leisure TODO
TODO
LightClassical TODO
TODO
NationalMusic TODO
TODO
News TODO
TODO
Nostalgia TODO
TODO
OldiesMusic TODO
TODO
OtherMusic TODO
TODO
Personality TODO
TODO
PhoneIn TODO
TODO
PopMusic TODO
TODO
Public TODO
TODO
Religion TODO
TODO
ReligiousMusic TODO
TODO
ReligiousTalk TODO
TODO
RhythmAndBlues TODO
TODO
RockMusic TODO
TODO
Science TODO
TODO
SeriousClassical TODO
TODO
SocialAffairs TODO
TODO
Soft TODO
TODO
SoftRhythmAndBlues TODO
TODO
SoftRock TODO
TODO
Sport TODO
TODO
Talk TODO
TODO
Top40 TODO
TODO
Travel TODO
TODO
Undefined TODO
TODO
Varied TODO
TODO
Weather TODO
TODO
Methods露
- __init__(QMediaObject, parent: QObject = None)
TODO
- availability() → AvailabilityStatus
Returns the availability of the radio data service.
A long as there is a media service which provides radio functionality, then the AvailabilityStatus will be that of the availability().
- error() → Error
Returns the error state of a radio data.
See also
- errorString() → str
Returns a description of a radio data鈥檚 error state.
See also
- isAlternativeFrequenciesEnabled() → bool
TODO
- mediaObject() → QMediaObject
TODO
- programType() → ProgramType
TODO
- programTypeName() → str
TODO
- radioText() → str
TODO
- setAlternativeFrequenciesEnabled(bool)
See also
- setMediaObject(QMediaObject) → bool
TODO
- stationId() → str
TODO
- stationName() → str
TODO
Signals露
- alternativeFrequenciesEnabledChanged(bool)
TODO
- error()
Returns the error state of a radio data.
See also
- error(Error)
Returns the error state of a radio data.
See also
- programTypeChanged(ProgramType)
TODO
- programTypeNameChanged(str)
TODO
- radioTextChanged(str)
TODO
- stationIdChanged(str)
TODO
- stationNameChanged(str)
TODO