Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QCameraDevice Class Reference
[QtMediaModule]

The QCameraDevice class represents a simple camera device. For the user it is a thin interface for accessing camera functionality. More...

    #include <QCameraDevice>

Inherits QObject.

Public Types

Public Functions

Signals

Additional Inherited Members


Detailed Description

The QCameraDevice class represents a simple camera device. For the user it is a thin interface for accessing camera functionality.

The QCameraDevice has three modes of operation.

When implementing this class it is a requirement that previewing of data should always be available to the client whereas Still and Video capture are optional.


Member Type Documentation

enum QCameraDevice::CaptureMode

This enum specifies the possible modes the device supports

ConstantValueDescription
QCameraDevice::StillMode1Indicates support for Still mode
QCameraDevice::VideoMode2Indicates support for Video mode

enum QCameraDevice::Orientation

This enum specifies the Orientation that the camera is in

ConstantValueDescription
QCameraDevice::FrontFacing0The camera faces the user e.g For video conferencing
QCameraDevice::BackFacing1The camera faces away from the user. e.g Most standard cameras
QCameraDevice::Changing2Has no fixed orientation. e.g Positionable / Swivel Cameras


Member Function Documentation

void QCameraDevice::cameraError ( QtopiaCamera::CameraError err, QString errorMessage )   [signal]

Signals that an error err has occured. Clients should connect to this signal to receive debugging/error information contained in errorMessage

See also QtopiaCamera::CameraError.

unsigned int QCameraDevice::captureModes () const   [pure virtual]

Returns a bit-wise OR of supported capture modes

See also QCameraDevice::CaptureMode.

QString QCameraDevice::description () const   [pure virtual]

Returns a description string of the camera device

QString QCameraDevice::name () const   [pure virtual]

Returns an indentifier for the camera device

Orientation QCameraDevice::orientation () const   [pure virtual]

Returns the camera device orientation

See also QCameraDevice::Orientation.

QCameraPreviewCapture * QCameraDevice::previewCapture () const   [pure virtual]

Returns a class that implements the functionality to capture preview data from the camera device

See also QCameraPreviewCapture.

QCameraStillCapture * QCameraDevice::stillCapture () const   [pure virtual]

Returns a class that implements the functionality to capture still data from the camera device

See also QCameraStillCapture.

QCameraVideoCapture * QCameraDevice::videoCapture () const   [pure virtual]

Returns a class that implements the functionality to capture video data from the camera device

See also QCameraVideoCapture.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3