QRadioData ClassThe QRadioData class provides interfaces to the RDS functionality of the system radio. More... #include <QRadioData> Inherits: QObject and QMediaBindableInterface. Public Types
Properties
Public Functions
Reimplemented Public Functions
Public Slots
Signals
Protected Functions
Reimplemented Protected Functions
Additional Inherited Members
Detailed DescriptionThe 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 Radio Overview. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QRadioData::NoError | 0 | No errors have occurred. |
QRadioData::ResourceError | 1 | There is no radio service available. |
QRadioData::OpenError | 2 | Unable to open radio device. |
QRadioData::OutOfRangeError | 3 | An attempt to set a frequency or band that is not supported by radio device. |
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 | Value |
---|---|
QRadioData::Undefined | 0 |
QRadioData::News | 1 |
QRadioData::CurrentAffairs | 2 |
QRadioData::Information | 3 |
QRadioData::Sport | 4 |
QRadioData::Education | 5 |
QRadioData::Drama | 6 |
QRadioData::Culture | 7 |
QRadioData::Science | 8 |
QRadioData::Varied | 9 |
QRadioData::PopMusic | 10 |
QRadioData::RockMusic | 11 |
QRadioData::EasyListening | 12 |
QRadioData::LightClassical | 13 |
QRadioData::SeriousClassical | 14 |
QRadioData::OtherMusic | 15 |
QRadioData::Weather | 16 |
QRadioData::Finance | 17 |
QRadioData::ChildrensProgrammes | 18 |
QRadioData::SocialAffairs | 19 |
QRadioData::Religion | 20 |
QRadioData::PhoneIn | 21 |
QRadioData::Travel | 22 |
QRadioData::Leisure | 23 |
QRadioData::JazzMusic | 24 |
QRadioData::CountryMusic | 25 |
QRadioData::NationalMusic | 26 |
QRadioData::OldiesMusic | 27 |
QRadioData::FolkMusic | 28 |
QRadioData::Documentary | 29 |
QRadioData::AlarmTest | 30 |
QRadioData::Alarm | 31 |
QRadioData::Talk | 32 |
QRadioData::ClassicRock | 33 |
QRadioData::AdultHits | 34 |
QRadioData::SoftRock | 35 |
QRadioData::Top40 | 36 |
QRadioData::Soft | 37 |
QRadioData::Nostalgia | 38 |
QRadioData::Classical | 39 |
QRadioData::RhythmAndBlues | 40 |
QRadioData::SoftRhythmAndBlues | 41 |
QRadioData::Language | 42 |
QRadioData::ReligiousMusic | 43 |
QRadioData::ReligiousTalk | 44 |
QRadioData::Personality | 45 |
QRadioData::Public | 46 |
QRadioData::College | 47 |
This property holds is Alternative Frequency currently enabled.
Access functions:
bool | isAlternativeFrequenciesEnabled() const |
void | setAlternativeFrequenciesEnabled(bool enabled) |
Notifier signal:
void | alternativeFrequenciesEnabledChanged(bool enabled) |
This property holds current Program Type.
Access functions:
ProgramType | programType() const |
Notifier signal:
void | programTypeChanged(QRadioData::ProgramType programType) |
This property holds current Program Type Name.
Access functions:
QString | programTypeName() const |
Notifier signal:
void | programTypeNameChanged(QString programTypeName) |
This property holds current Radio Text.
Access functions:
QString | radioText() const |
Notifier signal:
void | radioTextChanged(QString radioText) |
This property holds current Program Identification.
Access functions:
QString | stationId() const |
Notifier signal:
void | stationIdChanged(QString stationId) |
This property holds current Program Service.
Access functions:
QString | stationName() const |
Notifier signal:
void | stationNameChanged(QString stationName) |
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.
Destroys a radio data.
Returns the availability of the radio data service.
A long as there is a media service which provides control, then the availability error will be that of the radio tuner.
Returns the error state of a radio data.
See also errorString().
Signals that an error occurred.
Returns a description of a radio data's error state.
See also error().
Reimplemented from QMediaBindableInterface::mediaObject().
See also setMediaObject().
Reimplemented from QMediaBindableInterface::setMediaObject().
See also mediaObject().