QtMobility Reference Documentation

QMediaRecorderControl Class Reference

The QMediaRecorderControl class provides access to the recording functionality of a QMediaService. More...

 #include <QMediaRecorderControl>

Inherits: QMediaControl.

This class was introduced in Qt Mobility 1.0.

Public Functions

virtual ~QMediaRecorderControl ()
virtual void applySettings () = 0
virtual qint64 duration () const = 0
virtual bool isMuted () const = 0
virtual QUrl outputLocation () const = 0
virtual bool setOutputLocation ( const QUrl & location ) = 0
virtual QMediaRecorder::State state () const = 0
  • 29 public functions inherited from QObject

Public Slots

virtual void pause () = 0
virtual void record () = 0
virtual void setMuted ( bool muted ) = 0
virtual void stop () = 0
  • 1 public slot inherited from QObject

Signals

void durationChanged ( qint64 duration )
void error ( int error, const QString & errorString )
void mutedChanged ( bool muted )
void stateChanged ( QMediaRecorder::State state )

Protected Functions

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

Macros

QMediaRecorderControl_iid

Additional Inherited Members

  • 1 property 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 QMediaRecorderControl class provides access to the recording functionality of a QMediaService.

If a QMediaService can record media it will implement QMediaRecorderControl. This control provides a means to set the output location, and start, pause and stop recording. It also provides feedback on the duration of the recording.

The functionality provided by this control is exposed to application code through the QMediaRecorder class.

The interface name of QMediaRecorderControl is com.nokia.Qt.QMediaRecorderControl/1.0 as defined in QMediaRecorderControl_iid.

See also QMediaService::requestControl() and QMediaRecorder.

Member Function Documentation

QMediaRecorderControl::QMediaRecorderControl ( QObject * parent = 0 ) [protected]

Constructs a media recorder control with the given parent.

QMediaRecorderControl::~QMediaRecorderControl () [virtual]

Destroys a media recorder control.

void QMediaRecorderControl::applySettings () [pure virtual]

Commits the encoder settings and performs pre-initialization to reduce delays when recording is started.

This function was introduced in Qt Mobility 1.0.

qint64 QMediaRecorderControl::duration () const [pure virtual]

Return the current duration in milliseconds.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::durationChanged ( qint64 duration ) [signal]

Signals that the duration of the recorded media has changed.

This only emitted when there is a discontinuous change in the duration such as being reset to 0.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::error ( int error, const QString & errorString ) [signal]

Signals that an error has occurred. The errorString describes the error.

This function was introduced in Qt Mobility 1.0.

bool QMediaRecorderControl::isMuted () const [pure virtual]

Returns true if the recorder is muted, and false if it is not.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::mutedChanged ( bool muted ) [signal]

Signals that the muted state of a media recorder has changed.

This function was introduced in Qt Mobility 1.0.

QUrl QMediaRecorderControl::outputLocation () const [pure virtual]

Returns the current output location being used.

This function was introduced in Qt Mobility 1.0.

See also setOutputLocation().

void QMediaRecorderControl::pause () [pure virtual slot]

Pause recording.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::record () [pure virtual slot]

Start recording.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::setMuted ( bool muted ) [pure virtual slot]

Sets the muted state of a media recorder.

This function was introduced in Qt Mobility 1.0.

See also isMuted().

bool QMediaRecorderControl::setOutputLocation ( const QUrl & location ) [pure virtual]

Sets the output location and returns if this operation is successful. If file at the output location already exists, it should be overwritten.

The location can be relative or empty; in this case the service should use the system specific place and file naming scheme. After recording has stated, QMediaRecorderControl::outputLocation() should return the actual output location.

This function was introduced in Qt Mobility 1.0.

See also outputLocation().

QMediaRecorder::State QMediaRecorderControl::state () const [pure virtual]

Return the current recording state.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::stateChanged ( QMediaRecorder::State state ) [signal]

Signals that the state of a media recorder has changed.

This function was introduced in Qt Mobility 1.0.

void QMediaRecorderControl::stop () [pure virtual slot]

Stop recording.

This function was introduced in Qt Mobility 1.0.

Macro Documentation

QMediaRecorderControl_iid

com.nokia.Qt.QMediaRecorderControl/1.0

Defines the interface name of the QMediaRecorderControl 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.