QRadioTunerControl露

The QRadioTunerControl class provides access to the radio tuning functionality of a QMediaService . More鈥�

Inheritance diagram of PySide2.QtMultimedia.QRadioTunerControl

Detailed Description露

If a QMediaService can tune an analog radio device it will implement QRadioTunerControl . This control provides a means to tune a radio device to a specific frequency as well as search forwards and backwards for a signal.

The functionality provided by this control is exposed to application code through the QRadioTuner class.

The interface name of QRadioTunerControl is org.qt-project.qt.radiotunercontrol/5.0 as defined in QRadioTunerControl_iid .

class PySide2.QtMultimedia.QRadioTunerControl([parent=None])露
param parent:

PySide2.QtCore.QObject

Constructs a radio tuner control with the given parent .

PySide2.QtMultimedia.QRadioTunerControl.antennaConnectedChanged(connectionStatus)露
Parameters:

connectionStatus 鈥� bool

PySide2.QtMultimedia.QRadioTunerControl.band()露
Return type:

Band

Returns the frequency band a radio tuner is tuned to.

See also

setBand()

PySide2.QtMultimedia.QRadioTunerControl.bandChanged(band)露
Parameters:

band 鈥� Band

PySide2.QtMultimedia.QRadioTunerControl.cancelSearch()露

Stops scanning for a signal.

PySide2.QtMultimedia.QRadioTunerControl.error()露
Return type:

Error

Returns the error state of a radio tuner.

PySide2.QtMultimedia.QRadioTunerControl.error(err)
Parameters:

err 鈥� Error

PySide2.QtMultimedia.QRadioTunerControl.errorString()露
Return type:

str

Returns a string describing a radio tuner鈥檚 error state.

PySide2.QtMultimedia.QRadioTunerControl.frequency()露
Return type:

int

Returns the frequency a radio tuner is tuned to.

See also

setFrequency()

PySide2.QtMultimedia.QRadioTunerControl.frequencyChanged(frequency)露
Parameters:

frequency 鈥� int

PySide2.QtMultimedia.QRadioTunerControl.frequencyRange(b)露
Parameters:

b 鈥� Band

Return type:

Returns a frequency band 鈥榮 minimum and maximum frequency.

PySide2.QtMultimedia.QRadioTunerControl.frequencyStep(b)露
Parameters:

b 鈥� Band

Return type:

int

Returns the number of Hertz to increment the frequency by when stepping through frequencies within a given band .

PySide2.QtMultimedia.QRadioTunerControl.isAntennaConnected()露
Return type:

bool

Identifies if there is an antenna connected to the device.

Returns true if there is a connected antenna, and false otherwise.

PySide2.QtMultimedia.QRadioTunerControl.isBandSupported(b)露
Parameters:

b 鈥� Band

Return type:

bool

Identifies if a frequency band is supported.

Returns true if the band is supported, and false if it is not.

PySide2.QtMultimedia.QRadioTunerControl.isMuted()露
Return type:

bool

Identifies if a radio tuner鈥檚 audio output is muted.

Returns true if the audio is muted, and false if it is not.

PySide2.QtMultimedia.QRadioTunerControl.isSearching()露
Return type:

bool

Identifies if a radio tuner is currently scanning for signal.

Returns true if the tuner is scanning, and false if it is not.

PySide2.QtMultimedia.QRadioTunerControl.isStereo()露
Return type:

bool

Identifies if a radio tuner is receiving a stereo signal.

Returns true if the tuner is receiving a stereo signal, and false if it is not.

PySide2.QtMultimedia.QRadioTunerControl.mutedChanged(muted)露
Parameters:

muted 鈥� bool

PySide2.QtMultimedia.QRadioTunerControl.searchAllStations([searchMode=QRadioTuner.SearchFast])露
Parameters:

searchMode 鈥� SearchMode

Starts a scan through the whole frequency band searching all stations with a specific searchMode .

PySide2.QtMultimedia.QRadioTunerControl.searchBackward()露

Starts a backwards scan for a signal, starting from the current frequency() .

PySide2.QtMultimedia.QRadioTunerControl.searchForward()露

Starts a forward scan for a signal, starting from the current frequency() .

PySide2.QtMultimedia.QRadioTunerControl.searchingChanged(searching)露
Parameters:

searching 鈥� bool

PySide2.QtMultimedia.QRadioTunerControl.setBand(b)露
Parameters:

b 鈥� Band

Sets the frequecy band a radio tuner is tuned to.

Changing the frequency band will reset the frequency to the minimum frequency of the new band.

See also

band()

PySide2.QtMultimedia.QRadioTunerControl.setFrequency(frequency)露
Parameters:

frequency 鈥� int

Sets the frequency a radio tuner is tuned to.

See also

frequency()

PySide2.QtMultimedia.QRadioTunerControl.setMuted(muted)露
Parameters:

muted 鈥� bool

Sets the muted state of a radio tuner鈥檚 audio output.

See also

isMuted()

PySide2.QtMultimedia.QRadioTunerControl.setStereoMode(mode)露
Parameters:

mode 鈥� StereoMode

Sets a radio tuner鈥檚 stereo mode .

See also

stereoMode() StereoMode

PySide2.QtMultimedia.QRadioTunerControl.setVolume(volume)露
Parameters:

volume 鈥� int

Sets the percentage volume of a radio tuner鈥檚 audio output.

See also

volume()

PySide2.QtMultimedia.QRadioTunerControl.signalStrength()露
Return type:

int

Return a radio tuner鈥檚 current signal strength as a percentage.

PySide2.QtMultimedia.QRadioTunerControl.signalStrengthChanged(signalStrength)露
Parameters:

signalStrength 鈥� int

PySide2.QtMultimedia.QRadioTunerControl.start()露

Activate the radio device.

PySide2.QtMultimedia.QRadioTunerControl.state()露
Return type:

State

Returns the current radio tuner state.

PySide2.QtMultimedia.QRadioTunerControl.stateChanged(state)露
Parameters:

state 鈥� State

PySide2.QtMultimedia.QRadioTunerControl.stationFound(frequency, stationId)露
Parameters:
  • frequency 鈥� int

  • stationId 鈥� str

PySide2.QtMultimedia.QRadioTunerControl.stereoMode()露
Return type:

StereoMode

Returns a radio tuner鈥檚 stereo mode.

See also

setStereoMode() StereoMode

PySide2.QtMultimedia.QRadioTunerControl.stereoStatusChanged(stereo)露
Parameters:

stereo 鈥� bool

PySide2.QtMultimedia.QRadioTunerControl.stop()露

Deactivate the radio device.

PySide2.QtMultimedia.QRadioTunerControl.volume()露
Return type:

int

Returns the volume of a radio tuner鈥檚 audio output as a percentage.

See also

setVolume()

PySide2.QtMultimedia.QRadioTunerControl.volumeChanged(volume)露
Parameters:

volume 鈥� int