From ba37f73d44269920c904a3110f9090b8c091c118 Mon Sep 17 00:00:00 2001 From: Dmytro Poplavskiy Date: Tue, 31 Jan 2012 13:20:17 +1000 Subject: Added QMediaRecorder::actualLocation property To report the actual location file was written. Change-Id: Ibb56a720a258a1e5cedceaf0f9bcea73fb93bc96 Reviewed-by: Michael Goddard --- src/multimedia/controls/qmediarecordercontrol.cpp | 11 ++++++++++- src/multimedia/controls/qmediarecordercontrol.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/multimedia/controls') diff --git a/src/multimedia/controls/qmediarecordercontrol.cpp b/src/multimedia/controls/qmediarecordercontrol.cpp index c6af5bced..6caefd9bb 100644 --- a/src/multimedia/controls/qmediarecordercontrol.cpp +++ b/src/multimedia/controls/qmediarecordercontrol.cpp @@ -111,7 +111,9 @@ QMediaRecorderControl::~QMediaRecorderControl() The \a 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. + + After recording has started, the backend should report the actual file location + with actualLocationChanged() signal. */ /*! @@ -184,6 +186,13 @@ QMediaRecorderControl::~QMediaRecorderControl() Signals that the \a muted state of a media recorder has changed. */ +/*! + \fn void QMediaRecorderControl::actualLocationChanged(const QUrl &location) + + Signals that the actual media \a location has changed. + This signal should be emitted at start of recording. +*/ + /*! \fn void QMediaRecorderControl::error(int error, const QString &errorString) diff --git a/src/multimedia/controls/qmediarecordercontrol.h b/src/multimedia/controls/qmediarecordercontrol.h index ac952708a..73e5430df 100644 --- a/src/multimedia/controls/qmediarecordercontrol.h +++ b/src/multimedia/controls/qmediarecordercontrol.h @@ -78,6 +78,7 @@ Q_SIGNALS: void stateChanged(QMediaRecorder::State state); void durationChanged(qint64 position); void mutedChanged(bool muted); + void actualLocationChanged(const QUrl &location); void error(int error, const QString &errorString); public Q_SLOTS: -- cgit v1.2.3