QCameraLocksControl 类是用于控制静止摄像头 (或视频摄像机) 的类的抽象基类。 更多...
头: | #include <QCameraLocksControl> |
qmake: | QT += multimedia |
继承: | QMediaControl |
该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
virtual | ~QCameraLocksControl () |
virtual QCamera::LockStatus | lockStatus (QCamera::LockType lock ) const = 0 |
virtual void | searchAndLock (QCamera::LockTypes locks ) = 0 |
virtual QCamera::LockTypes | supportedLocks () const = 0 |
virtual void | unlock (QCamera::LockTypes locks ) = 0 |
void | lockStatusChanged (QCamera::LockType type , QCamera::LockStatus status , QCamera::LockChangeReason reason ) |
QCameraLocksControl (QObject * parent = nullptr) |
QCameraLocksControl_iid |
此服务的提供是通过 QMediaService 对象凭借 QMediaService::control()。它被用于 QCamera .
QCameraLocksControl 的接口名称为
org.qt-project.qt.cameralockscontrol/5.0
作为定义在
QCameraLocksControl_iid
.
另请参阅 QMediaService::requestControl () 和 QCamera .
[protected]
QCameraLocksControl::
QCameraLocksControl
(
QObject
*
parent
= nullptr)
构造摄像头锁控制对象采用 parent .
[signal]
void
QCameraLocksControl::
lockStatusChanged
(
QCamera::LockType
type
,
QCamera::LockStatus
status
,
QCamera::LockChangeReason
reason
)
Signals the lock type status was changed with the specified reason .
[虚拟]
QCameraLocksControl::
~QCameraLocksControl
()
销毁摄像头锁控制对象。
[pure virtual]
QCamera::LockStatus
QCameraLocksControl::
lockStatus
(
QCamera::LockType
lock
) const
返回摄像头 lock 状态。
[pure virtual]
void
QCameraLocksControl::
searchAndLock
(
QCamera::LockTypes
locks
)
请求摄像头 locks .
[pure virtual]
QCamera::LockTypes
QCameraLocksControl::
supportedLocks
() const
返回摄像头支持的锁类型。
[pure virtual]
void
QCameraLocksControl::
unlock
(
QCamera::LockTypes
locks
)
解锁摄像机 locks .
org.qt-project.qt.cameralockscontrol/5.0
定义接口名为 QCameraLocksControl 类。