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 ) |
QMediaAvailabilityControl (QObject * parent = nullptr) |
QMediaAvailabilityControl_iid |
实例化的 QMediaObject (or its derived classes) can report any changes in availability via this control.
The interface name of 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 .
[signal]
void
QMediaAvailabilityControl::
availabilityChanged
(
QMultimedia::AvailabilityStatus
availability
)
Signal emitted when the current availability value changed.
[虚拟]
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.
org.qt-project.qt.mediaavailabilitycontrol/5.0
定义接口名为 QMediaAvailabilityControl 类。