The QMediaAvailabilityControl class supplies a control for reporting availability of a service. 更多...
头: | #include <QMediaAvailabilityControl> |
qmake: | QT += multimedia |
继承: | QMediaControl |
virtual | ~QMediaAvailabilityControl () |
virtual QMultimedia::AvailabilityStatus | availability () const = 0 |
void | availabilityChanged (QMultimedia::AvailabilityStatus availability ) |
const QMetaObject | staticMetaObject |
QMediaAvailabilityControl (QObject * parent = nullptr) |
QMediaAvailabilityControl_iid |
The QMediaAvailabilityControl class supplies a control for reporting availability of a service.
实例化的 QMediaObject (or its derived classes) can report any changes in availability via this control.
接口名称对于
QMediaAvailabilityControl
is
org.qt-project.qt.mediaavailabilitycontrol/5.0
作为定义在
QMediaAvailabilityControl_iid
.
另请参阅 QMediaService::requestControl () 和 QMediaObject .
[protected]
QMediaAvailabilityControl::
QMediaAvailabilityControl
(
QObject
*
parent
= nullptr)
Constructs an availability control object with parent .
[虚拟]
QMediaAvailabilityControl::
~QMediaAvailabilityControl
()
Destruct the availability control object.
[pure virtual]
QMultimedia::AvailabilityStatus
QMediaAvailabilityControl::
availability
() const
Returns the current availability of this instance of the media service. If the availability changes at run time (for example, some other media client takes all media resources) the availabilityChanges() signal should be emitted.
[signal]
void
QMediaAvailabilityControl::
availabilityChanged
(
QMultimedia::AvailabilityStatus
availability
)
Signal emitted when the current availability value changed.
org.qt-project.qt.mediaavailabilitycontrol/5.0
定义接口名为 QMediaAvailabilityControl 类。