~phablet-team/+junk/qtmultimedia

« back to all changes in this revision

Viewing changes to src/multimedia/controls/qcameralockscontrol.cpp

  • Committer: Jim Hodapp
  • Date: 2015-05-15 19:17:49 UTC
  • Revision ID: jim.hodapp@canonical.com-20150515191749-r4xausjaaphme9ok
Initial import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
 
4
** Contact: http://www.qt-project.org/legal
 
5
**
 
6
** This file is part of the Qt Toolkit.
 
7
**
 
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.
 
16
**
 
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.
 
25
**
 
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.
 
29
**
 
30
** $QT_END_LICENSE$
 
31
**
 
32
****************************************************************************/
 
33
 
 
34
#include <qcameralockscontrol.h>
 
35
#include  "qmediacontrol_p.h"
 
36
 
 
37
QT_BEGIN_NAMESPACE
 
38
 
 
39
/*!
 
40
    \class QCameraLocksControl
 
41
 
 
42
 
 
43
 
 
44
    \brief The QCameraLocksControl class is an abstract base class for
 
45
    classes that control still cameras or video cameras.
 
46
 
 
47
    \inmodule QtMultimedia
 
48
 
 
49
 
 
50
    \ingroup multimedia_control
 
51
 
 
52
    This service is provided by a QMediaService object via
 
53
    QMediaService::control().  It is used by QCamera.
 
54
 
 
55
    The interface name of QCameraLocksControl is \c org.qt-project.qt.cameralockscontrol/5.0 as
 
56
    defined in QCameraLocksControl_iid.
 
57
 
 
58
 
 
59
    \sa QMediaService::requestControl(), QCamera
 
60
*/
 
61
 
 
62
/*!
 
63
    \macro QCameraLocksControl_iid
 
64
 
 
65
    \c org.qt-project.qt.cameralockscontrol/5.0
 
66
 
 
67
    Defines the interface name of the QCameraLocksControl class.
 
68
 
 
69
    \relates QCameraLocksControl
 
70
*/
 
71
 
 
72
/*!
 
73
    Constructs a camera locks control object with \a parent.
 
74
*/
 
75
 
 
76
QCameraLocksControl::QCameraLocksControl(QObject *parent):
 
77
    QMediaControl(*new QMediaControlPrivate, parent)
 
78
{
 
79
}
 
80
 
 
81
/*!
 
82
    Destruct the camera locks control object.
 
83
*/
 
84
 
 
85
QCameraLocksControl::~QCameraLocksControl()
 
86
{
 
87
}
 
88
 
 
89
/*!
 
90
    \fn QCameraLocksControl::supportedLocks() const
 
91
 
 
92
    Returns the lock types, the camera supports.
 
93
*/
 
94
 
 
95
/*!
 
96
    \fn QCameraLocksControl::lockStatus(QCamera::LockType lock) const
 
97
 
 
98
    Returns the camera \a lock status.
 
99
*/
 
100
 
 
101
/*!
 
102
    \fn QCameraLocksControl::searchAndLock(QCamera::LockTypes locks)
 
103
 
 
104
    Request camera \a locks.
 
105
*/
 
106
 
 
107
/*!
 
108
    \fn QCameraLocksControl::unlock(QCamera::LockTypes locks)
 
109
 
 
110
    Unlock camera \a locks.
 
111
*/
 
112
 
 
113
/*!
 
114
    \fn QCameraLocksControl::lockStatusChanged(QCamera::LockType lock, QCamera::LockStatus status, QCamera::LockChangeReason reason)
 
115
 
 
116
    Signals the \a lock \a status was changed with a specified \a reason.
 
117
*/
 
118
 
 
119
 
 
120
 
 
121
#include "moc_qcameralockscontrol.cpp"
 
122
QT_END_NAMESPACE