1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
|
6 ** |
|
7 ** This file is part of the Qt Mobility Components. |
|
8 ** |
|
9 ** $QT_BEGIN_LICENSE:LGPL$ |
|
10 ** No Commercial Usage |
|
11 ** This file contains pre-release code and may not be distributed. |
|
12 ** You may use this file in accordance with the terms and conditions |
|
13 ** contained in the Technology Preview License Agreement accompanying |
|
14 ** this package. |
|
15 ** |
|
16 ** GNU Lesser General Public License Usage |
|
17 ** Alternatively, this file may be used under the terms of the GNU Lesser |
|
18 ** General Public License version 2.1 as published by the Free Software |
|
19 ** Foundation and appearing in the file LICENSE.LGPL included in the |
|
20 ** packaging of this file. Please review the following information to |
|
21 ** ensure the GNU Lesser General Public License version 2.1 requirements |
|
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
23 ** |
|
24 ** In addition, as a special exception, Nokia gives you certain additional |
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 ** |
|
28 ** If you have questions regarding the use of this file, please contact |
|
29 ** Nokia at qt-info@nokia.com. |
|
30 ** |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** $QT_END_LICENSE$ |
|
39 ** |
|
40 ****************************************************************************/ |
|
41 |
|
42 #include <experimental/qcameracontrol.h> |
|
43 #include "qmediacontrol_p.h" |
|
44 |
|
45 QTM_BEGIN_NAMESPACE |
|
46 |
|
47 /*! |
|
48 \class QCameraControl |
|
49 |
|
50 \preliminary |
|
51 |
|
52 \brief The QCameraControl class is an abstract base class for |
|
53 classes that control still cameras or video cameras. |
|
54 |
|
55 \ingroup camera |
|
56 |
|
57 This service is provided by a QMediaService object via |
|
58 QMediaService::control(). It is used by QCamera. |
|
59 |
|
60 The interface name of QCameraControl is \c com.nokia.Qt.QCameraControl/1.0 as |
|
61 defined in QCameraControl_iid. |
|
62 |
|
63 |
|
64 The Camera API of Qt Mobility is still in \bold Technology Preview. It has |
|
65 not undergone the same level of review and testing as the rest of the APIs. |
|
66 |
|
67 The API exposed by the classes in this component are not stable, and will |
|
68 undergo modification or removal prior to the final release of Qt Mobility. |
|
69 |
|
70 \sa QMediaService::control(), QCamera |
|
71 */ |
|
72 |
|
73 /*! |
|
74 \macro QCameraControl_iid |
|
75 |
|
76 \c com.nokia.Qt.QCameraControl/1.0 |
|
77 |
|
78 Defines the interface name of the QCameraControl class. |
|
79 |
|
80 \relates QCameraControl |
|
81 */ |
|
82 |
|
83 /*! |
|
84 Constructs a camera control object with \a parent. |
|
85 */ |
|
86 |
|
87 QCameraControl::QCameraControl(QObject *parent): |
|
88 QMediaControl(*new QMediaControlPrivate, parent) |
|
89 { |
|
90 } |
|
91 |
|
92 /*! |
|
93 Destruct the camera control object. |
|
94 */ |
|
95 |
|
96 QCameraControl::~QCameraControl() |
|
97 { |
|
98 } |
|
99 |
|
100 /*! |
|
101 \fn QCameraControl::start() |
|
102 Start the camera service. |
|
103 */ |
|
104 |
|
105 /*! |
|
106 \fn QCameraControl::stop() |
|
107 |
|
108 Stop the camera service. |
|
109 */ |
|
110 |
|
111 /*! |
|
112 \fn QCameraControl::state() const |
|
113 |
|
114 Returns the state of the camera service. |
|
115 |
|
116 \sa QCamera::state |
|
117 */ |
|
118 |
|
119 /*! |
|
120 \fn void QCameraControl::stateChanged(QCamera::State state) |
|
121 |
|
122 Signal emitted when \a state changes state. |
|
123 */ |
|
124 |
|
125 /*! |
|
126 \fn void QCameraControl::error(int error, const QString &errorString) |
|
127 |
|
128 Signal emitted when an error occurs with error code \a error and |
|
129 a description of the error \a errorString. |
|
130 */ |
|
131 |
|
132 #include "moc_qcameracontrol.cpp" |
|
133 QTM_END_NAMESPACE |
|