QMediaAvailabilityControl Class

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.

宏文档编制

QMediaAvailabilityControl_iid

org.qt-project.qt.mediaavailabilitycontrol/5.0

定义接口名为 QMediaAvailabilityControl 类。