Changed QCamera::captureMode property to QFlags
This enables the expression of extra camera modes like viewfinder only or capture during video recording. Change-Id: Ie02fdeef5eb7fd6fc2f133c1afb0141e37c22b06 Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
a6268601c9
commit
53d71baed3
@@ -145,13 +145,13 @@ QCameraControl::~QCameraControl()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn Camera::CaptureMode QCameraControl::captureMode() const = 0
|
||||
\fn Camera::CaptureModes QCameraControl::captureMode() const = 0
|
||||
|
||||
Returns the current capture mode.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn void QCameraControl::setCaptureMode(QCamera::CaptureMode mode) = 0;
|
||||
\fn void QCameraControl::setCaptureMode(QCamera::CaptureModes mode) = 0;
|
||||
|
||||
Sets the current capture \a mode.
|
||||
|
||||
@@ -166,13 +166,13 @@ QCameraControl::~QCameraControl()
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn bool QCameraControl::isCaptureModeSupported(QCamera::CaptureMode mode) const = 0;
|
||||
\fn bool QCameraControl::isCaptureModeSupported(QCamera::CaptureModes mode) const = 0;
|
||||
|
||||
Returns true if the capture \a mode is suported.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QCameraControl::captureModeChanged(QCamera::CaptureMode mode)
|
||||
\fn QCameraControl::captureModeChanged(QCamera::CaptureModes mode)
|
||||
|
||||
Signal emitted when the camera capture \a mode changes.
|
||||
*/
|
||||
|
||||
@@ -73,9 +73,9 @@ public:
|
||||
|
||||
virtual QCamera::Status status() const = 0;
|
||||
|
||||
virtual QCamera::CaptureMode captureMode() const = 0;
|
||||
virtual void setCaptureMode(QCamera::CaptureMode) = 0;
|
||||
virtual bool isCaptureModeSupported(QCamera::CaptureMode mode) const = 0;
|
||||
virtual QCamera::CaptureModes captureMode() const = 0;
|
||||
virtual void setCaptureMode(QCamera::CaptureModes) = 0;
|
||||
virtual bool isCaptureModeSupported(QCamera::CaptureModes mode) const = 0;
|
||||
|
||||
virtual bool canChangeProperty(PropertyChangeType changeType, QCamera::Status status) const = 0;
|
||||
|
||||
@@ -83,7 +83,7 @@ Q_SIGNALS:
|
||||
void stateChanged(QCamera::State);
|
||||
void statusChanged(QCamera::Status);
|
||||
void error(int error, const QString &errorString);
|
||||
void captureModeChanged(QCamera::CaptureMode);
|
||||
void captureModeChanged(QCamera::CaptureModes);
|
||||
|
||||
protected:
|
||||
QCameraControl(QObject* parent = 0);
|
||||
|
||||
Reference in New Issue
Block a user