summaryrefslogtreecommitdiffstats
path: root/src/plugins/gstreamer/camerabin/camerabinzoom.h
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-02-28 15:28:56 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-28 16:50:37 +0100
commite747d4c0cd09c0874c7a268b06dd45fadb1111aa (patch)
tree794bde338cacb942d7f2f5cb8f0e42949d910b7b /src/plugins/gstreamer/camerabin/camerabinzoom.h
parent339fda0ca9d622f3525b58e91dbf78f65b44bcc2 (diff)
GStreamer: fixed build when using GST_PHOTOGRAPHY.
CameraBinExposure was reimplementing the Qt4 version of QCameraExposureControl instead of the refactored version of Qt5. Zoom features were still handled in CameraBinFocus but these have been moved to their own control in Qt5. Task-number: QTBUG-29300 Change-Id: I0c71cac6011137bc5457f0d362da44c72039004a Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/plugins/gstreamer/camerabin/camerabinzoom.h')
-rw-r--r--src/plugins/gstreamer/camerabin/camerabinzoom.h76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/plugins/gstreamer/camerabin/camerabinzoom.h b/src/plugins/gstreamer/camerabin/camerabinzoom.h
new file mode 100644
index 000000000..f3049b61c
--- /dev/null
+++ b/src/plugins/gstreamer/camerabin/camerabinzoom.h
@@ -0,0 +1,76 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef CAMERABINZOOMCONTROL_H
+#define CAMERABINZOOMCONTROL_H
+
+#include <qcamerazoomcontrol.h>
+
+QT_BEGIN_NAMESPACE
+
+class CameraBinSession;
+
+class CameraBinZoom : public QCameraZoomControl
+{
+ Q_OBJECT
+public:
+ CameraBinZoom(CameraBinSession *session);
+ virtual ~CameraBinZoom();
+
+ qreal maximumOpticalZoom() const;
+ qreal maximumDigitalZoom() const;
+
+ qreal requestedOpticalZoom() const;
+ qreal requestedDigitalZoom() const;
+ qreal currentOpticalZoom() const;
+ qreal currentDigitalZoom() const;
+
+ void zoomTo(qreal optical, qreal digital);
+
+private:
+ CameraBinSession *m_session;
+ qreal m_requestedOpticalZoom;
+ qreal m_requestedDigitalZoom;
+};
+
+QT_END_NAMESPACE
+
+#endif // CAMERABINZOOMCONTROL_H