The QCameraControl class is an abstract base class for classes that control still cameras or video cameras. More...
#include <QCameraControl>
Inherits: QMediaControl.
This class was introduced in Qt Mobility 1.1.
enum | PropertyChangeType { CaptureMode, ImageEncodingSettings, VideoEncodingSettings, Viewfinder } |
~QCameraControl () | |
virtual bool | canChangeProperty ( PropertyChangeType changeType, QCamera::Status status ) const = 0 |
virtual QCamera::CaptureMode | captureMode () const = 0 |
virtual bool | isCaptureModeSupported ( QCamera::CaptureMode mode ) const = 0 |
virtual void | setCaptureMode ( QCamera::CaptureMode mode ) = 0 |
virtual void | setState ( QCamera::State state ) = 0 |
virtual QCamera::State | state () const = 0 |
virtual QCamera::Status | status () const = 0 |
void | captureModeChanged ( QCamera::CaptureMode mode ) |
void | error ( int error, const QString & errorString ) |
void | stateChanged ( QCamera::State state ) |
void | statusChanged ( QCamera::Status status ) |
QCameraControl ( QObject * parent = 0 ) |
QCameraControl_iid |
The QCameraControl class is an abstract base class for classes that control still cameras or video cameras.
This service is provided by a QMediaService object via QMediaService::control(). It is used by QCamera.
The interface name of QCameraControl is com.nokia.Qt.QCameraControl/1.0 as defined in QCameraControl_iid.
See also QMediaService::requestControl() and QCamera.
Constant | Value | Description |
---|---|---|
QCameraControl::CaptureMode | 1 | Indicates the capture mode is changed. |
QCameraControl::ImageEncodingSettings | 2 | Image encoder settings are changed, including resolution. |
QCameraControl::VideoEncodingSettings | 3 | Video encoder settings are changed, including audio, video and container settings. |
QCameraControl::Viewfinder | 4 | Viewfinder is changed. |
Constructs a camera control object with parent.
Destruct the camera control object.
Returns true if backend can effectively apply changing camera properties of changeType type while the camera state is QCamera::Active and camera status matches status parameter.
If backend doesn't support applying this change in the active state, it will be stopped before the settings are changed and restarted after. Otherwise the backend should apply the change in the current state, with the camera status indicating the progress, if necessary.
This function was introduced in Qt Mobility 1.1.
Returns the current capture mode.
This function was introduced in Qt Mobility 1.1.
See also setCaptureMode().
Signal emitted when the camera capture mode changes.
This function was introduced in Qt Mobility 1.1.
Signal emitted when an error occurs with error code error and a description of the error errorString.
This function was introduced in Qt Mobility 1.1.
Returns true if the capture mode is suported.
This function was introduced in Qt Mobility 1.1.
Sets the current capture mode.
The capture mode changes are synchronous and allowed in any camera state.
If the capture mode is changed while camera is active, it's recommended to change status to QCamera::LoadedStatus and start activating the camera in the next event loop with the status changed to QCamera::StartingStatus. This allows the capture settings to be applied before camera is started. Than change the status to QCamera::StartedStatus when the capture mode change is done.
This function was introduced in Qt Mobility 1.1.
See also captureMode().
Sets the camera state.
State changes are synchronous and indicate user intention, while camera status is used as a feedback mechanism to inform application about backend status. Status changes are reported asynchronously with QCameraControl::statusChanged() signal.
This function was introduced in Qt Mobility 1.1.
See also state() and QCamera::State.
Returns the state of the camera service.
This function was introduced in Qt Mobility 1.1.
See also setState() and QCamera::state.
Signal emitted when the camera state changes.
In most cases the state chage is caused by QCameraControl::setState(), but if critical error has occurred the state changes to QCamera::UnloadedState.
This function was introduced in Qt Mobility 1.1.
Returns the status of the camera service.
This function was introduced in Qt Mobility 1.1.
See also QCamera::state.
Signal emitted when the camera status changes.
This function was introduced in Qt Mobility 1.1.
com.nokia.Qt.QCameraControl/1.0
Defines the interface name of the QCameraControl class.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.