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 )

保护函数

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.

宏文档编制

QMediaAvailabilityControl_iid

org.qt-project.qt.mediaavailabilitycontrol/5.0

定义接口名为 QMediaAvailabilityControl 类。