QAudioOutputSelectorControl Class
The QAudioOutputSelectorControl class provides an audio output selector media control. More...
| Header: | #include <QAudioOutputSelectorControl> |
| qmake: | QT += multimedia |
| Inherits: | QMediaControl |
Public Functions
| virtual | ~QAudioOutputSelectorControl() |
| virtual QString | activeOutput() const = 0 |
| virtual QList<QString> | availableOutputs() const = 0 |
| virtual QString | defaultOutput() const = 0 |
| virtual QString | outputDescription(const QString &name) const = 0 |
- 30 public functions inherited from QObject
Public Slots
| virtual void | setActiveOutput(const QString &name) = 0 |
- 1 public slot inherited from QObject
Signals
| void | activeOutputChanged(const QString &name) |
| void | availableOutputsChanged() |
- 2 signals inherited from QObject
Protected Functions
| QAudioOutputSelectorControl(QObject *parent = nullptr) |
- 9 protected functions inherited from QObject
Related Non-Members
| typedef | QObjectList |
| QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
| T | qobject_cast(QObject *object) |
| T | qobject_cast(const QObject *object) |
Macros
| QAudioOutputSelectorControl_iid | |
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
| Q_CLASSINFO(Name, Value) | |
| Q_DISABLE_COPY(Class) | |
| Q_DISABLE_COPY_MOVE(Class) | |
| Q_DISABLE_MOVE(Class) | |
| Q_EMIT | |
| Q_ENUM(...) | |
| Q_ENUM_NS(...) | |
| Q_FLAG(...) | |
| Q_FLAG_NS(...) | |
| Q_GADGET | |
| Q_INTERFACES(...) | |
| Q_INVOKABLE | |
| Q_MEDIA_DECLARE_CONTROL(Class, IId) | |
| Q_NAMESPACE | |
| Q_OBJECT | |
| Q_PROPERTY(...) | |
| Q_REVISION | |
| Q_SET_OBJECT_NAME(Object) | |
| Q_SIGNAL | |
| Q_SIGNALS | |
| Q_SLOT | |
| Q_SLOTS |
Additional Inherited Members
Detailed Description
The QAudioOutputSelectorControl class provides descriptions of the audio outputs available on a system and allows one to be selected as the audio output of a media service.
The interface name of QAudioOutputSelectorControl is org.qt-project.qt.audiooutputselectorcontrol/5.0 as defined in QAudioOutputSelectorControl_iid.
See also QMediaService::requestControl().
Member Function Documentation
[protected] QAudioOutputSelectorControl::QAudioOutputSelectorControl(QObject *parent = nullptr)
Constructs a new audio output selector control with the given parent.
[signal] void QAudioOutputSelectorControl::activeOutputChanged(const QString &name)
Signals that the audio output has changed to name.
[signal] void QAudioOutputSelectorControl::availableOutputsChanged()
Signals that list of available outputs has changed.
[pure virtual slot] void QAudioOutputSelectorControl::setActiveOutput(const QString &name)
Set the active audio output to name.
See also activeOutput().
[virtual] QAudioOutputSelectorControl::~QAudioOutputSelectorControl()
Destroys an audio output selector control.
[pure virtual] QString QAudioOutputSelectorControl::activeOutput() const
Returns the name of the currently selected audio output.
See also setActiveOutput().
[pure virtual] QList<QString> QAudioOutputSelectorControl::availableOutputs() const
Returns a list of the names of the available audio outputs.
[pure virtual] QString QAudioOutputSelectorControl::defaultOutput() const
Returns the name of the default audio output.
[pure virtual] QString QAudioOutputSelectorControl::outputDescription(const QString &name) const
Returns the description of the output name.
Macro Documentation
QAudioOutputSelectorControl::QAudioOutputSelectorControl_iid
org.qt-project.qt.audiooutputselectorcontrol/5.0
Defines the interface name of the QAudioOutputSelectorControl class.