QMediaServiceProviderPlugin Class

The QMediaServiceProviderPlugin class interface provides an interface for QMediaService plug-ins. 更多...

头文件: #include <QMediaServiceProviderPlugin>
qmake: QT += multimedia
基类: QObject and QMediaServiceProviderFactoryInterface

公有函数

virtual QMediaService *create(const QString &key) override = 0

重新实现的公有函数

virtual void release(QMediaService *service) override = 0

其他继承的成员

  • 1 个属性继承自 QObject
  • 1 个公有槽函数继承自 QObject
  • 2 个信号继承自 QObject
  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 9 个受保护的函数继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QMediaServiceProviderPlugin class interface provides an interface for QMediaService plug-ins.

A media service provider plug-in may implement one or more of QMediaServiceSupportedFormatsInterface, QMediaServiceSupportedDevicesInterface, and QMediaServiceFeaturesInterface to identify the features it supports.

成员函数

[override pure virtual] QMediaService *QMediaServiceProviderPlugin::create(const QString &key)

Constructs a new instance of the QMediaService identified by key.

The QMediaService returned must be destroyed with release().

[override pure virtual] void QMediaServiceProviderPlugin::release(QMediaService *service)

Destroys a media service constructed with create().