Member Function Documentation
QCameraImageCaptureControl::QCameraImageCaptureControl(QObject * parent = 0) [protected]
Constructs a new image capture control object with the given parent
QCameraImageCaptureControl::~QCameraImageCaptureControl()
Destroys an image capture control.
void QCameraImageCaptureControl::cancelCapture() [pure virtual]
Cancel pending capture requests.
int QCameraImageCaptureControl::capture(const QString & fileName) [pure virtual]
Initiates the capture of an image to fileName. The fileName can be relative or empty, in this case the service should use the system specific place and file naming scheme.
The Camera service should save all the capture parameters like exposure settings or image processing parameters, so changes to camera paramaters after capture() is called do not affect previous capture requests.
Returns the capture request id number, which is used later with imageExposed(), imageCaptured() and imageSaved() signals.
QCameraImageCapture::DriveMode QCameraImageCaptureControl::driveMode() const [pure virtual]
Returns the current camera drive mode.
See also setDriveMode().
void QCameraImageCaptureControl::error(int id, int error, const QString & errorString) [signal]
Signals the capture request id failed with error code and message errorString.
See also QCameraImageCapture::Error.
void QCameraImageCaptureControl::imageAvailable(int requestId, const QVideoFrame & buffer) [signal]
Signals that a captured buffer with a requestId is available.
void QCameraImageCaptureControl::imageCaptured(int requestId, const QImage & preview) [signal]
Signals that an image with it requestId has been captured and a preview is available.
void QCameraImageCaptureControl::imageExposed(int requestId) [signal]
Signals that an image with it requestId has just been exposed. This signal can be used for the shutter sound or other indicaton.
void QCameraImageCaptureControl::imageMetadataAvailable(int id, const QString & key, const QVariant & value) [signal]
Signals that a metadata for an image with request id is available. Signal also contains the key and value of the metadata.
This signal should be emitted between imageExposed and imageSaved signals.
void QCameraImageCaptureControl::imageSaved(int requestId, const QString & fileName) [signal]
Signals that a captured image with a requestId has been saved to fileName.
bool QCameraImageCaptureControl::isReadyForCapture() const [pure virtual]
Identifies if a capture control is ready to perform a capture immediately (all the resources necessary for image capture are allocated, hardware initialized, flash is charged, etc).
Returns true if the camera is ready for capture; and false if it is not.
It's permissible to call capture() while the camera status is QCamera::ActiveStatus regardless of isReadyForCapture property value. If camera is not ready to capture image immediately, the capture request is queued with all the related camera settings to be executed as soon as possible.
void QCameraImageCaptureControl::readyForCaptureChanged(bool ready) [signal]
Signals that a capture control's ready state has changed.
void QCameraImageCaptureControl::setDriveMode(QCameraImageCapture::DriveMode mode) [pure virtual]
Sets the current camera drive mode.
See also driveMode().