1
/****************************************************************************
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
6
** This file is part of the Qt Toolkit.
8
** $QT_BEGIN_LICENSE:LGPL21$
9
** Commercial License Usage
10
** Licensees holding valid commercial Qt licenses may use this file in
11
** accordance with the commercial license agreement provided with the
12
** Software or, alternatively, in accordance with the terms contained in
13
** a written agreement between you and Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/contact-us.
17
** GNU Lesser General Public License Usage
18
** Alternatively, this file may be used under the terms of the GNU Lesser
19
** General Public License version 2.1 or version 3 as published by the Free
20
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
21
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
22
** following information to ensure the GNU Lesser General Public License
23
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
24
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26
** In addition, as a special exception, Digia gives you certain additional
27
** rights. These rights are described in the Digia Qt LGPL Exception
28
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
32
****************************************************************************/
34
#include <qcameralockscontrol.h>
35
#include "qmediacontrol_p.h"
40
\class QCameraLocksControl
44
\brief The QCameraLocksControl class is an abstract base class for
45
classes that control still cameras or video cameras.
47
\inmodule QtMultimedia
50
\ingroup multimedia_control
52
This service is provided by a QMediaService object via
53
QMediaService::control(). It is used by QCamera.
55
The interface name of QCameraLocksControl is \c org.qt-project.qt.cameralockscontrol/5.0 as
56
defined in QCameraLocksControl_iid.
59
\sa QMediaService::requestControl(), QCamera
63
\macro QCameraLocksControl_iid
65
\c org.qt-project.qt.cameralockscontrol/5.0
67
Defines the interface name of the QCameraLocksControl class.
69
\relates QCameraLocksControl
73
Constructs a camera locks control object with \a parent.
76
QCameraLocksControl::QCameraLocksControl(QObject *parent):
77
QMediaControl(*new QMediaControlPrivate, parent)
82
Destruct the camera locks control object.
85
QCameraLocksControl::~QCameraLocksControl()
90
\fn QCameraLocksControl::supportedLocks() const
92
Returns the lock types, the camera supports.
96
\fn QCameraLocksControl::lockStatus(QCamera::LockType lock) const
98
Returns the camera \a lock status.
102
\fn QCameraLocksControl::searchAndLock(QCamera::LockTypes locks)
104
Request camera \a locks.
108
\fn QCameraLocksControl::unlock(QCamera::LockTypes locks)
110
Unlock camera \a locks.
114
\fn QCameraLocksControl::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)
116
Signals the \a lock \a status was changed with a specified \a reason.
121
#include "moc_qcameralockscontrol.cpp"