qtmobility/src/multimedia/experimental/qcamerafocuscontrol.cpp
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
     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/qcamerafocuscontrol.h>
       
    43 #include  "qmediacontrol_p.h"
       
    44 
       
    45 QTM_BEGIN_NAMESPACE
       
    46 
       
    47 /*!
       
    48     \class QCameraFocusControl
       
    49 
       
    50     \preliminary
       
    51     \brief The QCameraFocusControl class supplies control for
       
    52     focusing related camera parameters.
       
    53 
       
    54     \ingroup camera
       
    55 
       
    56     The interface name of QCameraFocusControl is \c com.nokia.Qt.QCameraFocusControl/1.0 as
       
    57     defined in QCameraFocusControl_iid.
       
    58 
       
    59 The Camera API of Qt Mobility is still in \bold Technology Preview. It has not undergone
       
    60 the same level of review and testing as the rest of the APIs.
       
    61 
       
    62 The API exposed by the classes in this component are not stable, and will
       
    63 undergo modification or removal prior to the final release of Qt Mobility.
       
    64 
       
    65     \sa QMediaService::control(), QCamera
       
    66 */
       
    67 
       
    68 /*!
       
    69     \macro QCameraFocusControl_iid
       
    70 
       
    71     \c com.nokia.Qt.QCameraFocusControl/1.0
       
    72 
       
    73     Defines the interface name of the QCameraFocusControl class.
       
    74 
       
    75     \relates QCameraFocusControl
       
    76 */
       
    77 
       
    78 /*!
       
    79     Constructs a camera control object with \a parent.
       
    80 */
       
    81 
       
    82 QCameraFocusControl::QCameraFocusControl(QObject *parent):
       
    83     QMediaControl(*new QMediaControlPrivate, parent)
       
    84 {
       
    85 }
       
    86 
       
    87 /*!
       
    88     Destruct the camera control object.
       
    89 */
       
    90 
       
    91 QCameraFocusControl::~QCameraFocusControl()
       
    92 {
       
    93 }
       
    94 
       
    95 
       
    96 /*!
       
    97   \fn void QCameraFocusControl::startFocusing()
       
    98 
       
    99     Starts single or continuous autofocus.
       
   100 
       
   101     Does nothing in hyperfocal or infinity focus modes.
       
   102 
       
   103     If supported by camera, startFocusing() turns on the manual focusing notifications,
       
   104     otherwise it does nothing in manual mode.
       
   105 */
       
   106 
       
   107 /*!
       
   108   \fn void QCameraFocusControl::cancelFocusing()
       
   109 
       
   110   Cancels the single autofocus request or stops continuous focusing.
       
   111 
       
   112   Does nothing in hyperfocal or infinity focus modes.
       
   113 
       
   114   If supported by camera, startFocusing() turns off the manual focusing notifications,
       
   115   otherwise it does nothing in manual mode.
       
   116 */
       
   117 
       
   118 /*!
       
   119   \fn QCamera::FocusMode QCameraFocusControl::focusMode() const
       
   120 
       
   121   Returns the focus mode being used.
       
   122 */
       
   123 
       
   124 
       
   125 /*!
       
   126   \fn void QCameraFocusControl::setFocusMode(QCamera::FocusMode mode)
       
   127 
       
   128   Set the focus mode to \a mode.
       
   129 */
       
   130 
       
   131 
       
   132 /*!
       
   133   \fn QCamera::FocusModes QCameraFocusControl::supportedFocusModes() const
       
   134 
       
   135   Returns focus modes available.
       
   136 */
       
   137 
       
   138 
       
   139 /*!
       
   140   \fn QCamera::FocusStatus QCameraFocusControl::focusStatus() const
       
   141 
       
   142   Returns the focus status.
       
   143 */
       
   144 
       
   145 
       
   146 /*!
       
   147   \fn bool QCameraFocusControl::macroFocusingEnabled() const
       
   148 
       
   149   Returns true if macro focusing enabled.
       
   150 */
       
   151 
       
   152 
       
   153 /*!
       
   154   \fn bool QCameraFocusControl::isMacroFocusingSupported() const
       
   155 
       
   156   Returns true if macro focusing is available.
       
   157 */
       
   158 
       
   159 
       
   160 /*!
       
   161   \fn void QCameraFocusControl::setMacroFocusingEnabled(bool enable)
       
   162 
       
   163   Set macro focusing to \a enable
       
   164 */
       
   165 
       
   166 
       
   167 /*!
       
   168   \fn qreal QCameraFocusControl::maximumOpticalZoom() const
       
   169 
       
   170   Returns the maximum optical zoom value, or 1.0 if optical zoom is not supported.
       
   171 */
       
   172 
       
   173 
       
   174 /*!
       
   175   \fn qreal QCameraFocusControl::maximumDigitalZoom() const
       
   176 
       
   177   Returns the maximum digital zoom value, or 1.0 if digital zoom is not supported.
       
   178 */
       
   179 
       
   180 
       
   181 /*!
       
   182   \fn qreal QCameraFocusControl::opticalZoom() const
       
   183 
       
   184   Return the current optical zoom value.
       
   185 */
       
   186 
       
   187 /*!
       
   188   \fn qreal QCameraFocusControl::digitalZoom() const
       
   189 
       
   190   Return the current digital zoom value.
       
   191 */
       
   192 
       
   193 
       
   194 /*!
       
   195   \fn void QCameraFocusControl::zoomTo(qreal opticalZoom, qreal digitalZoom)
       
   196 
       
   197   Set the zoom value to \a value
       
   198 */
       
   199 
       
   200 
       
   201 /*!
       
   202     \fn void QCameraFocusControl::focusStatusChanged(QCamera::FocusStatus status)
       
   203 
       
   204     Signal emitted when focus \a status changed.
       
   205 */
       
   206 
       
   207 
       
   208 /*!
       
   209     \fn void QCameraFocusControl::opticalZoomChanged(qreal zoom)
       
   210 
       
   211     Signal emitted when the optical \a zoom value changed.
       
   212 */
       
   213 
       
   214 /*!
       
   215     \fn void QCameraFocusControl::digitalZoomChanged(qreal zoom)
       
   216 
       
   217     Signal emitted when the digital \a zoom value changed.
       
   218 */
       
   219 
       
   220 #include "moc_qcamerafocuscontrol.cpp"
       
   221 QTM_END_NAMESPACE
       
   222