Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QCameraImageCaptureControl Class Reference

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

 #include <QCameraImageCaptureControl>

Inherits QMediaControl.

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 imageCaptured ( int requestId, const QImage & preview )
void imageExposed ( int requestId )
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.

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.

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::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::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.

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().

Macro Documentation

QCameraImageCaptureControl_iid

com.nokia.Qt.QCameraImageCaptureControl/1.0

Defines the interface name of the QCameraImageCaptureControl class.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web