MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QCameraImageCaptureControl Class Reference

The QCameraImageCaptureControl class provides a control interface for image capture services. More...

 #include <QCameraImageCaptureControl>

Inherits: QMediaControl.

This class was introduced in Qt Mobility 1.1.

Public Functions

~QCameraImageCaptureControl ()
virtual void cancelCapture () = 0
virtual int capture ( const QString & fileName ) = 0
virtual QCameraImageCapture::DriveMode driveMode () const = 0
virtual bool isReadyForCapture () const = 0
virtual void setDriveMode ( QCameraImageCapture::DriveMode mode ) = 0
  • 29 public functions inherited from QObject

Signals

void error ( int id, int error, const QString & errorString )
void imageAvailable ( int requestId, const QVideoFrame & buffer )
void imageCaptured ( int requestId, const QImage & preview )
void imageExposed ( int requestId )
void imageMetadataAvailable ( int id, QtMultimediaKit::MetaData key, const QVariant & value )
void imageMetadataAvailable ( int id, const QString & key, const QVariant & value )
void imageSaved ( int requestId, const QString & fileName )
void readyForCaptureChanged ( bool ready )

Protected Functions

QCameraImageCaptureControl ( QObject * parent = 0 )
  • 7 protected functions inherited from QObject

Macros

QCameraImageCaptureControl_iid

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QCameraImageCaptureControl class provides a control interface for image capture services.

The interface name of QCameraImageCaptureControl is com.nokia.Qt.QCameraImageCaptureControl/1.0 as defined in QCameraImageCaptureControl_iid.

See also QMediaService::requestControl().

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.

This function was introduced in Qt Mobility 1.1.

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.

Returns the capture request id number, which is used later with imageExposed(), imageCaptured() and imageSaved() signals.

This function was introduced in Qt Mobility 1.1.

QCameraImageCapture::DriveMode QCameraImageCaptureControl::driveMode () const [pure virtual]

Returns the current camera drive mode.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

See also QCameraImageCapture::Error.

void QCameraImageCaptureControl::imageAvailable ( int requestId, const QVideoFrame & buffer ) [signal]

Signals that a captured buffer with a requestId is available.

This function was introduced in Qt Mobility 1.2.

void QCameraImageCaptureControl::imageCaptured ( int requestId, const QImage & preview ) [signal]

Signals that an image with it requestId has been captured and a preview is available.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

void QCameraImageCaptureControl::imageMetadataAvailable ( int id, QtMultimediaKit::MetaData key, const QVariant & value ) [signal]

Signals that a metadata for an image with request id is available. This signal is emitted for metadata value with a key listed in QtMultimediaKit::MetaData enum.

This signal should be emitted between imageExposed and imageSaved signals.

This function was introduced in Qt Mobility 1.2.

void QCameraImageCaptureControl::imageMetadataAvailable ( int id, const QString & key, const QVariant & value ) [signal]

Signals that a metadata for an image with request id is available. This signal is emitted for extended metadata value with a key not listed in QtMultimediaKit::MetaData enum.

This signal should be emitted between imageExposed and imageSaved signals.

This function was introduced in Qt Mobility 1.2.

void QCameraImageCaptureControl::imageSaved ( int requestId, const QString & fileName ) [signal]

Signals that a captured image with a requestId has been saved to fileName.

This function was introduced in Qt Mobility 1.1.

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.

This function was introduced in Qt Mobility 1.1.

void QCameraImageCaptureControl::readyForCaptureChanged ( bool ready ) [signal]

Signals that a capture control's ready state has changed.

This function was introduced in Qt Mobility 1.1.

void QCameraImageCaptureControl::setDriveMode ( QCameraImageCapture::DriveMode mode ) [pure virtual]

Sets the current camera drive mode.

This function was introduced in Qt Mobility 1.1.

See also driveMode().

Macro Documentation

QCameraImageCaptureControl_iid

com.nokia.Qt.QCameraImageCaptureControl/1.0

Defines the interface name of the QCameraImageCaptureControl class.