QAudioRoleControl Class
The QAudioRoleControl class provides control over the audio role of a media object. More...
| Header: | #include <QAudioRoleControl> |
| qmake: | QT += multimedia |
| Since: | Qt 5.6 |
| Inherits: | QMediaControl |
Public Functions
| virtual | ~QAudioRoleControl() |
| virtual QAudio::Role | audioRole() const = 0 |
| virtual void | setAudioRole(QAudio::Role role) = 0 |
| virtual QList<QAudio::Role> | supportedAudioRoles() const = 0 |
- 31 public functions inherited from QObject
Signals
| void | audioRoleChanged(QAudio::Role role) |
- 2 signals inherited from QObject
Static Public Members
| const QMetaObject | staticMetaObject |
- 1 static public member inherited from QMediaControl
- 9 static public members inherited from QObject
Protected Functions
| QAudioRoleControl(QObject *parent = nullptr) |
- 9 protected functions inherited from QObject
Macros
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 public variable inherited from QObject
- 1 protected type inherited from QMediaControl
- 2 protected variables inherited from QObject
Detailed Description
The QAudioRoleControl class provides control over the audio role of a media object.
If a QMediaService supports audio roles it will implement QAudioRoleControl.
The functionality provided by this control is exposed to application code through the QMediaPlayer class.
The interface name of QAudioRoleControl is org.qt-project.qt.audiorolecontrol/5.6 as defined in QAudioRoleControl_iid.
See also QMediaService::requestControl() and QMediaPlayer.
Member Type Documentation
Property Documentation
Member Function Documentation
[protected] QAudioRoleControl::QAudioRoleControl(QObject *parent = nullptr)
Construct a QAudioRoleControl with the given parent.
[virtual] QAudioRoleControl::~QAudioRoleControl()
Destroys the audio role control.
[pure virtual] QAudio::Role QAudioRoleControl::audioRole() const
See also setAudioRole().
[signal] void QAudioRoleControl::audioRoleChanged(QAudio::Role role)
[pure virtual] void QAudioRoleControl::setAudioRole(QAudio::Role role)
See also audioRole().
[pure virtual] QList<QAudio::Role> QAudioRoleControl::supportedAudioRoles() const
Member Variable Documentation
Related Non-Members
Macro Documentation
QAudioRoleControl_iid
org.qt-project.qt.audiorolecontrol/5.6
Defines the interface name of the QAudioRoleControl class.